sibylhe/mmm_stan

Definition formula of mc_df['mc_delta']

hiroki-kurasawa opened this issue · 3 comments

Hi Sibyl

thanks to this repository, I now have a deeper understanding of marketing mix modeling

I have a question about line 541 of mmm_stan.py.
https://github.com/sibylhe/mmm_stan/blob/main/mmm_stan.py#L541

in README, definition of delta is mc_pred - mc_ture, but delta is mc_true - mc_pred in line 541 . Is there any problem?

Indeed! Fixed it. Thanks for pointing out this error!

you should fix it as mc_df['mc_delta'] = mc_df['mc_pred'] - mc_df['mc_true'] instead of mc_df['mc_delta'] = ['mc_pred'] - mc_df['mc_true']

https://github.com/sibylhe/mmm_stan/blob/main/mmm_stan.py#L541

👌