0Pricing
Learn AI with Python · Lesson

Descriptive Statistics and Distributions

Mean, median, variance, std, skewness, kurtosis, normal/binomial/Poisson distributions.

Summarizing Data

Descriptive statistics condense a dataset into a few numbers describing its center, spread, and shape. They are the first thing you compute on any new dataset.

import numpy as np
data = np.array([4, 8, 6, 5, 3, 7, 9, 6])

Mean and Median

The mean is the arithmetic average; the median is the middle value. The median resists outliers, so a large gap between them signals skew.

print(np.mean(data))     # 6.0
print(np.median(data))   # 6.0

All lessons in this course

  1. Descriptive Statistics and Distributions
  2. Probability and Bayes Theorem
  3. Hypothesis Testing
  4. Correlation and Covariance
← Back to Learn AI with Python