STA 124 Introduction to Probability Distribution Study Notes

Introduction to Random Variables

  • Definition of Random Variables: Let SS be a sample space associated with a random experiment EE. A function that assigns a real number X(s)X(s) to each element ss of the sample space SS is called a random variable, denoted as XX.
  • Functional Notation: The relationship is expressed as X:S→RX : S \rightarrow R, where RR represents the set of real numbers.
  • Sample Space Examples:     * Single Coin Toss: The sample space is S={H,T}S = \{H, T\}. A rule can be defined such that X(H)=1X(H) = 1 and X(T)=0X(T) = 0.     * Two Coin Tosses: The sample space is S={HH,HT,TH,TT}S = \{HH, HT, TH, TT\}. If YY is the random variable representing the number of heads:         * Y(HH)=2Y(HH) = 2         * Y(HT)=1Y(HT) = 1         * Y(TH)=1Y(TH) = 1         * Y(TT)=0Y(TT) = 0
  • Range Space: This is the set of real numbers to which the elements of the sample space are mapped. For the single coin toss, the range space is R={0,1}R = \{0, 1\}. For the two-coin toss, the range space is R={0,1,2}R = \{0, 1, 2\}.

Discrete Random Variables and Probability Mass Functions

  • Discrete Random Variable: A random variable is discrete if its range space RxR_x contains a finite or countably infinite number of points.
  • Example 3: Electronic Component Testing: Testing three components where DD is defective and NN is non-defective.     * S={DDD,DDN,DND,NDD,DNN,NDN,NND,NNN}S = \{DDD, DDN, DND, NDD, DNN, NDN, NND, NNN\}.     * If XX is the number of defectives, the mappings are:         * X(DDD)=3X(DDD) = 3         * X(DDN)=X(DND)=X(NDD)=2X(DDN) = X(DND) = X(NDD) = 2         * X(DNN)=X(NDN)=X(NND)=1X(DNN) = X(NDN) = X(NND) = 1         * X(NNN)=0X(NNN) = 0     * Range Space R={0,1,2,3}R = \{0, 1, 2, 3\}.
  • Example 4: Tossing Two Dice: The sample space consists of 36 ordered pairs (i,j)(i, j) where i,j∈{1,2,3,4,5,6}i, j \in \{1, 2, 3, 4, 5, 6\}.     * If X(i,j)=i+jX(i, j) = i + j, the range space is R={2,3,4,…,11,12}R = \{2, 3, 4, \dots, 11, 12\}.     * Specific assignments:         * X(1,1)=2X(1, 1) = 2         * X(1,2)=X(2,1)=3X(1, 2) = X(2, 1) = 3         * X(5,6)=X(6,5)=11X(5, 6) = X(6, 5) = 11         * X(6,6)=12X(6, 6) = 12
  • Probability Density (Mass) Function (pmf): For a discrete random variable XX, the function f(x)f(x) or p(x)p(x) is defined as f(x)=Pr(X=x)f(x) = Pr(X = x).
  • Conditions for a pmf:     1. f(x)≥0f(x) \geq 0     2. ∑Rxf(x)=1\sum_{R_x} f(x) = 1     3. Pr(X=x)=f(x)Pr(X = x) = f(x)

Mathematical Expectation and Variance for Discrete Variables

  • Mean (μ\mu): The mathematical expectation or expected value of XX is the weighted sum of its values:     * μ=E(X)=∑Rxxf(x)\mu = E(X) = \sum_{R_x} x f(x)
  • Expectation of a Function: For any function h(x)h(x), E(h(X))=∑Rxh(x)f(x)E(h(X)) = \sum_{R_x} h(x) f(x).
  • Variance (σx2\sigma_x^2): Measures the dispersion of the random variable.     * σx2=E((X−μ)2)=∑Rx(x−μ)2f(x)\sigma_x^2 = E((X - \mu)^2) = \sum_{R_x} (x - \mu)^2 f(x)     * Alternative formula: σx2=E(X2)−(E(X))2\sigma_x^2 = E(X^2) - (E(X))^2
  • Properties of Expectation:     * If aa is a constant, then E(a)=aE(a) = a.     * If aa is a constant and h(x)h(x) is a function, then E[ah(X)]=aE[h(X)]E[a h(X)] = a E[h(X)].
  • Example Problem: Finding Constant kk: If f(x)=k(2x+1)f(x) = k(2x + 1) for x=1,2,…,6x = 1, 2, \dots, 6:     * k∑x=16(2x+1)=k(3+5+7+9+11+13)=48k=1k \sum_{x=1}^{6} (2x + 1) = k(3 + 5 + 7 + 9 + 11 + 13) = 48k = 1     * k=148k = \frac{1}{48}

