Skip to content

Instantly share code, notes, and snippets.

@kosugitti
Created October 17, 2016 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kosugitti/c3a889a1fa6e7f070cafefc08d831bda to your computer and use it in GitHub Desktop.
Save kosugitti/c3a889a1fa6e7f070cafefc08d831bda to your computer and use it in GitHub Desktop.
data{
int N;
vector[N] X;
vector[N] Y;
}
parameters{
real alpha;
real beta;
real<lower=0> sigma;
}
model{
Y ~ normal(alpha+beta*X,sigma);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment