hi, i am new to pymc and was able to build a model for conversion rate metric A/B testing
but now, i am having to implement a model for revenue for A/B testing and i really dont know to model it in pymc. i am following this paper https://cdn2.hubspot.net/hubfs/310840/VWO_SmartStats_technical_whitepaper.pdf
i am modelling the bernoulli as binomial and inputs for model are conversions, sessions and total money, but i am stucked
A_money = 5000
A_conversions = 200
A_sessions = 10000
A_theta = 1/(1+A_money)
with pm.Model() as model:
prior_control = pm.Beta('prior_control', alpha=1, beta=1) #uninformative prior
prior_money_control = pm.Gamma()
# likelihood
like_control = pm.Binomial('like_control', n=A_sessions, p=prior_control, observed=A_conversions)
like_money_control = pm.Exponential('like_money_control', )
# alpha
#alpha = pm.Exponential('alpha',)
# beta
#beta = pm.Exponential('beta',)
#g = pm.Gamma('g', alpha=alpha, beta=beta, observed=bw)
trace = pm.sample(draws=10000, tune=1000, discard_tuned_samples=True, progressbar=True)
thank you in advance