# Learning Statistics with Python

(Python Adaptation by Ethan Weed)

I am a huge fan of <a href="https://djnavarro.net" target="_blank">Danielle Navarro</a>'s book <a href="https://learningstatisticswithr.com" target="_blank">Learning Statistics with R</a>. It is the most accessible statistics book I know of. My students love it. I love it. It's free, and it comes in not only R, but also JASP and JAMOVI flavors. The only problem is, I need to teach intro stats using Python, not R. What to do? Translate the book, obviously!

Since Danielle has been so kind as to open-source the book, I have gone to work translating the R bits to Python, and am learning a lot along the way. <del>To start with, I'm concentrating on translating the code, and putting off editing the textual references to R and R-specific functions for later.</del> Having started with just the code, I have now realized that a better approach is to go through the text line-by-line, and do the job properly the first time. It's a bit slower this way, but ultimately better, I think. 

<del>It's hard to say how far I'll get, but for now</del> I'm having fun, and am excited that the students in my course won't have to forego this fantastic book, just because they need to do their stats in Python.

Update: having by now gotten as far as figuring out how to use Python to overlay the probability density for an F-distribution on top of a distribution created by taking the ratio of scaled random samples from two chi-square distributions, I think I'm committed to seeing this thing through.

Thanks very much to Danielle for the encouragement, and to <a href="https://twitter.com/emilyandthelime" target="_blank">Emily Kothe</a> for the <a href="https://learningstatisticswithr.com/book/" target="_blank">bookdown adaptation</a> of LSR, which has been extremely helpful in creating this Python version.

<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><span property="dct:title">Learning Statistics with Python</span> by <span property="cc:attributionName">Danielle Navarro and Ethan Weed</span> is licensed under <a href="http://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-SA 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1"></a></p>
