Chapter 5: Random Variables and Their Probability Distributions

Introduction to Probability and Random Experiments

  • Probability Definition: A probability is a numerical value assigned to the chance that a particular event will occur. It serves as a measure of the likelihood of an event occurring.

  • Proportional Expression: Probabilities are expressed as a proportion ranging from 00 to 11.

  • Random Experiment: An experiment characterized by the property that, when repeated under a given set of identical conditions, it does not always lead to the same observed outcome. Consequently, it is impossible to predict the outcome of an individual experiment beforehand.

  • Coin Flip Example: When a coin is flipped and the result is observed, the outcome may be either a “head” or a “tail”. This is a “random” experiment because the specific result cannot be predicted.

Probability Calculation Examples

  • Tossing a Coin:

    • Possible outcomes: head, tail.

    • Total outcomes (nn): 22.

    • P(head)=12P(\text{head}) = \frac{1}{2}.

    • P(tail)=12P(\text{tail}) = \frac{1}{2}.

  • Rolling a Die:

    • Possible outcomes: 1, 2, 3, 4, 5, 6.

    • Total outcomes (nn): 66.

    • P(getting 3)=16P(\text{getting 3}) = \frac{1}{6}.

    • P(an even number)=36P(\text{an even number}) = \frac{3}{6}.

    • P(number greater than 4)=26P(\text{number greater than 4}) = \frac{2}{6}.

Random Variables and Their Types

  • Random Variable (RV): A variable whose value depends on the outcome of a random experiment.

  • Examples of Random Variables:

    • T=the number of tails (t) when a coin is flipped 3 times.T = \text{the number of tails (t) when a coin is flipped 3 times.}

    • X=the sum of the values (x) showing when two dice are rolled.X = \text{the sum of the values (x) showing when two dice are rolled.}

  • Types of Random Variables:

    1. Discrete Random Variables: Variables that have a finite or countable number of possible values.

    2. Continuous Random Variables: Variables that can take on any value in some interval, representing an infinite number of possible values.

Discrete Probability Distributions

  • Definition: A discrete probability distribution is a list of all possible distinct values of the random variable along with their corresponding probabilities.

  • Properties of a Discrete Probability Distribution:

    1. 0≤P(X)≤10 \le P(X) \le 1

    2. ∑P(X)=1\sum P(X) = 1

  • Mean (μ\mu): Also called the Expected Value of XX, denoted by E(X)E(X). Formula: μ=E(X)=∑X⋅P(X)\mu = E(X) = \sum X \cdot P(X).

  • Variance (σ2\sigma^2): Defined as: σ2=∑X2⋅P(X)−μ2\sigma^2 = \sum X^2 \cdot P(X) - \mu^2.

  • Standard Deviation (σ\sigma): The positive square root of the variance (σ2\sigma^2). It measures the extent to which values are spread around the mean.

Discrete Distribution Examples

  • Car Sales Example: Distribution of the number of cars sold by 10 salesmen:

    • XX: 0, 1, 2, 3, 4

    • P(X)P(X): 0.46, 0.25, 0.15, 0.09, 0.05 (Total = 1)

    • Mean Calculation: μ=E(X)=(0×0.46)+(1×0.25)+(2×0.15)+(3×0.09)+(4×0.05)=1.02\mu = E(X) = (0 \times 0.46) + (1 \times 0.25) + (2 \times 0.15) + (3 \times 0.09) + (4 \times 0.05) = 1.02

    • Variance Calculation: σ2=(02×0.46)+(12×0.25)+(22×0.15)+(32×0.09)+(42×0.05)−1.022=1.4196\sigma^2 = (0^2 \times 0.46) + (1^2 \times 0.25) + (2^2 \times 0.15) + (3^2 \times 0.09) + (4^2 \times 0.05) - 1.02^2 = 1.4196

  • Balanced Die Example:

    • Numbers (XX): 1, 2, 3, 4, 5, 6

    • Probability for each number: 16\frac{1}{6}

Practice Exercises

  1. Quiz Score (SS): Given the distribution for scores 0-5 with probabilities: P(0)=0.12,P(1)=0.04,P(2)=0.16,P(3)=0.32,P(4)=0.24,P(5)=0.12P(0)=0.12, P(1)=0.04, P(2)=0.16, P(3)=0.32, P(4)=0.24, P(5)=0.12. Find the mean and variance.

  2. Tails from 4 Coin Tosses: Given 16 possibilities with the following distribution of tails:

    • 0 tails: 116\frac{1}{16}

    • 1 tail: 416\frac{4}{16}

    • 2 tails: 616\frac{6}{16}

    • 3 tails: 416\frac{4}{16}

    • 4 tails: 116\frac{1}{16}

    • Requirement: Represent data graphically.

The Binomial Distribution B(n,p)B(n, p)

  • General Concepts:

    • One of the most widely encountered probability distributions in applied statistics.

    • Derived from a Bernoulli process.

    • Bernoulli Trial: A trial that results in only one of two mutually exclusive outcomes (e.g., head/tail, good/defective, dead/alive).

  • Conditions for a Binomial Distribution:

    1. The experiment is repeated a fixed number of times (nn).

    2. Each trial results in one of two outcomes: success or failure.

    3. The probability of success (pp) remains constant per trial. Probability of failure is q=1−pq = 1 - p.

    4. Trials are independent; outcomes of one do not affect others.

  • Binomial Formulas:

    • Probability of xx successes: P(X=x)=(nx)pxqn−x=n!x!(n−x)!pxqn−xP(X=x) = \binom{n}{x} p^x q^{n-x} = \frac{n!}{x!(n-x)!} p^x q^{n-x}

    • Parameters: nn and pp.

    • Mean μ=np\mu = np

    • Variance σ2=npq\sigma^2 = npq

Binomial Distribution Application Examples

  • Example 1: Multiple-Choice Test:

    • 10 questions, guessed. Each has 5 options (1 correct).

    • n=10,p=0.2,q=0.8n = 10, p = 0.2, q = 0.8.

    • Probability of guessing exactly 3 correctly: P(X=3)=(103)(0.2)3(0.8)7=0.2013P(X=3) = \binom{10}{3} (0.2)^3 (0.8)^7 = 0.2013.

  • Example 2: Robin Pharmacy Attendance:

    • n=5n = 5 employees, probability of lateness p=0.4p = 0.4, independence assumed.

    • q=0.6q = 0.6.

    • I. Probability of 3 late arrivals: P(X=3)=(53)(0.4)3(0.6)2=0.2304P(X=3) = \binom{5}{3} (0.4)^3 (0.6)^2 = 0.2304.

    • II. At most 1 late arrival: P(X≤1)=P(X=0)+P(X=1)=0.0778+0.2592=0.3370P(X \le 1) = P(X=0) + P(X=1) = 0.0778 + 0.2592 = 0.3370.

    • III. More than 1 late arrival: P(X>1)=1−P(X≤1)=1−0.3370=0.6630P(X > 1) = 1 - P(X \le 1) = 1 - 0.3370 = 0.6630.

    • Statistics: Mean μ=5×0.4=2\mu = 5 \times 0.4 = 2. Variance σ2=5×0.4×0.6=1.2\sigma^2 = 5 \times 0.4 \times 0.6 = 1.2. Standard deviation σ=1.2=1.0954\sigma = \sqrt{1.2} = 1.0954.

  • Example 3: Internet Help Line:

    • 20% of callers on hold (p=0.2p = 0.2), 25 callers (n=25n = 25).

    • (a) At most 2 people on hold: P(X≤2)=P(X=0)+P(X=1)+P(X=2)=0.0982P(X \le 2) = P(X=0) + P(X=1) + P(X=2) = 0.0982.

    • (b) 3 or more on hold: P(X≥3)=1−P(X<3)=1−0.0982=0.9018P(X \ge 3) = 1 - P(X < 3) = 1 - 0.0982 = 0.9018.

    • (c) Mean μ=25×0.2=5\mu = 25 \times 0.2 = 5. Variance σ2=25×0.2×0.8=4\sigma^2 = 25 \times 0.2 \times 0.8 = 4. Standard deviation σ=4=2\sigma = \sqrt{4} = 2.

