One-line simulations

flip_coin()

Flip a fair coin

roll_die()

Roll a fair die

what_if()

Bootstrap sampling distributions ("what if we ran the experiment many times...")

plot_ols()

Simple demo of OLS

Optimization

plot_function()

Plot a one-dimensional, user-defined function

Distributions and Probabilities

plot_distribution()

Plot random numbers from a distribution

plot_probability()

Plot probabilities as areas underneath the PDF

plot_t_value()

Plot t-distribution and visualize two-tailed p-value for a given t-statistic and degrees of freedom

Data

nhanes

Second National Health and Nutrition Examination Survey (NHANES II 1976-1980).

penguins

Body measurements for three species of penguins on the Palmer Archipelago in Antarctica.

hprice

Housing prices and attributes from 1976.