The next step after detecting that something is going on is root cause analysis. Understanding the cause quickly and accurately allows you to solve the current issue as well as prepare for any future changes in the user’s behavior. As with anything, proper analysis starts with planning and is highly dependent on the architecture of your system and data availability.

Designing for Analysis

It is hard enough to understand what happens in your system as it is; lacking data, overlapping systems, and bad instrumentation just make it so much harder. When approaching system and data architecture, there are several things to remember that will make your work much easier.

Instrumentation and Data Retention

Many analysis attempts fail due to poor instrumentation and data retention. This usually stems from engineers optimizing for performance and storage size in production code and ends with missing data—since maintaining event-based historical data is not anywhere near the top of these engineers’ minds. The simplest example is canceled or rejected applications deleted after a very short while or saved in highly redacted form. When you try to model consumer behavior or merchant performance deterioration patterns based on cancellations and rejections in addition to purchases, you fail due to lack of data. The most advanced example is point-in-time analysis. When you build predictive systems, you always need to be able to look at purchases at the point of approval without post-decision information, but most systems overwrite the purchase object as states change rather than keep snapshots or use an event-based approach.

RMP requires either an event-based system keeping track of each change, or periodical snapshots from almost day one for further analysis. Either way, you must design your system with preparation for future instrumentation and as little data loss as possible.

Data Latency and Transformation

While portfolio analysis sometimes resembles and uses Finance and Business Analysis techniques, most RMP analysis done in order to identify and understand trends and their root cause requires data that are rawer and fresher than what most BI teams require. Therefore, an elaborate data warehouse with long and cumbersome ETL, 24+ latency, and low uptime is an insufficient tool. RMP requires a close to real-time database that is almost a copy of production data but provides some additional capabilities (aggregation, point in time, tuning, and indexing for analysis, etc.).

Most analytics teams use a separate database for analysis. That database is, in its ideal form, a repository that is getting data feeds from production systems and additional services and storing them in an optimized structure for analysis—the data warehouse (DWH). The most common data schema optimized for analysis is called the star schema. Production databases are optimized for performance and have very different properties, some of which aren’t even relational databases. A process of Extracting, Transforming, and Loading (ETL) the data into the data warehouse is required to make one into the other. Since it’s a resource-heavy process requiring and lot of database access, it is usually run in bulk when the service is at lower demand, usually once a day. That is why most data warehouses are up to 24 hours behind compared production databases.

It is often preferable to train your team to use a replicated version of your production database rather than build a highly processed data warehouse. Accordingly, transformation should be basic and bare-bones, as well as thoroughly documented. The time they spend in learning these tools will be saved by more than ten-fold by not having to build elaborate ETL processes and maintain a unique infrastructure for a DWH.

Control Groups

Special attention should be given to instrumentation and control groups that enable decision funnel analytics. Often, your decision funnel consists of several systems working linearly (sometimes even in parallel) to make decisions on applications: rules, models, manual review, etc. Control groups must be implemented across all of your detection systems so you can constantly test your decisions and identify gaps. These control groups should persist through the whole lifecycle—otherwise, the model’s control group could be rejected by rules and vice versa. Make sure you design instrumentation and control groups so you can attribute a decision to a specific mechanism and optimize their performance.

Best Practices for Ongoing Analysis

Every system has its idiosyncrasies, and with a large-enough portfolio, most of your analysis will focus on identifying corner cases stemming from interactions between seemingly unrelated product features and operationally driven spikes in costs (mistakes in settlement file parsing are an example). Still, using a few best practices will help you get to a solution earlier and allow you to act faster and with better accuracy.

Automated Segmentation and Tagging

Preserving knowledge from previous investigations is key for iteratively understanding and fixing your loss problems. Having solved a problem once doesn’t guaurantee it won’t appear again in a few months, by virtue of seasonality or a new big merchant with a clunky operation. Maintain your ability to detect previously solved problems by developing scripts that automatically tag them, and then incrementally add to them as you expand your knowledge. This script suite will serve as the first diagnostic tool you can use on a misbehaving portfolio to single out already known problems and help you focus on the unknowns.

Root Cause Analysis

Once you have a defined subpopulation that needs to be examined further, case-by-case review by domain experts is the next step. The goal is to find the reason behind the loss using careful review in light of all events that transpired after an application was approved. This is where you must combine funnel analytics (knowing which mechanism did or would have acted on this purchase), strong review tools, and investigative capabilities. Talk to your customer (although most of these inquiries provide only half-truths), and follow up on disputes. Many times, customer-care contacts will help you identify integration and process errors. Backtrack everything that happened to the application to understand those.

Analyzing trends in order to find actionable insights is a science (mixed with a little bit of art) requiring deep domain expertise in customer behavior and also detailed understanding of specific systems and processes. Support your team with strong documentation and knowledge sharing in easily searchable databases, and you will create a highly effective investigation process that will properly inform the actions you take.