General Appearance of Binomial Distributions

  • Symmetry: When p=0.5p = 0.5, the distribution is symmetrical or bell-shaped.

  • Skewness (p>0.5p > 0.5): When p>0.5p > 0.5, the distribution is skewed to the left.

  • Skewness (p<0.5p < 0.5): When p<0.5p < 0.5, the distribution is skewed to the left.

The Poisson Distribution P(λ)P(\lambda)

  • General Concepts:

    • Applied to experiments with random and independent occurrences.

    • Randomness: Occurrences do not follow a pattern and are unpredictable.

    • Independence: One occurrence does not influence successive occurrences.

    • Intervals: Can be time, space, or volume intervals.

    • Computes the probability of XX occurrences if the average number of occurrences (λ\lambda) is known.

  • Examples of Poisson Random Variables:

    1. X=Number of bad cheques presented for daily payment at a bank.X = \text{Number of bad cheques presented for daily payment at a bank.}

    2. X=Number of road deaths per month.X = \text{Number of road deaths per month.}

    3. X=Number of bacteria in a given culture.X = \text{Number of bacteria in a given culture.}

    4. X=Number of defects per square meter on metal sheets.X = \text{Number of defects per square meter on metal sheets.}

    5. X=Number of mistakes per typewritten page.X = \text{Number of mistakes per typewritten page.}

  • Poisson Formulas:

    • Probability of xx events: P(X=x)=e−λ⋅λxx!P(X=x) = \frac{e^{-\lambda} \cdot \lambda^x}{x!} for x=0,1,2,…x = 0, 1, 2, \dots

    • Mean: μ=E(X)=λ\mu = E(X) = \lambda

    • Variance: σ2=λ\sigma^2 = \lambda

Poisson Distribution Application Examples

  • Example 1: Bank Bad Cheques:

    • Average λ=6\lambda = 6 cheques/day.

    • (a) Exactly 4 cheques: P(X=4)=e−6⋅644!=0.1339P(X=4) = \frac{e^{-6} \cdot 6^4}{4!} = 0.1339.

    • (b) At least 2 cheques: P(X≥2)=1−[P(X=0)+P(X=1)]=1−[e−6⋅600!+e−6⋅611!]=0.9826P(X \ge 2) = 1 - [P(X=0) + P(X=1)] = 1 - [\frac{e^{-6} \cdot 6^0}{0!} + \frac{e^{-6} \cdot 6^1}{1!}] = 0.9826.

  • Example 2: Intersection Accidents:

    • Average λ=3\lambda = 3 accidents/month.

    • (a) Exactly 5 accidents: P(X=5)=e−3⋅355!=0.1008P(X=5) = \frac{e^{-3} \cdot 3^5}{5!} = 0.1008.

    • (b) Less than 3 accidents: P(X<3)=P(0)+P(1)+P(2)=0.0498+0.1494+0.2240=0.4232P(X < 3) = P(0) + P(1) + P(2) = 0.0498 + 0.1494 + 0.2240 = 0.4232.

    • (c) At least 2 accidents: P(X≥2)=1−[P(0)+P(1)]=1−(0.0498+0.1494)=0.8008P(X \ge 2) = 1 - [P(0) + P(1)] = 1 - (0.0498 + 0.1494) = 0.8008.

    • (d) Mean = 3, Variance = 3.

  • Exercise: Laundromat Breakdowns:

    • A machine breaks down λ=3\lambda = 3 times per month.

    • Tasks: Find probability for (a) Exactly 2, (b) Less than 1, (c) At least 1.

    • (d) Special Case: Find probability of exactly 3 breakdowns in a half-month interval (λ\lambda adjusted to 1.51.5).

