Skip to content

trap improper posteriors #1555

@bob-carpenter

Description

@bob-carpenter

We want to be able to trap improper posteriors. Daniel just demoed this model

data {
  int<lower=0> N;
  vector[N] x;
  vector[N] y;
}
parameters {
  real a;
  real b;
  real<lower=0> sigma;
}
model {
  y ~ normal(a + b * x, sigma);
}

and it samples and gives garbage (low n_eff for a and b, but high n_eff for err_sd).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions