You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing with adding prior knowledge to the model, but sadly I'm not seeing the expected results. So, I wanna ask the following.
How the prior is modeling the behavior of the model?
Which parameter should be changing once we add channel_prior?
Why am I asking?
Currently, I was adding prior knowledge to previous pymc models defining the values that were required for each type of distribution.
Example: I have prior knowledge about a specific channel, basically, I know the mean contribution to the target variable should be around 0.02. Using heuristic estimation, I could define how wide would be the distribution (based on how much I believe in the prior knowledge) and using the data define alpha/beta values to the distribution.
# Mean and shaping constantmean_channel=0.02c=85# Shaping constant# Calculate alpha and beta for Beta distributionprior_alpha=mean_channel*cprior_beta= (1-mean_channel) *cprint("Alpha:", prior_alpha)
print("Beta:", prior_beta)
Here is an example where I create a couple of distributions, where the Google iOs is centered around the 0.02 value with strong beliefs, the other distribution as weaker beliefs. Finally, this is then added to the model as a list of alphas and betas to the DelayedSaturatedMMM. Here is my implementation ->
I'm doing this iterating with several values of alphas and betas but the results are the same. Looks like the model is ignoring the signal of the prior distribution and is only trying to fit as usual. So, not sure what I'm doing wrong in this implementation. Which makes me ask the first two questions 😅
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey guys!
I was playing with adding prior knowledge to the model, but sadly I'm not seeing the expected results. So, I wanna ask the following.
channel_prior
?Why am I asking?
Currently, I was adding prior knowledge to previous pymc models defining the values that were required for each type of distribution.
Example: I have prior knowledge about a specific channel, basically, I know the mean contribution to the target variable should be around
0.02
. Using heuristic estimation, I could define how wide would be the distribution (based on how much I believe in the prior knowledge) and using the data define alpha/beta values to the distribution.Here is an example where I create a couple of distributions, where the Google iOs is centered around the
0.02
value with strong beliefs, the other distribution as weaker beliefs. Finally, this is then added to the model as a list ofalphas
andbetas
to the DelayedSaturatedMMM. Here is my implementation ->The problem
I'm doing this iterating with several values of
alphas
andbetas
but the results are the same. Looks like the model is ignoring the signal of the prior distribution and is only trying to fit as usual. So, not sure what I'm doing wrong in this implementation. Which makes me ask the first two questions 😅Beta Was this translation helpful? Give feedback.
All reactions