Skip to contents

A comprehensive animated tutorial that builds intuition for the normal (Gaussian) distribution step by step:

  1. Title card introducing the topic

  2. Bell curve construction – axes appear, then the PDF is drawn

  3. Mean and standard deviation – annotated on the curve

  4. The 68-95-99.7 rule – successive shaded regions

  5. Standard normal vs. general normal – side-by-side comparison

  6. Cumulative distribution – CDF curve and probability lookup

  7. Sampling demonstration – histogram of random samples converging

  8. Summary card

Usage

normal_distribution_tutorial(
  output = "normal_distribution_tutorial",
  format = "gif",
  quality = "low",
  fps = 10,
  open = FALSE
)

Arguments

output

Output file path (default: "normal_distribution_tutorial.gif")

format

Output format: "gif", "mp4", "webm", "png_sequence"

quality

Render quality: "low", "medium", "high", "production"

fps

Frames per second

open

Open the file after rendering?

Value

Invisibly returns the output file path

Examples

if (FALSE) { # \dontrun{
# Render the full tutorial as a GIF
normal_distribution_tutorial()

# High-quality MP4
normal_distribution_tutorial(format = "mp4", quality = "high")
} # }