Comprehensive Study Notes on Discrete and Continuous Random Variables
Discrete Random Variables
Probability Mass Distribution (PMD): The probability mass distribution of a discrete random variable is the tabulation of the values assumed by the variable together with their corresponding probabilities.
Probability Mass Function (PMF):
In addition to tabular presentation, probabilities can be represented using a probability mass function.
In a probability mass function, the probability of the random variable is defined as a piecewise function.
The function must allow determination of the probability of any real value. Consequently, it must explicitly state that the probability is for any value that the random variable cannot assume.
Fundamental Properties of Probability Mass Distributions and Functions:
For every possible value , the probability must satisfy:
The sum of all probabilities over the sample space must equal 1:
Cumulative Distribution Function (CDF):
The cumulative distribution function of a discrete random variable , denoted by , represents the probability that the value of is at most :
A CDF can be expressed in either tabular form or functional form.
In functional form, the cumulative distribution function:
Must allow the calculation of the cumulative probability for any value .
Starts at a cumulative probability of (for values below the minimum possible value) and ends at a cumulative probability of (for values at or above the maximum possible value).
Deriving Probability Mass Distribution from Cumulative Distribution Function:
Let be a discrete random variable assuming values in ascending order: .
The individual probability for a specific outcome is derived from the CDF as:
Expectation, Variance, and Standard Deviation of Discrete Random Variables
Expectation :
The expectation (or expected value) of a discrete random variable , denoted by or , represents the theoretical mean of :
The theoretical mean can be calculated directly using classical probability without running empirical experiments.
In an empirical context, as the number of experimental trials increases, the sample mean obtained approaches the theoretical expectation . Thus, expectation is defined as the long-run mean over a large number of trials.

For example, when rolling a fair six-sided die, the theoretical expectation of the score is:
As demonstrated in experimental trials, as the number of die rolls approaches , the average value converges toward
Worked Example: Biased Spinner:
Consider a biased spinner with discrete outcome scores and associated probability distribution:

-
-
-
- If the spinner is spun times, the expected frequency for each outcome is calculated as , recorded as:

- For :
- For :
- For :
- For : Derivation of the expected score for this spinner:
Continual spinning yields a sample mean score approaching
Variance and Standard Deviation :
Variance and standard deviation quantify the dispersion or spread of the values of a random variable around its mean.
Variance equation:
Standard deviation equation:

Calculation for the biased spinner example:
First, calculate :
Compute Variance:
Compute Standard Deviation:
Integration and Area Under Curves
Definition of Area Under a Curve:
The area under a curve refers to the bounded area between the curve and the x-axis from to .
The region can lie entirely above the x-axis, entirely below the x-axis, or extend both above and below.

Integration Definition for Bounded Area:
The net signed area is given by the definite integral:
Area regions above the x-axis evaluate to positive values, while regions below the x-axis evaluate to negative values.
Fundamental Integration Formulas:
Power Rule (for ):
Integration of constant 1:
Integration of arbitrary constant :
Properties of Definite Integrals:
Integral over a single point interval:
Constant factor rule:
Sum rule:
Difference rule:
Fundamental Theorem of Calculus (Definite evaluation): where is an antiderivative of .
Fundamentals of Continuous Random Variables and Histograms
Proportionality in Graphical Representations:
Frequency (or relative frequency) is directly proportional to the area of its corresponding bar in a histogram: where is a constant of proportionality measured in units per unit square.
Since the area of a rectangular bar with height and width (class width) is , we have:
If class width is constant across all intervals, setting results in bar height equaling frequency ().
Frequency Density vs. Probability Density Height Formulations:

Using Frequency Density as Bar Height:
Select .
Formula for height :
Area of a bar
Multiplying height by width yields the class frequency. Thus, is called frequency density.
Using Probability Density as Bar Height:
Select (where is total sample frequency).
Formula for height :
Area of a bar
Multiplying height by width yields the class probability. Thus, is called probability density.

Probability Density Functions (PDF)
Transition from Histogram to PDF:
When a histogram for a continuous random variable is constructed using probability density as the height of each bar, drawing a smooth continuous curve connecting the top midpoints of all bars defines the Probability Density Function, denoted as .

The area of an individual histogram bar represents the discrete class probability.
The area under the curve between two bounds approximates the sum of the bar areas within that range.
Total area of all bars equals total probability, which is :
For a function restricted to interval :
Generalized across the entire real number line :
Core Properties of Probability Density Functions:
Property 1 (Total Probability Rule):
Property 2 (Non-negativity): The function must lie on or above the x-axis everywhere because it represents density/height.
Property 3 (Interval Probability): The probability that lies between and is given by the integral:
Property 4 (Point Probability for Continuous Variables): The probability of a continuous random variable assuming any exact single value is strictly :
Property 5 (Invariance to Boundary Inclusion): Because individual point probabilities equal zero, the inclusion or exclusion of endpoints does not alter interval probabilities:
Validity Criterion: Any valid continuous probability density function must satisfy both Property 1 () and Property 2 ().
Continuous Cumulative Distribution Functions and Expectation
Continuous Cumulative Distribution Function (CDF):
Defined identically to the discrete case: is the cumulative probability that is at most :
Continuity across Piecewise Domains: The value of evaluated at boundary endpoints is identical whether calculated from the left or right piecewise sub-function, maintaining continuity across the domain boundary.
Finding Probabilities via CDF:
Expectation of a Continuous Random Variable:
The theoretical mean for a continuous random variable with density is computed as:
Variance and Standard Deviation of a Continuous Random Variable:
The variance is computed as:
The standard deviation is the principal square root of variance:
