Path: blob/master/notebook-for-reviewing/chapter_2_random_variables.ipynb
388 views
Kernel: Python 3
In [22]:
Chapter 2 Random Variables
2.0 Random Variables
Random variable , from sample spcae to real line (as the domian of probability function).
Probability functions , from real line to the value of probabiliy.
2.1 Discrete Variables
Discrete random variables
Probability Mass Function (p.m.f.)
Cumulative Distribution Function (c.d.f.)
Expectation
In [9]:
Out[9]:
Expectation: 3.0
2.2 Continuous Variables
Continous random variables
Probability Density Function (p.d.f.)
Cumulative Distribution Function (c.d.f.)
Expectation
In [11]:
Out[11]:
Cumulation from 49.5 to 50.5: 1.000000
In [14]:
Out[14]:
Expectation: 5.515152
2.3 Expectation and Variance
Variance of random variables
In [21]:
Out[21]:
Variance: 2.0000
Standard Variance: 1.4142
In [20]:
Out[20]:
Variance: 0.0831
Standard Variance: 0.2883
Quantiles of Random Variables
Upper quartile : c.d.f. = 0.75
Lower quartile : c.d.f. = 0.25
Interquartile range :
Chebyshev's Inequality
2.4 Jointly Distributed Random Variables
Discrete jointly distribution random variables
Continuous jointly distribution random variables
Cumulative Distribution Function: Discrete CDF Continuous CDF
2.5 Covarance and Covv
In [25]:
Out[25]:
EXP X 1.5000
EXP Y 1.5000
VAR X 0.7500
VAR Y 0.7500
COV 0.5000
CORR 0.6667
In [40]:
Out[40]:
EXP X 0.6667
EXP Y 1.3333
VAR X 0.0556
VAR Y 0.0556
COV 5.3333
CORR 96.0000