Understand the Lightweight MMM model structure
mainLightweight MMM (LMMM) is a Python library built using Numpyro and JAX that helps quantify the relationship between media channel activity and sales while controlling for other factors.
A simplified model equation used by the library is:
kpi = α + trend + seasonality + media_channels + other_factors
Where:
kpi: Typically the volume or value of sales per time period (weekly or daily).α: The model intercept.trend: A flexible non-linear function capturing data trends.seasonality: A sinusoidal function with configurable parameters.media_channels: A matrix of media activity (e.g., impressions or costs) that undergoes transformations like saturation and lagging.other_factors: A matrix of other variables influencing sales.