The Normal Distribution N(μ,σ2)N(\mu, \sigma^2)

  • Overview: Considered the cornerstone of statistical theory for two reasons:

    1. Properties make it applicable to making inferences from samples.

    2. Large numbers of real-world phenomena are normally distributed exactly or approximately.

  • Probability Density Function (PDF):

    • f(x)=P(X=x)=1σ2π⋅e−12(x−μσ)2f(x) = P(X=x) = \frac{1}{\sigma \sqrt{2\pi}} \cdot e^{-\frac{1}{2} \left(\frac{x-\mu}{\sigma}\right)^2} for −∞≤x≤∞-\infty \le x \le \infty.

    • Constants: π≈3.14159\pi ≈ 3.14159, e≈2.71828e ≈ 2.71828.

  • Properties:

    1. Symmetrical, bell-shaped, and unimodal.

    2. The mean lies at the center.

    3. Total area under the curve equals 11.

    4. Asymptotic: ends get closer to the horizontal axis without touching it.

    5. Mean, Median, and Mode are identical values at the center.

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

Standard Normal Distribution

  • Definition: A special case of the normal distribution where Mean (μ\mu) = 00 and Variance (σ2\sigma^2) = 11.

  • Transformation: The Z-score formula transforms any normal random variable XX to a standardized normal variable ZZ:

    • Z=X−μσZ = \frac{X - \mu}{\sigma}

  • Using Z-Tables:

    • Constructed for the cumulative area to the left of value zz: P(Z≤z)P(Z \le z).

    • For z<−3.49z < -3.49, probability is taken as 00.

    • For z>3.49z > 3.49, probability is taken as 11.

Standard Normal Calculation Examples

  • Example 1: Probability Lookups:

    • (a) P(Z<1.35)=0.9115P(Z < 1.35) = 0.9115

    • (b) P(Z<−0.64)=0.2611P(Z < -0.64) = 0.2611

    • (c) P(Z>−0.47)=1−0.3192=0.6808P(Z > -0.47) = 1 - 0.3192 = 0.6808

    • (d) P(Z>0.76)=1−0.7764=0.2236P(Z > 0.76) = 1 - 0.7764 = 0.2236

    • (e) P(−0.47<Z<1.35)=0.9115−0.3192=0.5923P(-0.47 < Z < 1.35) = 0.9115 - 0.3192 = 0.5923

    • (f) P(0.95≤Z≤1.36)=0.9131−0.8289=0.0842P(0.95 \le Z \le 1.36) = 0.9131 - 0.8289 = 0.0842

    • (g) P(−1.96≤Z≤1.96)=0.9750−0.0250=0.95P(-1.96 \le Z \le 1.96) = 0.9750 - 0.0250 = 0.95

  • Example 2: Specific Parameters:

    • Find area between 1212 and 1515 for μ=10,σ=5\mu = 10, \sigma = 5.

    • P(12≤X≤15)=P(12−105≤Z≤15−105)=P(0.40≤Z≤1.00)P(12 \le X \le 15) = P(\frac{12-10}{5} \le Z \le \frac{15-10}{5}) = P(0.40 \le Z \le 1.00).

    • P(Z≤1.00)−P(Z≤0.40)=0.8413−0.6554=0.1859P(Z \le 1.00) - P(Z \le 0.40) = 0.8413 - 0.6554 = 0.1859.

  • Example 3: Street Light Lifetimes:

    • Mean μ=531\mu = 531 days, standard deviation σ=47\sigma = 47 days. Total lamps (NN) = 456.

    • Probability of lamps lasting between 414414 and 610610 days:

    • P(414≤X≤610)=P(414−53147≤Z≤610−53147)P(414 \le X \le 610) = P(\frac{414-531}{47} \le Z \le \frac{610-531}{47}).

    • P(−2.49≤Z≤1.68)=0.9536−0.0064=0.9472P(-2.49 \le Z \le 1.68) = 0.9536 - 0.0064 = 0.9472.

    • Number of lamps: 0.9472×456=431.92≈4320.9472 \times 456 = 431.92 \approx 432 lamps.