Quant 2020 Lecture 3 FT
Quant 2020 Lecture 3 FT
1. Random Variables
3. Correlation
4. Binomial Distribution
f
44 15% 30% Link to Random variables sheet
45 20% 50% ←
46 25% 75%
42×5%7
48×10%745-35
47 15% 90% . . .
t
48 10% 100%
Example #2 - projected aircraft orders for next year
Cumulative
Face of Die Probability Probability
1 16.7% 16.7%
2 16.7% 33.3%
3 16.7% 50.0%
4 16.7% 66.7%
5 16.7% 83.3%
6 16.7% 100.0%
1/6 = 16.7%
mean =3 5
Example #3 - Face of Die
.
Cumulative
Face of Die Probability Probability P(Die ≤ 3) = 50%
1 16.7% 16.7%
2 16.7% 33.3%
3 16.7% 50.0%
4 16.7% 66.7%
5 16.7% 83.3%
6 16.7% 100.0%
Example #4 - car battery lifespan
° P(battery = 4.5) = 0
s
[
Area = I
P(battery ≥ 4.5) = 1.5/2.0 = 3/4 or 75%
Continuous Discrete
Normal
Birth weight of
newborn babies
Summary of Random Variables (that we have seen)
Continuous Discrete
Normal Uniform
Continuous Discrete
Normal Uniform
SD[aX+b] = |a|SD[X]
Questions:
✓ b= LO
1. If everyone gets an extra 10
points on the final exam, how
mean
will it affect the mean &
- + 10
standard deviation?
SD
9--1-1,5=0 #
2. If everyone is given a 10%
bonus to their final exam score,
" x - how will it affect the mean &
standard deviation?
meant 10%
Sb 910%
Expectations (or Mean) add up linearly
Or in general
W := aX + bY (where a and b are any given numbers):
O
SD[W]2 =a2SD[X]2 + b2SD[Y]2 + 2abSD[X]SD[Y]CORR[X,Y]
Sum of Two Independent Dice E.S .
see
settles of
Catan game
!
Sum of Two Independent Dice
Sum of Y -
r
X t
, k
Two Dice Probability
2 2.8% Y := sum of two independent dice rolls
3 5.6% Mean E[Y] = 7-
4 8.3%
5 11.1%
Standard Deviation SD[Y] = 2 4 .
2 r 42 E 2 K C . 72
Sum of Two Independent Dice
Sum of
Two Dice Probability
2 2.8% Y := sum of two independent dice rolls
3 5.6% Mean E[Y] =
4 8.3%
5 11.1%
Standard Deviation SD[Y] =
6 13.9% Link to Random variables sheet
7 16.7%
8 13.9%
Y = X1 + X2 where X1, X2 are face value of die1
9 11.1% and die2, respectively.
10 8.3%
Verify that E[Y] = E[X1] + E[X2] and that
11 5.6%
SD[Y]2 = SD[X1]2 + SD[X2]2
12 2.8%
Correlation
Correlation is always between +1 and -1
Source: https://www.mathsisfun.com/data/correlation.html
Example of Negative Correlation
Source: https://www.mathsisfun.com/data/correlation.html
Menti Poll #1
● Negative
● Around Zero
● Positive
Correlation only detects linear relationships
x CORR(Sales,Temp) = 0.0!
Source: https://www.mathsisfun.com/data/correlation.html
Binomial Distributions
2020 US Elections - Biden vs Trump
Source: https://projects.fivethirtyeight.com/polls/president-general/national/
2020 US Elections - Biden vs Trump
● Less than 3
● 3
● 4
0
● 5
● More than 5
Define X := # Trump voters (in sample of 10 US voters)
"
P(X = 0) = ? P (BBB .
. .
B) = O - G = o .
6%
P(X = 1) = ? PCTB . . B )t .
. .
t PCB . . - BT ) = 10 x O - 4×0 .
69
…
=
4.0%
P(X = 9) = ?
"
P(X = 10) = ? PCT TT .
.
)
T = 0.4 =
O .
0%0
Link to Binomial distributions sheet
X := # Trump voters (in sample of 10 US voters)
# of Trump Cumulative
voters Probability Probability
0 0.6% 0.6%
1 4.0% 4.6%
2 12.1% 16.7%
3 21.5% 38.2%
o
4 25.1% 63.3%
5 20.1% 83.4%
6 11.1% 94.5%
7 4.2% 98.8%
8 1.1% 99.8%
9 0.2% 100.0%
10 0.0% 100.0%
X := # Trump voters (in sample of 10 US voters)
# of Trump Cumulative
voters Probability Probability
0 0.6% 0.6%
1 4.0% 4.6%
2 12.1% 16.7% P(X = 4)
3 21.5% 38.2% =BINOM.DIST(4,10,0.4,FALSE)
4 25.1% 63.3%
5 20.1% 83.4%
6 11.1% 94.5%
7 4.2% 98.8%
8 1.1% 99.8%
9 0.2% 100.0%
10 0.0% 100.0%
X := # Trump voters (in sample of 10 US voters)
# of Trump Cumulative
voters Probability Probability
0 0.6% 0.6%
1 4.0% 4.6%
2 12.1% 16.7% P(X = 4)
3 21.5% 38.2% =BINOM.DIST(4,10,0.4,FALSE)
4 25.1% 63.3% P(X ≤ 4)
5 20.1% 83.4% =BINOM.DIST(4,10,0.4,TRUE)
6 11.1% 94.5%
7 4.2% 98.8%
8 1.1% 99.8%
9 0.2% 100.0%
10 0.0% 100.0%
X := # Trump voters (in sample of 10 US voters)
P(X=4)
X := # Trump voters (in sample of 10 US voters)
P(X≤4)
X := # Trump voters (in sample of 10 US voters)
# of Trump
voters Probability
Cumulative
Probability
Mean E[X] = ? 4
0 0.6% 0.6%
Standard Deviation SD[X] = ? 1. 5
1 4.0% 4.6% Link to Binomial distribution sheet
2 12.1% 16.7%
3 21.5% 38.2%
4 25.1% 63.3% ←median
5 20.1% 83.4%
6 11.1% 94.5%
7 4.2% 98.8%
8 1.1% 99.8%
9 0.2% 100.0%
10 0.0% 100.0%
Mean & Standard Deviation of Binomial Distributions
sample probability
size of “success”
If X ~ BINOM(n,p) then:
E[X] = np = n .
Counter )
E
SD[X] = sqrt(np(1-p))
Jn
SDI
=
Ier )
-
9
pm
Central Limit Theorem
Binomial Distribution ≅ Normal Distribution (for large n)
Sample size, n = 15 Sample size, n = 50
Binomial Distribution ≅ Normal Distribution (for large n)
5)
0.4
p 15×0.4--6>5
-
n 15×0.6=97,5
Example of Normal approximation
μX = np = 6, σX = sqrt(6*0.4*0.6) = 1.9
Example of Normal approximation
O
P(X≤6) = BINOM.DIST(6,15,0.4,TRUE) = 61.0%
μX = np = 6, σX = sqrt(6*0.4*0.6) = 1.9
Hence, X ≅ Y ~ N(6,1.9)
μX = np = 6, σX = sqrt(6*0.4*0.6) = 1.9
Hence, X ≅ Y ~ N(6,1.9)
DO
P(X≤6) ≅ P(Y<6.5)
Example of Normal approximation (with continuity correction)
μX = np = 6, σX = sqrt(6*0.4*0.6) = 1.9
Hence, X ≅ Y ~ N(6,1.9)
μX = np = 6, σX = sqrt(6*0.4*0.6) = 1.9
Hence, X ≅ Y ~ N(6,1.9)
Source: https://www.statisticshowto.com/what-is-the-continuity-correction-factor/
Prelude to Sampling Statistics
Menti Poll #3
-
● About 1,000 or less
● About 10,000
● About 100,000
● About 1,000,000 or more
Can random sampling “inform” us of the election results?
Source: https://www.eld.gov.sg/mediarelease/SampleCount_Generic.pdf
Accuracy of 2020 Singapore GE sample counts
Sample counts
predicted winner
of all 31
constituencies
correctly!
Accuracy of 2020 Singapore GE sample counts
Sample counts
predicted winner
of all 31
constituencies
correctly!
Approx 100,000
sample counts
(0.4%) vs
2,500,000 total
votes cast
What we have learned so far
0 p 1
Actual
Population
Sample
0 Binomial distribution 1
≅ Normal distribution (for large n)
What we will learn in Lecture 5 (the following Tue 27th Oct)
What can we infer about actual
population given sample statistics?
0 1
Actual
Population
Sample
0 p 1
Next lecture this Thu 15th Oct will be fully online (Zoom)