python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How do I sample from a Gamma(26,6) distribution using Metropolis Hastings
I am studying MCMC and decided to test my understanding of Metropolis Hastings algorithm on a conjugate Bayesian problem. Given a poisson likelihood and gamma prior I am trying to plot the posterior d...
desert_ranger
Votes: 0
Answers: 1
Estimating parameters using stan when the distribution for response variable in a regression is non-normal - Part 2
This is an extension of my previous post here Estimating parameters using stan when the distribution for response variable in a regression is non-normal.
Let say I have below data
dat = list(y = c(0.0...
Bogaso
Votes: 0
Answers: 1
Estimating parameters using stan when the distribution for response variable in a regression is non-normal
I am using R+stan for Bayesian estimates of model parameters when the distribution for response variable in a regression is not normal but rather some custom distribution as below.
Let say I have belo...
Bogaso
Votes: 0
Answers: 1
How to force PyStan to recompile a stan model?
I have a weighted Bayesian Logistic Regression model
weighted_stan_representation = """
data {
int<lower=0> n; // number of observations
int<lower=0> d; // number of pre...
1809
Votes: 0
Answers: 1