stephens999 / fiveMinuteStats

A repo of short "vignettes" illustrating statistical concepts
http://stephens999.github.io/fiveMinuteStats
Other
295 stars 86 forks source link

update stationary_distribution, fixing tranposes and adding a functio… #58

Closed Accio closed 3 years ago

Accio commented 3 years ago

Dear @stephens999, thank you for making and sharing this series, your effort is much appreciated.

In the intro piece to stationary distribution, I found some minor mistakes with regard to representation of the stationary probability in linear algebra, particularly due to its row-vector nature. I fixed them and added explanations.

In addition, in order to illustrate how the general approach works, I added a function implementing it and tested it with the worked example in the vignette. This example hopefully helps people better understand the principle.

The example was tested with R/3.6.2 and the latest release of workflowr package.

Let me know if you have questions or concerns.