Stats

1. Descriptive Statistics

Descriptive statistics summarize and describe the features of a specific dataset.

1.1 Measures of Central Tendency
  • Mean (xˉ\bar{x}): The arithmetic average of a dataset.

    • Formula:
      xˉ=∑<em>i=1nx</em>in\bar{x} = \frac{\sum<em>{i=1}^{n} x</em>i}{n}

    • Example: Find the mean of dataset 4,8,6,5,3{4, 8, 6, 5, 3}.
      xˉ=4+8+6+5+35=265=5.2\bar{x} = \frac{4 + 8 + 6 + 5 + 3}{5} = \frac{26}{5} = 5.2

  • Median: The middle value when data is ordered from least to greatest.

    • Example: For the dataset 3,4,5,6,8{3, 4, 5, 6, 8}, the median is 55.

  • Mode: The value that appears most frequently in a dataset.

    • Example: For the dataset 2,3,3,5,7{2, 3, 3, 5, 7}, the mode is 33.

1.2 Measures of Dispersion
  • Variance (s2s^2 for sample): Measures how far data points deviate from the mean.

    • Formula:
      s2=∑<em>i=1n(x</em>i−xˉ)2n−1s^2 = \frac{\sum<em>{i=1}^{n} (x</em>i - \bar{x})^2}{n - 1}

  • Standard Deviation (ss): The square root of the variance.

    • Formula:
      s=s2s = \sqrt{s^2}

    • Example: For data points 2,4,6{2, 4, 6}:

    • Mean: xˉ=2+4+63=4\bar{x} = \frac{2 + 4 + 6}{3} = 4

    • Sample Variance: s2=(2−4)2+(4−4)2+(6−4)23−1=4+0+42=4s^2 = \frac{(2-4)^2 + (4-4)^2 + (6-4)^2}{3-1} = \frac{4 + 0 + 4}{2} = 4

    • Standard Deviation: s=4=2s = \sqrt{4} = 2

2. Probability Theory

Probability measures the likelihood of an event occurring.

2.1 Basic Probability Rules
  • Probability Range: 0≤P(A)≤10 \le P(A) \le 1

  • Complement Rule: P(A′)=1−P(A)P(A') = 1 - P(A)

  • Addition Rule: P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)

  • Conditional Probability: P(A∣B)=P(A∩B)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}

    • Example: If P(A∩B)=0.2P(A \cap B) = 0.2 and P(B)=0.5P(B) = 0.5, then:
      P(A∣B)=0.20.5=0.4P(A|B) = \frac{0.2}{0.5} = 0.4

2.2 Combinatorics
  • Combinations: Number of ways to choose rr items from nn without regard to order.

    • Formula:
      (nr)=n!r!(n−r)!\binom{n}{r} = \frac{n!}{r!(n - r)!}

    • Example: Find (52)\binom{5}{2}.
      (52)=5!2!(5−2)!=1202×6=10\binom{5}{2} = \frac{5!}{2!(5 - 2)!} = \frac{120}{2 \times 6} = 10

3. Probability Distributions
3.1 Normal Distribution

A continuous probability distribution symmetric about the mean.

  • Notation: X∼N(μ,σ2)X \sim N(\mu, \sigma^2)

  • Standard Normal Variable (ZZ):
    Z=X−μσZ = \frac{X - \mu}{\sigma}

  • Example: Given X∼N(100,152)X \sim N(100, 15^2), find the Z-score for X=115X = 115.
    Z=115−10015=1.0Z = \frac{115 - 100}{15} = 1.0

3.2 Binomial Distribution

A discrete distribution representing the number of successes in nn independent trials with success probability pp.

  • Notation: X∼B(n,p)X \sim B(n, p)

  • Probability Mass Function:
    P(X=k)=(nk)pk(1−p)n−kP(X = k) = \binom{n}{k} p^k (1 - p)^{n - k}