Random Variables and Distributions
The Concept of a Random Variable
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
Let be the sample space of a random experiment. If for every sample point in there is a real number corresponding to it, then is called a random variable, abbreviated as .
Classification of Random Variables
Classification:
- Discrete random variable: a random variable whose values are finitely many or countably infinitely many
- Continuous random variable: a random variable whose values are all real numbers on some interval
- Mixed random variable: a random variable that is neither discrete nor continuous
Examples of Random Variables
Example 1: rolling a die, with denoting the number that appears
- is a discrete random variable
- The possible values of are:
Example 2: measuring the length of an object, with denoting the measurement result
- is a continuous random variable
- The possible values of are:
Example 3: tossing a coin, with denoting the number of heads that appear
- is a discrete random variable
- The possible values of are:
Definition of the Distribution Law
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
Let be a discrete random variable whose possible values are . Then:
is called the distribution law or probability distribution of .
Properties of the Distribution Law
Property 1: ,
Property 2:
Ways of Representing the Distribution Law
Method 1: tabular form
Method 2: formula form
Examples of Distribution Laws
Example 4: rolling a fair die, with denoting the number that appears
- Distribution law: ,
Example 5: tossing a coin, with denoting the number of heads that appear
- Distribution law: ,
Definition of the Probability Density Function
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
Let be a continuous random variable. If there exists a non-negative function such that for any real numbers :
then is called the probability density function of , or simply the density function.
Properties of the Probability Density Function
Property 1: ,
Property 2:
Property 3:
Examples of Probability Density Functions
Example 6: a random variable uniformly distributed on the interval
- Density function:
Example 7: a random variable with the standard normal distribution
- Density function: ,
Definition of the Distribution Function
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
Let be a random variable. The function:
is called the distribution function of .
Properties of the Distribution Function
Property 1: ,
Property 2: is a non-decreasing function
Property 3: ,
Property 4: is a right-continuous function
Relation Between the Distribution Function and the Distribution Law
Discrete random variable:
Relation Between the Distribution Function and the Density Function
Continuous random variable:
Derivative relation:
Examples of Distribution Functions
Example 8: the distribution function of a die roll
Example 9: the distribution function of the uniform distribution
Two-Point Distribution (Bernoulli Distribution)
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
If the random variable takes only the two values and , with and , then is said to follow the two-point distribution with parameter , denoted by .
Distribution law:
Binomial Distribution
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
If the random variable denotes the number of occurrences of event in independent repeated trials, and in every trial, then is said to follow the binomial distribution with parameters , denoted by .
Distribution law:
Poisson Distribution
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
If the distribution law of the random variable is:
then is said to follow the Poisson distribution with parameter , denoted by .
Uniform Distribution
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
If the probability density function of the random variable is:
then is said to follow the uniform distribution on the interval , denoted by .
Exponential Distribution
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
If the probability density function of the random variable is:
then is said to follow the exponential distribution with parameter , denoted by .
Normal Distribution
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
If the probability density function of the random variable is:
then is said to follow the normal distribution with parameters , denoted by .
Exercise 1
Given the distribution law of the random variable , find the distribution function of .
Approach: Compute from the definition of the distribution function.
Steps:
- When ,
- When ,
- When ,
- When ,
Answer:
Exercise 2
Given that the distribution function of the random variable is , find the probability density function of .
Approach: Use the fact that the density function is the derivative of the distribution function.
Steps:
- When , , so
- When , , so
- When , , so
Answer:
Exercise 3
Roll two dice, with denoting the sum of the numbers on the two dice. Find the distribution law of .
Approach: List all possible outcomes and compute their probabilities.
Steps:
- The possible values of the sum of the two dice are:
- Compute the probability of each case:
- (only the case (1,1))
- (the cases (1,2), (2,1))
- (the cases (1,3), (2,2), (3,1))
- and so on…
Answer:
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | |
|---|---|---|---|---|---|---|---|---|---|---|---|
Exercise 4
Given that the random variable follows an exponential distribution with parameter , find the distribution function of .
Approach: Use the relation between the distribution function and the density function.
Steps:
- The density function of the exponential distribution:
- The distribution function:
- When ,
- When ,
Answer:
Exercise 5
Prove that for any random variable , its distribution function satisfies .
Approach: Use the definition of the distribution function and the properties of probability.
Steps:
- By the non-negativity of probability, , so
- By the normalization of probability, , so
- Therefore
Answer: the proof is complete
