STA 124 Introduction to Probability Distribution Study Notes
Introduction to Random Variables
Definition of Random Variables: Let S be a sample space associated with a random experiment E. A function that assigns a real number X(s) to each element s of the sample space S is called a random variable, denoted as X.
Functional Notation: The relationship is expressed as X:S→R, where R represents the set of real numbers.
Sample Space Examples:
* Single Coin Toss: The sample space is S={H,T}. A rule can be defined such that X(H)=1 and X(T)=0.
* Two Coin Tosses: The sample space is S={HH,HT,TH,TT}. If Y is the random variable representing the number of heads:
* Y(HH)=2
* Y(HT)=1
* Y(TH)=1
* Y(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}. For the two-coin toss, the range space is R={0,1,2}.
Discrete Random Variables and Probability Mass Functions
Discrete Random Variable: A random variable is discrete if its range space Rx contains a finite or countably infinite number of points.
Example 3: Electronic Component Testing: Testing three components where D is defective and N is non-defective.
* S={DDD,DDN,DND,NDD,DNN,NDN,NND,NNN}.
* If X is the number of defectives, the mappings are:
* X(DDD)=3
* X(DDN)=X(DND)=X(NDD)=2
* X(DNN)=X(NDN)=X(NND)=1
* X(NNN)=0
* Range Space R={0,1,2,3}.
Example 4: Tossing Two Dice: The sample space consists of 36 ordered pairs (i,j) where i,j∈{1,2,3,4,5,6}.
* If X(i,j)=i+j, the range space is R={2,3,4,…,11,12}.
* Specific assignments:
* X(1,1)=2
* X(1,2)=X(2,1)=3
* X(5,6)=X(6,5)=11
* X(6,6)=12
Probability Density (Mass) Function (pmf): For a discrete random variable X, the function f(x) or p(x) is defined as f(x)=Pr(X=x).
Conditions for a pmf:
1. f(x)≥0
2. ∑Rxf(x)=1
3. Pr(X=x)=f(x)
Mathematical Expectation and Variance for Discrete Variables
Mean (μ): The mathematical expectation or expected value of X is the weighted sum of its values:
* μ=E(X)=∑Rxxf(x)
Expectation of a Function: For any function h(x), E(h(X))=∑Rxh(x)f(x).
Variance (σx2): Measures the dispersion of the random variable.
* σx2=E((X−μ)2)=∑Rx(x−μ)2f(x)
* Alternative formula: σx2=E(X2)−(E(X))2
Properties of Expectation:
* If a is a constant, then E(a)=a.
* If a is a constant and h(x) is a function, then E[ah(X)]=aE[h(X)].
Example Problem: Finding Constant k: If f(x)=k(2x+1) for x=1,2,…,6:
* k∑x=16(2x+1)=k(3+5+7+9+11+13)=48k=1
* k=481
Continuous Random Variables and Probability Density Functions
Definition: A continuous random variable X 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).
Conditions for a pdf:
1. f(x)≥0 for all x
2. ∫−∞∞f(x)dx=1
3. Pr(a≤X≤b)=∫abf(x)dx
Note on Single Points: For continuous variables, the probability of a single exact value is zero: Pr(X=x)=0. Consequently:
* Pr(a<X<b)=Pr(a≤X≤b)=Pr(a<X≤b)=Pr(a≤X<b)
Bernoulli Trial: A random experiment with exactly two outcomes: "success" (1) and "failure" (0).
* Probability of success = p
* Probability of failure = 1−p=q
* Pmf: f(x)=px(1−p)1−x for x=0,1
* Mean: E(X)=p
* Variance: Var(X)=p(1−p)=pq
Binomial Distribution: Arises from performing n independent Bernoulli trials where the probability of success p remains constant.
* Assumptions:
1. Trials are independent.
2. Each trial has only two outcomes.
3. The probability of success p is constant.
* Pmf: f(x)=Pr(X=x)=(xn)px(1−p)n−x for x=0,1,…,n
* Number of Combinations: (xn)=x!(n−x)!n!
* Mean and Variance:
* E(X)=np
* Var(X)=np(1−p)=npq
Example: Insect Survival: If p=0.75 and n=5:
* Probability that 3 survive: Pr(X=3)=(35)(0.75)3(0.25)2=10×0.421875×0.0625=0.263671
* Probability all die: Pr(X=0)=(05)(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. p is constant.
Pmf: f(x)=qx−1p for x=1,2,3,…
Mean and Variance:
* E(X)=p1
* Var(X)=p21−p
Example: Marketing Rep: If p=0.20:
* Probability success on the 4th person: Pr(X=4)=0.20(0.80)4−1=0.20(0.512)=0.1024
* Mean: 0.201=5 people.
Negative Binomial Distribution
Definition: The number of trials X required to obtain exactly r successes in a series of Bernoulli trials.
Pmf: f(x)=Pr(X=x)=(r−1x−1)pr(1−p)x−r for x=r,r+1,r+2,…
Mean and Variance:
* μ=E(X)=pr
* σ2=Var(X)=p2r(1−p)
Example: Voter Poll: Probability p=0.20, looking for r=5 successes by trial x=15:
* Pr(X=15)=(414)(0.2)5(0.8)10=0.034
* Expected number of interviews: 0.25=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.
Pmf: f(x)=x!e−λλx for x=0,1,2,…
Mean and Variance: E(X)=λ and Var(X)=λ.
Example: Radioactive Particles: Mean λ=4 per millisecond.
* Exactly 6 particles: Pr(X=6)=6!e−446=7200.0183×4096=0.1041
* At least 7 particles: Pr(X≥7)=1−Pr(X≤6)=1−0.8886=0.1114
Uniform Distribution (Continuous)
Definition: A rectangular distribution where any value in the interval [α,β] is equally likely.
Pdf: f(x)=β−α1 for α≤x≤β
Mean and Variance:
* E(X)=2α+β
* Var(X)=12(β−α)2
Example: Database Entry: Uniform between 1.5 and 2.2 minutes.
* Mean = 21.5+2.2=1.85 min.
* Variance = 12(2.2−1.5)2=0.0408min2.
Normal Distribution
Definition: A continuous distribution characterized by its bell-shaped curve, defined by mean μ and variance σ2, denoted N(μ,σ2).
Standard Normal Random Variable (Z): A normal variable with μ=0 and σ=1.
* Conversion formula: Z=σX−μ
Cumulative Distribution Function (CDF): Φ(z)=Pr(Z≤z). Probabilities are typically found using standard normal tables.
Example: Household Recycling: μ=28, σ=2.
* Find probability between 27 and 31 pounds:
* Z1=227−28=−0.5
* Z2=231−28=1.5
* Pr(−0.5<Z<1.5)=Φ(1.5)−Φ(−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=+1.
* Perfect Negative: Points follow a straight line with downward slope; r=−1.
* High/Strong: Points cluster closely around a line.
* Weak/Low: Points are widely scattered.
* No Correlation: Points show no discernable pattern; r≈0.
Pearson Product Moment Correlation Coefficient (r): Measures the strength of the linear relationship between X and Y.
* Value ranges from −1 to +1.
* Formula components: n, ∑x, ∑y, ∑xy, ∑x2, ∑y2.
Simple Linear Regression
Definition: A method to estimate the relationship between a quantitative independent variable (x) and a quantitative dependent variable (y) by fitting a straight line.
Assumptions:
1. Homoscedasticity: Homogeneity of variance; prediction error remains constant across values of x.
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+ϵ
* β0: The intercept (value of y when x=0).
* β1: The regression coefficient (slope; change in y for a unit increase in x).
* ϵ: The error term representing variation in the data.