Continuous Random Variables and Probability Density Functions

  • Definition: A continuous random variable XX has a range space that is an interval or union of intervals. Its probability density function (pdf) is a non-negative integrable function f(x)f(x).
  • Conditions for a pdf:     1. f(x)≥0f(x) \geq 0 for all xx     2. ∫−∞∞f(x) dx=1\int_{-\infty}^{\infty} f(x) \, dx = 1     3. Pr(a≤X≤b)=∫abf(x) dxPr(a \leq X \leq b) = \int_{a}^{b} f(x) \, dx
  • Note on Single Points: For continuous variables, the probability of a single exact value is zero: Pr(X=x)=0Pr(X = x) = 0. Consequently:     * Pr(a<X<b)=Pr(a≤X≤b)=Pr(a<X≤b)=Pr(a≤X<b)Pr(a < X < b) = Pr(a \leq X \leq b) = Pr(a < X \leq b) = Pr(a \leq X < b)
  • Continuous Mathematical Expectation:     * E(X)=∫Rxxf(x) dxE(X) = \int_{R_x} x f(x) \, dx     * E(h(X))=∫Rxh(x)f(x) dxE(h(X)) = \int_{R_x} h(x) f(x) \, dx
  • Continuous Variance:     * σ2=∫Rx(x−μ)2f(x) dx=E(X2)−μ2\sigma^2 = \int_{R_x} (x - \mu)^2 f(x) \, dx = E(X^2) - \mu^2

Bernoulli Trials and Binomial Distribution

  • Bernoulli Trial: A random experiment with exactly two outcomes: "success" (1) and "failure" (0).     * Probability of success = pp     * Probability of failure = 1−p=q1 - p = q     * Pmf: f(x)=px(1−p)1−xf(x) = p^x (1 - p)^{1-x} for x=0,1x = 0, 1     * Mean: E(X)=pE(X) = p     * Variance: Var(X)=p(1−p)=pqVar(X) = p(1 - p) = pq
  • Binomial Distribution: Arises from performing nn independent Bernoulli trials where the probability of success pp remains constant.     * Assumptions:         1. Trials are independent.         2. Each trial has only two outcomes.         3. The probability of success pp is constant.     * Pmf: f(x)=Pr(X=x)=(nx)px(1−p)n−xf(x) = Pr(X = x) = \binom{n}{x} p^x (1 - p)^{n-x} for x=0,1,…,nx = 0, 1, \dots, n     * Number of Combinations: (nx)=n!x!(n−x)!\binom{n}{x} = \frac{n!}{x!(n-x)!}     * Mean and Variance:         * E(X)=npE(X) = np         * Var(X)=np(1−p)=npqVar(X) = np(1 - p) = npq
  • Example: Insect Survival: If p=0.75p = 0.75 and n=5n = 5:     * Probability that 3 survive: Pr(X=3)=(53)(0.75)3(0.25)2=10×0.421875×0.0625=0.263671Pr(X = 3) = \binom{5}{3} (0.75)^3 (0.25)^2 = 10 \times 0.421875 \times 0.0625 = 0.263671     * Probability all die: Pr(X=0)=(50)(0.75)0(0.25)5=0.0009765Pr(X = 0) = \binom{5}{0} (0.75)^0 (0.25)^5 = 0.0009765

Geometric Distribution

  • Definition: The number of independent Bernoulli trials required to obtain the first success.
  • Conditions:     1. Repeated trials until the first success.     2. Two possible outcomes per trial.     3. Trials are independent.     4. pp is constant.
  • Pmf: f(x)=qx−1pf(x) = q^{x-1} p for x=1,2,3,…x = 1, 2, 3, \dots
  • Mean and Variance:     * E(X)=1pE(X) = \frac{1}{p}     * Var(X)=1−pp2Var(X) = \frac{1 - p}{p^2}
  • Example: Marketing Rep: If p=0.20p = 0.20:     * Probability success on the 4th person: Pr(X=4)=0.20(0.80)4−1=0.20(0.512)=0.1024Pr(X = 4) = 0.20(0.80)^{4-1} = 0.20(0.512) = 0.1024     * Mean: 10.20=5\frac{1}{0.20} = 5 people.

Negative Binomial Distribution

  • Definition: The number of trials XX required to obtain exactly rr successes in a series of Bernoulli trials.
  • Pmf: f(x)=Pr(X=x)=(x−1r−1)pr(1−p)x−rf(x) = Pr(X = x) = \binom{x-1}{r-1} p^r (1 - p)^{x-r} for x=r,r+1,r+2,…x = r, r+1, r+2, \dots
  • Mean and Variance:     * μ=E(X)=rp\mu = E(X) = \frac{r}{p}     * σ2=Var(X)=r(1−p)p2\sigma^2 = Var(X) = \frac{r(1 - p)}{p^2}
  • Example: Voter Poll: Probability p=0.20p = 0.20, looking for r=5r = 5 successes by trial x=15x = 15:     * Pr(X=15)=(144)(0.2)5(0.8)10=0.034Pr(X = 15) = \binom{14}{4} (0.2)^5 (0.8)^{10} = 0.034     * Expected number of interviews: 50.2=25\frac{5}{0.2} = 25. Variance: 100.

