9.4 Tuning prior models for regression parameters

  1. An average temperature day in DC: (65 to 70 degrees F)

    • 3000-7000 riders with around 5000
  2. For every one degree increase, you get about +100 riders ± 80

  3. 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,σindN(μi,σ2)withμi=β0+β1Xi

β0cN(5000,10002)

β1N(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=1250l=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.