Skip to main content
Module 6 · Lesson 1 of 311/18 in the course~20 min
Module lessons (1/3)

Distributions, Quantiles and Normality

Lesson preview5 hands-on exercises readyCourse R · Module 6 — Distributions and Statistical Inference

Calculate quantiles, IQR, z-scores and simulate reproducible samples with set.seed(), rnorm() and pnorm().

What you'll learn in this lesson

  • Decompose any empirical distribution using quantile() and the interquartile range IQR().
  • Standardize variables on different scales by calculating z-scores with mean() and sd().
  • Use the Base R family of normal curve functions (dnorm, pnorm, qnorm, rnorm).
  • Ensure reproducibility of samples and experiments via set.seed().

Overview

Two teams can have exactly the same average 30 ms latency, but one always stays between 25 and 35 ms while the other alternates between 15 ms and 200 ms peaks. To really understand a distribution you need quantiles, standardization and probabilistic models.

The quantile(x, probs = ...) function returns any percentile threshold (for example 0.50 for median, 0.95 or 0.99 for latency SLAs). The interquartile range IQR(x) measures the width of the central 50% of the data (Q3 - Q1).

Sections covered in this lesson

  1. 1Quantiles, percentiles and IQR()
  2. 2The d/p/q/r family for the Normal distribution
  3. 3Test yourself: guided exercises
  4. 4Concept check
Pro Lesson · Module 6 — Distributions and Statistical Inference

Unlock "Distributions, Quantiles and Normality" and the full Course R curriculum

Calculate quantiles, IQR, z-scores and simulate reproducible samples with set.seed(), rnorm() and pnorm().

Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Course R plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.