/
concept-collection
/
stan-examples
Sign in
concept-collection
/
stan-examples
Code
Commits
Issues
0
Pull requests
0
Branches
1
Tags
0
main
Branches
main
stan-examples
/
linear-regression
/
main.stan
13 lines · 171 B
Copy
Copied
Blame
History
Raw
1
data {
2
int<lower=0> N;
3
vector[N] x;
4
vector[N] y;
5
}
6
parameters {
7
real alpha;
8
real beta;
9
real<lower=0> sigma;
10
}
11
model {
12
y ~ normal(alpha + beta * x, sigma);
13
}