Path: blob/master/notebook-for-learning/Chapter-2-Random-Variables.ipynb
388 views
Chapter 2 - Random Variables
Discrete Random Variable
Definition of a Random Variable
Random variable : mapping from sample space to a real line
Numerical value mapped to each outcome of a particular experiment
Probability Mass Function
Probability Mass Function (p.m.f.): set of probability values assigned to each value taken by the discrete random variable
Probability:
Cumulative Distribution Function
Cumulative Distribution Function (CDF):
Continuous Random Variables
Probability Density Function
Probability Density Function (pdf):
Cumulative Distribution Function
Cumulative Distribution Function for continuous Random Variables:
Expectation of a Random Variable
Expectations of Discrete Random Variables
Expectation of a discrete random variable with p.m.f. :
Expectation of a Continuous Random Variable
Expectation of a continuous random variable with p.d.f.
Symmetric Random Variables
Symmetric Random Variables: if is symmetric around a point so that:
In this case, is the point of symmetry
Medians of Random Variables
Median: for a random variable its median is the value such that
Variance of a Random Variable
Definition and Interpretation of Variance
Variance ():
Positive quantity measuring the spread of the distribution about its mean value
Standard Deviation():
Chebyshev's Inequality
Chebyshev's Inequality: if is a random variable with mean and variance the following holds:
Quantiles of Random Variables
Quantiles of Random Variables: -th quantile of a random variable is
Upper quartile (): 75th percentile of the distribution
Lower quartile (): 25th percentile of the distribution
Interquantile range (IQR): distance between the two quartiles,
Jointly Distributed Random Variables
Joint Probability Distributions
Discrete:
Continuous:
Joint Cumulative Distribution Function:
Discrete:
Continuous:
Marginal Probability Distributions
Marginal probability distribution: obtained by summing or integrating the joint probability distribution over the values of the other random variable
Discrete:
Continuous:
Conditional Probability Distributions
Probability distribution describing the properties of a random variable given knowledge of
Discrete:
Continuous:
Computation of E(g(X,Y))
Given function of and , we have that:
Discrete:
Continuous:
Independence and Covariance
Independence: when two random variables and satisfy:
Covariance:
May take a positive or negative value
Independent random variables have a covariance of zero, but the contrary is not always true
Correlation ():
The correlation is invariant to linear transformations of and
Combinations and Functions of Random Variables
Linear Functions of Random Variables
Linear function of a random variable: given random variable and with then:
Standardization: if has expectation and variance then: has an expectation of zero and variance of one
Sums of Random variables: given two random variables and then and
If and are independent, then:
Linear Combinations of Random Variables
Linear combinations of random variables: if is a sequence of random variables and and are constants then:
If the random variables are independent:
Averaging independent random variables: sequence of random variables with expectation and variance we have: then
Nonlinear Functions of a Random Variable
Nonlinear function of a random variable : another random variable for some nonlinear function g