Skip to content

Introduction to Statistics for Data Analytics

In data analytics, statistics helps you:

  • Summarize data reliably (not just “eyeballing” charts)
  • Quantify uncertainty (confidence intervals instead of single numbers)
  • Compare groups fairly (hypothesis tests)
  • Understand relationships (correlation vs causation)
  • Population: the full set you care about
  • Sample: observed subset of the population
  • Parameter: a population quantity (true mean, true proportion)
  • Statistic: a sample-based estimate (sample mean, sample proportion)
  • Bias: systematic error (wrong sampling, leakage)
  • Variance: how much an estimator varies across samples

You rarely see the population. You take a sample and estimate.

  • Your estimate is not exact.
  • Your estimate changes if you resample.

That’s why we use:

  • Distributions
  • Standard error
  • Confidence intervals
  1. Correlation ≠ causation
  2. P-hacking (trying many tests until something is “significant”)
  3. Ignoring base rates (rare events)
  4. Selection bias (your sample isn’t representative)
  5. Over-trusting averages without checking spread/outliers
Imports
import numpy as np
import pandas as pd
import scipy.stats as stats

If SciPy isn’t available in your environment, you can still follow most concepts using NumPy.

Every statistics workflow in this phase follows roughly the same shape: you start with raw data, describe it, then use that description to reason about a population you can’t fully observe.

diagram From data to decision mermaid
The general path statistics takes: raw data leads to a summary, then to inference, then to a decision.

Continue to Descriptive Statistics to learn how mean, median, and variance summarize a sample before you do any inference.

pch.coffeeTagline

pch.coffeeCta

pch.feedbackHeading

pch.feedbackSubheading