5.pptx
1. Introduction to random variables and probability distribution properties
This section establishes the foundational concepts of random variables, distinguishing between discrete and continuous types, and details the essential probability distributions and summary statistics, including expected value and variance, applicable to discrete random variables.
1.1 Random variables and types
A Random Variable represents a possible numerical outcome resulting from a random experiment.
- Discrete Random Variable: Takes on no more than a countable number of values.
- Examples include the number of times a specific face appears when rolling a die twice, or the number of heads in five coin tosses (values can only be integers within a range).
- Continuous Random Variable: Can take on any value within a specified interval, meaning its possible values are measured on a continuum.
- Examples include the weight of packages or the temperature of a solution.
1.2 Probability distributions for discrete random variables
The Probability Distribution Function (PDF), denoted P(X=x), is a representation of the probabilities for all possible outcomes of a discrete random variable X. This can be presented algebraically, graphically, or via a table.
For any possible value x:
- The individual probabilities must be non-negative: P(X=x)≥0.
- The sum of all individual probabilities must equal one: ∑all xP(X=x)=1.
The Cumulative Probability Function (CDF), denoted F(x), shows the probability that the random variable X takes a value less than or equal to a specific value x: F(x)=P(X≤x).
A key derived relationship exists between the PDF and the CDF: P(X=x)=F(x)−F(x−) where F(x−) is the cumulative probability evaluated at the largest possible value less than x.
Tip: The CDF is non-decreasing. For a discrete random variable, the CDF will appear as a step function, jumping only at the values where P(X=x)>0.
1.3 Properties of discrete random variables: Expected Value and Variance
The central tendency and dispersion of a discrete random variable are quantified using the expected value and variance.
Expected Value (Mean)
The Expected Value (or mean) of a discrete random variable X, denoted E(X) or μ, is calculated as: μ=E(X)=∑all xxP(X=x)
Variance and Standard Deviation
The Variance of a discrete random variable X, denoted Var(X) or σ2, measures the dispersion around the mean: σ2=Var(X)=E[(X−μ)2]=∑all x(x−μ)2P(X=x) An equivalent, often computationally simpler, form is: σ2=Var(X)=E(X2)−[E(X)]2 where E(X2)=∑all xx2P(X=x).
The Standard Deviation is the square root of the variance: σ=Var(X)
Functions of Random Variables
If g(X) is some function of a discrete random variable X, its expected value is: E[g(X)]=∑all xg(x)P(X=x)
For a Linear Function Y=aX+b, where a and b are constants:
- The mean of Y is: E(Y)=E(aX+b)=aE(X)+b
- The variance of Y is: Var(Y)=Var(aX+b)=a2Var(X)
- The standard deviation of Y is: SD(Y)=∣a∣Var(X)
Example: If a random variable X is constant, say X=c, then E(X)=c and Var(X)=0. If Y=5X−3, and E(X)=10 and Var(X)=4, then E(Y)=5(10)−3=47 and Var(Y)=52(4)=100.
1.4 Common Discrete Probability Distributions
Bernoulli Distribution
This is the simplest distribution, characterizing a single trial with exactly two outcomes: "success" (with probability P) or "failure" (with probability 1−P). The random variable X is defined as X=1 for success and X=0 for failure.
- Mean: E(X)=P
- Variance: Var(X)=P(1−P)
Binomial Distribution
The Binomial distribution describes the number of successes (x) in a fixed number (n) of independent Bernoulli trials, where the probability of success (P) is constant for each trial. Conditions for Application:
- A fixed number of observations, n.
- Two mutually exclusive and collectively exhaustive outcomes (success/failure).
- The probability of success, P, is constant for every observation.
- The observations are independent.
The probability mass function (PMF) for x successes in n trials is: P(X=x)=(xn)Px(1−P)n−x where (xn)=x!(n−x)!n! is the number of ways to choose x successes from n trials.
- Mean: E(X)=nP
- Variance: Var(X)=nP(1−P)
Poisson Distribution
The Poisson distribution models the probability of a specific number of events (x) occurring within a given interval of time or space, assuming events occur independently and at a constant average rate (λ). Assumptions:
- The probability of an occurrence in any subinterval is very small.
- The probability o