This is friendly competition on how to calculate the at rest earth pressure coefficient for a given wall/soil scenario. Details are shown on the link below. Ends in couple of weeks.
The first equation looks good to me. As far as reality, there is a lot of approximations to Ka, Ko and Kp. As you go down the wall height, friction angle can change. Also you go along the wall length, soils parameters can also change.