9.4 Tuning prior models for regression parameters
An average temperature day in DC: (65 to 70 degrees F)
- 3000-7000 riders with around 5000
For every one degree increase, you get about +100 riders ± 80
At any given temperature, daily ridership vary with a standard deviation of 1250 rides
We will work with centered data β0→β0c because :
it is easier to interpret and specify in this example
this is what
rstanarm
uses
Yi|β0,β1,σind∼N(μi,σ2)withμi=β0+β1Xi
β0c∼N(5000,10002)
β1∼N(100,402)
σ∼Exp(0.0008).
where for the exponential distribution σ∼Exp(l), we relate the observed standard deviation to the rate parameter l:
SD(σ)=1l=1250⇒l=0.0008
It is good to simulate this prior and see what they look like but we will do that in the part about using default rstanarm
priors later.