Direct Effects Analysis
Direct Effects on Target Report
We now return to our marketing example for good and utilize Likelihood Matching to estimate the Direct Effect of each driver variable on the Target Node .
- In Validation Mode
F5, select Menus > Analysis > Report > Target > Direct Effects on Target.
For each driver, the Direct Effects on Target report automatically adjusts for all Confounders. In Observation Mode, it does this by Likelihood Matching. We designated the five downstream variables as Non-Confounders during model setup. They belong to and can respond when a marketing driver varies.
The report resembles a regression table. Each Direct Effect is the local slope of the target mean with respect to a driver mean at its reference value. A slope can summarize a nearly straight curve over a wider range. In the three-node Simpson’s Paradox example it also matched the adjusted binary treatment contrast. Here each marketing variable has its own scale and response shape.
Compare Incentives and Sales
Open the webinar’s ACME marketing network, select as the driver of , and compare the two reports with no observations. At the same prior incentive mean of 47.0845, Total Effects on Target reports 1.0791 sales units per incentive unit. Direct Effects on Target reports 0.5343. The first describes the association on observing incentives. The second also holds the other advertising decisions and calendar variables designated as Confounders at their reference distributions.
Compare the two response curves on the same axes to see how the Sales estimates differ at each incentive state. The webinar recording presents the modeling assumptions, and its on-screen response curves illustrate the marketing example.
Target Mean Analysis
In this marketing mix example, however, we can make no such assumption. Rather than speculating about the nature of the relationships, we let BayesiaLab estimate the response curves, whatever their shapes might be:
- Select Menus > Analysis > Visual > Target > Target's Posterior > Curves > Direct Effects.
- Then, from the options, choose:
- Target: Mean
- Variables: Mean
- Use Hard Evidence
- Click Show Sensitivity Chart, which generates a plot of as a function of each driver variable.
Note that the nodes in the Class are not included here.
Also, all drivers are represented with their original scales, so (), (), and () are all squeezed into the leftmost portion of the plot. Later, we will “decompress” the plot by normalizing the drivers’ value range so they all appear on a 0–100 scale.
For now, however, we want to focus on a single driver:
- Remove all curves by clicking the All Curves checkbox.
- Select only , which leaves one curve.

The x-values of the points on the curve correspond to the mean values of the discretized states of . Given that we discretized into 5 bins, we have 5 discrete x-values. The y-values are the expected values of the Target Node at each corresponding x-value of .
At each state of , Likelihood Matching maintains the marginal distributions of the variables chosen for adjustment. The plotted means are estimates of intervention outcomes to the extent that these choices adequately account for confounding and preserve the causal pathways of interest.
Replicating Target Mean Analysis Step-by-Step
Given the importance of Target Mean Analysis, we now simulate the curve plotting process step by step. We show what is happening in BayesiaLab “behind the scenes” as the curve is plotted using Direct Effects.
- Select the Monitors of all Confounders.
- Apply Fix Probabilities to all Confounders.
This “fixed” status is indicated by purple bars in the Monitors of the Confounders.
Note that you must not fix the probabilities of the Non-Confounders. Their Monitor bars have to remain blue. and , of course, must remain unfixed as well. The former you will manipulate, and the latter’s response you want to observe.
- Set to each possible state, from the lowest to the highest. Likelihood Matching maintains the distributions of all the Confounders while and the Non-Confounders can respond to the intervention.
To further illustrate this important process, we have extracted the Monitors for and from the Monitor Panel above and lined them up side-by-side:
For instance, given in state , which has a mean value of 16.070, has a mean value of 285.063 (see leftmost panel). So, the mean values of and are the x and y coordinates of the first point on the response curve below. The remaining points on the curve are formed in the same way.

Note that this step-by-step approach was only meant to show what BayesiaLab is performing in the background whenever you invoke the Target Mean Analysis plot.
Target Mean Analysis (Direct Effects)
Now that we have explained how the Target Mean Analysis plot is generated, you can let BayesiaLab perform it again automatically for all drivers, similar to what we did in its first run:
- Select Menus > Analysis > Visual > Target > Target's Posterior > Curves > Direct Effects.
At the time, however, it was difficult to interpret and compare the curves as the marketing variables were all recorded on different scales.
- In this run, select Normalize in the dialog box, which brings all x-values on a common 0–100 scale.
- Once the plot appears, deselect the calendar-related variables, i.e., , , , and .
We leave them out for now as they are of lesser interest to us; we cannot modify the calendar after all. Later in our analysis, we will assign a special status to them to formally exclude these variables from being optimized.
We can now compare where rises, flattens, or falls across the observed range of each marketing driver. The 0–100 scale expresses position in that driver’s range. For a slope in the driver’s original units, use the Direct Effects report or select Mean for the horizontal axis in Direct Effect Curves.
Response Curve Patterns
What is perhaps most striking in this plot is that many of the curves appear non-linear. Clearly, any assumption of linearity would not have held. Using the Direct Effects on Target Report, which we used earlier to estimate the slope of these curves, did entirely obscure the dynamics we can observe now.
Furthermore, we can derive several important insights from this plot. For instance, the response curve for rises quickly around its middle values, peaks, and then declines. looks like an upside-down U, suggesting that there is a “sweet spot” in terms of marketing exposure. The curve for looks S-shaped, while the variable appears to be exponentially linked to .
The “wild mix” of response curve patterns highlights the inherent difficulty of marketing mix optimization. While the curves themselves may be individually meaningful to a marketing expert, it is far from obvious how much should be allocated to each marketing channel within the constraints of an overall marketing budget.