How can I extract the statistical significance of each variable's coefficient? #656
Replies: 1 comment
-
|
Hello Alex, Thank you for contacting us! I’d like to point out that p-values are a concept from frequentist hypothesis testing. In the context of regression coefficients, they represent the probability of the null hypothesis being true, which is typically that the coefficient is zero (i.e., the null hypothesis is that there is no relationship between the predictor and the outcome). Meridian uses Bayesian Causal Inference, and hence doesn’t produce p-values as it operates within a different statistical framework. Meridian focuses on posterior distributions for model parameters. Instead of providing a single point estimate and p-value for the coefficients, it gives a posterior distribution for each coefficient that represents the uncertainty of the coefficient’s value. You can access the entire posterior distributions of each coefficient using the
Validating the quality of causal inference directly is challenging and necessitates well-designed experiments. For insights into assessing model fit, refer to the documentation on Assess the model fit and access the results. You can calculate custom metrics using the posterior data available in Evaluating coefficient significance against zero You can do so by computing the mean and credible interval of a parameter and check whether the credible interval includes 0. The following code snippet uses analyzer.get_central_tendency_and_ci(model_name.inference_data.posterior.gamma_c, confidence_level=0.9)Columns are mean, ci_lo, ci_hi. Rows are control variables. Note that the ROI posterior will always be positive due to the positive prior. Therefore, checking its significance against zero is not meaningful. Bayesian models make probabilistic statements about unknown parameters, combining prior belief and data observed. For example, with a Bayesian approach you can answer questions like, "What is the probability that a channel's ROI is greater than 1?". Direct probability statements on unknown parameters are interpretable and often closely aligned with how people think. If you want to identify “good” performing channels, you can obtain model results summaries through the Also consider these custom metrics for evaluating ROIs. Probability of ROI being at least 1 (model_name.inference_data.posterior.roi_m >= 1).mean(dim=('chain', 'draw'))This metric indicates the likelihood of a channel reaching an ROI breakeven point (generating sales equal to or greater than the investment). Percentile of ROI model_name.inference_data.posterior.roi_m.quantile([0.25, 0.75], dim=('chain', 'draw'))Feel free to reach out if you have any further questions regarding this. Thank you Google Meridian Support Team |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Meridian experts, so far the model diagnostics have been focusing on the entire model (R2, MAPE, training vs test....). But how can I check each variable coefficient's statistical significance? What is the threshold of p-value for that?
Thanks,
Alex
Beta Was this translation helpful? Give feedback.
All reactions