Measures the discrepancy between predicted and observed outcomes. In causal inference, a smaller fitting error does not necessarily identify the model needed to estimate a causal effect. section 6.1.1
Pricing, distance, and customers
Synthetic Land2Hotel data relate distance, price, and customers. The model customers ~ price + distance can fit better, yet customers ~ distance is the appropriate model for estimating distance’s total effect because price mediates part of that effect. section 6.1.1
Figure 6.1 Graph illustrating the data-generation process for creating synthetic data, as described in the example. The arrows in the graph are labeled with their corresponding linear coefficients, all of which are negative, as this fits the context of the data modeled.
Trace the synthetic data-generating process linking distance, price, and customers before comparing regression models. section 6.1.1
