Hi there,

Could you please help me in figuring out a parameter estimation stan program using ADVI.

For example, I am using a model:

Y = a * x**2 + b * x**3

Where ‘a’ and ‘b’ are my parameters. For MCMC I use data which contains Observed Y, x and error in Y(sigma). I define a chi sq equation (Y_therotical - Y_obsereved/ sigma)**2. Also uses a flat prior for this parameters.

Here is an example in EMCEE code: http://dfm.io/emcee/current/user/line/

Can I do same likelihood, prior settings and get parameters in stan using ADVI?