Module lessons (1/3)
Distributions, Quantiles and Normality
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 rangeIQR(). - Standardize variables on different scales by calculating z-scores with
mean()andsd(). - 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
- 1Quantiles, percentiles and
IQR() - 2The
d/p/q/rfamily for the Normal distribution - 3Test yourself: guided exercises
- 4Concept check
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.