Statistics + Programming

Statistics Meets Coding (R)

Learn statistics by writing code in R. Explore data, understand probability, perform statistical tests, build predictive models, and communicate discoveries through data visualization and computational experiments.

R
∫ π f(x) ⌘
ABOUT THIS COURSE

Learn Statistics by Analyzing Data with R

Statistics becomes much more interesting when you can experiment with real data. In this course, you will learn statistical concepts and immediately apply them using R. Instead of relying only on formulas and manual calculations, you will write programs to explore datasets, visualize patterns, simulate random events, test hypotheses, and build statistical models. The course is designed to connect mathematical ideas with practical data analysis.

01

02

03

04

05

06

COURSE CONTENT

Explore the Curriculum

Each unit combines mathematical concepts, worked examples, computational experiments, and visual exploration.

01

1. Introduction to Statistics and R

⌄

Lessons

  • What is statistics? Descriptive and inferential statistics LESSON
  • Populations, samples, variables, and observations LESSON
  • Introduction to R and RStudio LESSON
  • Vectors, data frames, and basic calculations LESSON
  • Importing CSV and Excel datasets LESSON
  • Exploring datasets with dplyr LESSON
02

2. Descriptive Statistics

⌄

Lessons

  • Measures of central tendency: mean, median, and mode LESSON
  • Measures of variability: range, variance, and standard deviation LESSON
  • Quartiles, percentiles, and interquartile range LESSON
  • Five-number summaries LESSON
  • Calculating descriptive statistics with R LESSON
  • Summarizing grouped data LESSON
03

3. Data Visualization

⌄

Lessons

  • Understanding distributions with histograms LESSON
  • Boxplots and identifying outliers LESSON
  • Bar charts and frequency distributions LESSON
  • Scatterplots and relationships between variables LESSON
  • Visualizing data with ggplot2 LESSON
  • Customizing and combining statistical plots LESSON
04

4. Probability Fundamentals

⌄

Lessons

  • What is probability? LESSON
  • Sample spaces and events LESSON
  • Addition and multiplication rules LESSON
  • Conditional probability LESSON
  • Independent and dependent events LESSON
  • Bayes' theorem LESSON
  • Simulating probability experiments with R LESSON
05

5. Probability Distributions

⌄

Lessons

  • Random variables and probability distributions LESSON
  • Discrete and continuous distributions LESSON
  • Bernoulli and binomial distributions LESSON
  • Poisson distribution LESSON
  • Uniform and normal distributions LESSON
  • Exponential distribution LESSON
  • Simulating distributions with R LESSON
06

6. Sampling and the Central Limit Theorem

⌄

Lessons

  • Population parameters and sample statistics LESSON
  • Random sampling and sampling bias LESSON
  • Sampling distributions LESSON
  • Standard error LESSON
  • The central limit theorem LESSON
  • Monte Carlo simulations in R LESSON
07

7. Confidence Intervals

⌄

Lessons

  • Point estimates and interval estimates LESSON
  • Understanding confidence levels LESSON
  • Confidence intervals for a population mean LESSON
  • Confidence intervals for proportions LESSON
  • Bootstrap confidence intervals LESSON
  • Calculating and visualizing confidence intervals in R LESSON
08

8. Hypothesis Testing

⌄

Lessons

  • Null and alternative hypotheses LESSON
  • Test statistics and p-values LESSON
  • Significance levels and statistical errors LESSON
  • One-sample and two-sample t-tests LESSON
  • Paired t-tests LESSON
  • Proportion tests LESSON
  • Interpreting statistical test results in R LESSON
09

9. Comparing Groups

⌄

Lessons

  • Comparing two independent groups LESSON
  • Comparing paired observations LESSON
  • One-way analysis of variance (ANOVA) LESSON
  • Post-hoc comparisons LESSON
  • Kruskal-Wallis test LESSON
  • Visualizing group differences LESSON
010

10. Correlation and Regression

⌄

Lessons

  • Covariance and correlation LESSON
  • Pearson and Spearman correlation LESSON
  • Simple linear regression LESSON
  • Interpreting regression coefficients LESSON
  • Residuals and model diagnostics LESSON
  • Multiple linear regression LESSON
  • Predicting outcomes with R LESSON
011

11. Categorical Data Analysis

⌄

Lessons

  • Categorical variables and contingency tables LESSON
  • Observed and expected frequencies LESSON
  • Chi-square goodness-of-fit test LESSON
  • Chi-square test of independence LESSON
  • Fisher's exact test LESSON
  • Analyzing categorical data with R LESSON
012

12. Beyond Classical Statistics

⌄

Lessons

  • Nonparametric statistics LESSON
  • Bootstrap and permutation tests LESSON
  • Introduction to logistic regression LESSON
  • Introduction to survival analysis LESSON
  • Introduction to Bayesian statistics LESSON
  • Reproducible statistical analysis with R Markdown or Quarto LESSON
LEARN BY EXPERIMENTING

Visualizations and Coding Projects

Use programming to turn mathematical ideas into interactive experiments and animations.

✦

Explore and Visualize a Real Dataset

Import a dataset, calculate descriptive statistics, identify patterns, and create a collection of publication-quality visualizations using ggplot2.

✦

Simulate Probability Experiments

Use R to simulate coin tosses, dice rolls, and other random experiments. Compare simulated results with theoretical probabilities.

✦

Investigate a Scientific Question

Formulate hypotheses, analyze sample data, perform statistical tests, and communicate the results.

✦

Build a Predictive Regression Model

Analyze relationships between variables, fit a regression model, evaluate its performance, and use it to make predictions.

✦

Analyze Your Own Dataset

Complete an end-to-end statistical analysis, from importing and cleaning data to visualization, inference, and reporting.

MATHEMATICS · PROGRAMMING · DISCOVERY

Understand mathematics by making it move.

Explore mathematical concepts, write code, create visualizations, and develop your own computational experiments.

Back to Home →