This folder contains the notebooks created for the No Bullshit Guide to Statistics.
The purpose of these notebooks is to allow you to experiment and play with all the code examples presented in the book. Each notebook contains numerous empty code cells, which are an invitation for you to try some commands on your own. For example, you can copy-paste some of the neighbouring commands and try modifying them to see what outputs you get.
This is a very short notebook that gives some examples of random selection and random assignment.
- View notebook: 11_intro_to_data.ipynb
- Binder link:
- Colab link:
This notebook explains practical aspects of data manipulations using Pandas and talks about data pre-processing steps like data cleaning and outlier removal.
- View notebook: 12_data_in_practice.ipynb
- Binder link:
- Colab link: TODO
TODO: finish the notebook with dataset pre-processing steps: 12b_background_stories.ipynb.
This notebook explains how to compute numerical summaries (mean, standard deviation, quartiles, etc.) and how to generate data visualizations like histograms, box plots, bar plots, etc.
- View notebook: 13_descriptive_statistics.ipynb
- Binder link:
- Colab link:
In this chapter you'll learn about random variables and probability models.
This notebook contains a complete introduction to probability theory, including definitions, formulas, and lots of examples of discrete random variables like coin toss, die roll, and other.
- View notebook: 21_discrete_random_vars.ipynb
- Binder link:
- Colab link:
This section will introduce you to the concept of a joint probability distribution.
For example, the pair of random variables
- View notebook: 22_multiple_random_vars.ipynb
- Binder link:
- Colab link:
The Python module scipy.stats
contains pre-defined probability models that you
can use for modeling tasks. These are like LEGOs for the XXIst century.
- View notebook: 23_inventory_discrete_dists.ipynb
- Binder link:
- Colab link:
You need to know a bit of calculus to understand the math machinery
for calculating probabilities of continuous random variables.
Don't worry—there is only one new concept to learn: the integral
- View notebook: 24_calculus_prerequisites.ipynb
- Binder link:
- Colab link:
In this notebook we'll revisit all the probability concepts we learned for discrete
random variables, and learn the analogous concepts for continuous random variables.
You can think of Section 2.5 as the result of taking Section 2.1
and replacing every occurrence
- View notebook: 25_continuous_random_vars.ipynb
- Binder link:
- Colab link:
In this section we'll complete the inventory of probability distributions by
introducing the "continuous LEGOs" distributions like uniform
, norm
, expon
,
t
, f
, chi2
, gamma
, beta
, etc.
- View notebook: 26_inventory_continuous_dists.ipynb
- Binder link:
- Colab link:
How can we use computers to generation observations from random variables? In this notebooks, we'll describe some practical techniques for generating observations from any probability distribution, and develop math tools to verify that the random generation process is workin as expected.
- View notebook: 27_random_var_generation.ipynb
- Binder link:
- Colab link:
Consider a random variable
- View notebook: 28_random_samples.ipynb
- Binder link:
- Colab link:
See the list of notebooks in 30_STATS.md or check out the Chapter 3 outline.
See the list of notebooks in 40_LINEAR_MODELS.md or read the Chapter 4 outline.
See also PART IV of the Stats overview tutorial.
Coming soon. See the Chapter 5 outline.