Poisson Distribution

  • Definition: Discrete distribution expressing the probability of a given number of events occurring in a fixed interval of time or space, given a constant mean rate λ>0\lambda > 0.
  • Pmf: f(x)=e−λλxx!f(x) = \frac{e^{-\lambda} \lambda^x}{x!} for x=0,1,2,…x = 0, 1, 2, \dots
  • Mean and Variance: E(X)=λE(X) = \lambda and Var(X)=λVar(X) = \lambda.
  • Example: Radioactive Particles: Mean λ=4\lambda = 4 per millisecond.     * Exactly 6 particles: Pr(X=6)=e−4466!=0.0183×4096720=0.1041Pr(X = 6) = \frac{e^{-4} 4^6}{6!} = \frac{0.0183 \times 4096}{720} = 0.1041     * At least 7 particles: Pr(X≥7)=1−Pr(X≤6)=1−0.8886=0.1114Pr(X \geq 7) = 1 - Pr(X \leq 6) = 1 - 0.8886 = 0.1114

Uniform Distribution (Continuous)

  • Definition: A rectangular distribution where any value in the interval [α,β][\alpha, \beta] is equally likely.
  • Pdf: f(x)=1β−αf(x) = \frac{1}{\beta - \alpha} for α≤x≤β\alpha \leq x \leq \beta
  • Mean and Variance:     * E(X)=α+β2E(X) = \frac{\alpha + \beta}{2}     * Var(X)=(β−α)212Var(X) = \frac{(\beta - \alpha)^2}{12}
  • Example: Database Entry: Uniform between 1.5 and 2.2 minutes.     * Mean = 1.5+2.22=1.85\frac{1.5 + 2.2}{2} = 1.85 min.     * Variance = (2.2−1.5)212=0.0408 min2\frac{(2.2 - 1.5)^2}{12} = 0.0408\,min^2.

Normal Distribution

  • Definition: A continuous distribution characterized by its bell-shaped curve, defined by mean μ\mu and variance σ2\sigma^2, denoted N(μ,σ2)N(\mu, \sigma^2).
  • Pdf: f(x)=1σ2πe−12(x−μσ)2f(x) = \frac{1}{\sigma \sqrt{2\pi}} e^{-\frac{1}{2} (\frac{x - \mu}{\sigma})^2}
  • Empirical Rule:     * Pr(μ−σ<X<μ+σ)=0.6827Pr(\mu - \sigma < X < \mu + \sigma) = 0.6827     * Pr(μ−2σ<X<μ+2σ)=0.9545Pr(\mu - 2\sigma < X < \mu + 2\sigma) = 0.9545     * Pr(μ−3σ<X<μ+3σ)=0.9973Pr(\mu - 3\sigma < X < \mu + 3\sigma) = 0.9973
  • Standard Normal Random Variable (ZZ): A normal variable with μ=0\mu = 0 and σ=1\sigma = 1.     * Conversion formula: Z=X−μσZ = \frac{X - \mu}{\sigma}
  • Cumulative Distribution Function (CDF): Φ(z)=Pr(Z≤z)\Phi(z) = Pr(Z \leq z). Probabilities are typically found using standard normal tables.
  • Example: Household Recycling: μ=28\mu = 28, σ=2\sigma = 2.     * Find probability between 27 and 31 pounds:         * Z1=27−282=−0.5Z_1 = \frac{27 - 28}{2} = -0.5         * Z2=31−282=1.5Z_2 = \frac{31 - 28}{2} = 1.5         * Pr(−0.5<Z<1.5)=Φ(1.5)−Φ(−0.5)=0.9332−0.3085=0.6247Pr(-0.5 < Z < 1.5) = \Phi(1.5) - \Phi(-0.5) = 0.9332 - 0.3085 = 0.6247

Correlation and Scatter Diagrams

  • Correlation: Measures the direction and extent of a linear relationship between two variables. It measures co-variation, not causation.
  • Scatter Diagrams: Visual Examination of relationships.     * Perfect Positive: Points follow a straight line with upward slope; r=+1r = +1.     * Perfect Negative: Points follow a straight line with downward slope; r=−1r = -1.     * High/Strong: Points cluster closely around a line.     * Weak/Low: Points are widely scattered.     * No Correlation: Points show no discernable pattern; r≈0r \approx 0.
  • Pearson Product Moment Correlation Coefficient (rr): Measures the strength of the linear relationship between XX and YY.     * Value ranges from −1-1 to +1+1.     * Formula components: nn, ∑x\sum x, ∑y\sum y, ∑xy\sum xy, ∑x2\sum x^2, ∑y2\sum y^2.

Simple Linear Regression

  • Definition: A method to estimate the relationship between a quantitative independent variable (xx) and a quantitative dependent variable (yy) by fitting a straight line.
  • Assumptions:     1. Homoscedasticity: Homogeneity of variance; prediction error remains constant across values of xx.     2. Independence: Observations are collected using valid methods without hidden relationships.     3. Normality: Data follows a normal distribution.     4. Linearity: The best fit is a straight line.
  • Formula: y=β0+β1x+ϵy = \beta_0 + \beta_1 x + \epsilon     * β0\beta_0: The intercept (value of yy when x=0x = 0).     * β1\beta_1: The regression coefficient (slope; change in yy for a unit increase in xx).     * ϵ\epsilon: The error term representing variation in the data.