S3 - Dr Frost Maths

S3: Chapter 1 – Combining
Variables
Dr J Frost ([email protected])
www.drfrostmaths.com
Last modified: 30th August 2015
Starter
Let 𝑋 represent the throw of a fair 6-sided die.
Let π‘Œ represent the throw of another fair die.
𝑋 + π‘Œ represents a new variable where
the values of two dice have been added.
πŸ‘πŸ“
= 𝟐. πŸ—πŸπŸ”πŸ”
𝑬 𝑿 = πŸ‘.?πŸ“ 𝑽𝒂𝒓 𝑿 =
? …
𝟏𝟐
𝑋 βˆ’ π‘Œ represents a new variable where the
values of the dice have been subtracted.
+ 1
2
3
4
5
6
-
1
2
3
4
5
6
1
2
3
4
5
6
7
1
0
-1
-2
-3
-4
-5
2
3
4
5
6
7
8
2
1
0
-1
-2
-3
-4
3
4
5
6
7
8
9
3
2
1
0
-1
-2
-3
4
5
6
7
8
9
10
4
3
2
1
0
-1
-2
5
6
7
8
9
10
11
5
4
3
2
1
0
-1
6
7
8
9
10
11
12
6
5
4
3
2
1
0
𝑬 𝑿+𝒀 =πŸ•
?
πŸ•πŸŽ
𝑽𝒂𝒓 𝑿 + 𝒀 =
= πŸ“. πŸ–πŸ‘πŸ‘πŸ‘
? …
𝟏𝟐
(You’re welcome to use the
STATS mode on your calculator)
𝑬 𝑿+𝒀 =𝟎
?
πŸ•πŸŽ
𝑽𝒂𝒓 𝑿 + 𝒀 =
= πŸ“. πŸ–πŸ‘πŸ‘πŸ‘
? …
𝟏𝟐
Combining Variables
𝐸 𝑋±π‘Œ =𝐸 𝑋 ±πΈ π‘Œ
π‘‰π‘Žπ‘Ÿ 𝑋 ± π‘Œ = π‘‰π‘Žπ‘Ÿ 𝑋 + π‘‰π‘Žπ‘Ÿ(π‘Œ)
𝑋 and π‘Œ must be independent.
Quickfire Questions:
𝑋~𝑁 100,80
π‘Œ~𝑁 110,70
𝑬 𝑿 + 𝒀 = 𝟐𝟏𝟎
?
𝑽𝒂𝒓 𝑿 βˆ’ 𝒀 = πŸπŸ“πŸŽ
?
𝑬 𝑿 βˆ’ 𝒀 = βˆ’πŸπŸŽ?
𝑽𝒂𝒓 𝑿 + 𝒀 = πŸπŸ“πŸŽ
?
𝑋~𝑁 5,0.1
π‘Œ~𝑁 10,0.3
𝑽𝒂𝒓 𝑿 βˆ’ 𝒀 = 𝟎. πŸ’?
𝑬 𝑿 + 𝒀 = πŸπŸ“ ?
𝑽𝒂𝒓 𝑿 + 𝒀 = 𝟎. πŸ’?
More Generally:
𝐸 π‘Žπ‘‹ ± π‘π‘Œ = π‘ŽπΈ 𝑋 ±?𝑏𝐸 π‘Œ
π‘‰π‘Žπ‘Ÿ π‘Žπ‘‹ ± π‘π‘Œ = π‘Ž2 π‘‰π‘Žπ‘Ÿ 𝑋 +
? 𝑏2 π‘‰π‘Žπ‘Ÿ(π‘Œ)
>> Proof
Examples
𝑋1 , 𝑋2 , 𝑋3 are independent normal variables such that
𝑋1 ~𝑁 8,22 , 𝑋2 ~𝑁 13,22 , 𝑋3 ~𝑁 18,32 and π‘Œ = 3𝑋1 βˆ’ 𝑋2 + 𝑋3 , find the
distribution of π‘Œ
π‘Œ~𝑁 3 × 8 βˆ’ 13 + 18, 32 ?× 4 + 4 + 9
π‘Œ~𝑁(29,49)
Quickfire Questions:
𝑋1 ~𝑁 1,1
𝑋2 ~𝑁 1,1
π‘Œ = 𝑋1 + 2𝑋2
𝒀~𝑡?πŸ‘, πŸ“
𝑋1 ~𝑁 2,3
𝑋2 ~𝑁 4,5
π‘Œ = 2𝑋1 βˆ’ 𝑋2
𝒀~𝑡 ?𝟎, πŸπŸ•
𝑋1 ~𝑁 5,32
𝑋2 ~𝑁 6,22
π‘Œ = 2𝑋1 βˆ’ 3𝑋2
𝒀~𝑡 βˆ’πŸ–,
? πŸ•πŸ
4𝑋 vs 4 𝑋’s
Suppose 𝑿~𝑡(𝟏, 𝟎. 𝟏) represents
the thickness (in mm) of a randomly
chosen A4 piece of paper.
What does 4𝑋 represent?
What does 𝑋1 + 𝑋2 + 𝑋3 + 𝑋4 represent?
(where each 𝑋𝑖 has the same distribution as 𝑋)
Each piece of paper is folded twice so
that its thickness is 4 times as much.
The total thickness when 4 separate
pieces of paper are taken.
?
?
π‘‰π‘Žπ‘Ÿ 𝑋1 + β‹― + 𝑋4
= π‘‰π‘Žπ‘Ÿ 𝑋1 + β‹― + π‘‰π‘Žπ‘Ÿ 𝑋4
= 4π‘‰π‘Žπ‘Ÿ(𝑋)?
π‘‰π‘Žπ‘Ÿ 4𝑋 = 16π‘‰π‘Žπ‘Ÿ(𝑋)
?
So πŸ’π‘Ώ does not mean the same as π‘ΏπŸ + β‹― + π‘ΏπŸ’ . Why do you think the variance in the
first case is so much larger?
If a paper’s thickness is say above the mean, then multiplying the thickness by 4 also multiplies the difference from the
mean by 4, resulting in a much larger spread. However, in the second case, a thicker piece of paper is β€˜averaged out’ by
another potentially thinner piece of paper, so although the variance increases (as we have 4 sheets), the increase isn’t
quite as much.
?
Test Your Understanding
𝑋~𝑁 4,52 π‘Œ~𝑁 7,32
𝑍 = 3𝑋 βˆ’ π‘Œ
π‘‰π‘Žπ‘Ÿ
π‘‰π‘Žπ‘Ÿ
π‘‰π‘Žπ‘Ÿ
π‘‰π‘Žπ‘Ÿ
π‘‰π‘Žπ‘Ÿ
𝑋1 + 𝑋2 + 𝑋3
3𝑋
π‘Œ1 + β‹― + π‘Œπ‘›
π‘›π‘Œ
𝑍
π‘‰π‘Žπ‘Ÿ 𝑍1 + 𝑍2
π‘‰π‘Žπ‘Ÿ 2𝑍
= πŸ‘π‘½π’‚π’“ 𝑿 = πŸ•πŸ“ ?
= πŸ—π‘½π’‚π’“ 𝑿 = πŸπŸπŸ“ ?
= 𝒏𝑽𝒂𝒓 𝒀 = πŸ—π’ ?
= π’πŸ 𝑽𝒂𝒓 𝒀 = πŸ—π’πŸ ?
= 𝑽𝒂𝒓 πŸ‘π‘Ώ βˆ’ 𝒀 = πŸ—π‘½π’‚π’“ 𝑿 + 𝑽𝒂𝒓 𝒀
?
= πŸπŸπŸ“ + πŸ— = πŸπŸ‘πŸ’
= 𝑽𝒂𝒓 𝒁 + 𝑽𝒂𝒓 𝒁 ? = πŸ’πŸ”πŸ–
= πŸ’π‘½π’‚π’“ 𝒁 = πŸ—πŸ‘πŸ” ?
Beefier Example
Bottles of mineral water are delivered to shops in crates containing 12 bottles each.
The weights of bottles are normally distributed with mean weight 2kg and standard
deviation 0.05kg. The weights of empty crates are normally distributed with mean
2.5kg and standard deviation 0.3kg.
a) Assuming that all random variables are independent, find the probability that
the full crate will weigh between 26kg and 27kg.
b) Two bottles are selected at random from a crate. Find the probability that they
differ in weight by more than 0.1kg.
c) Find the maximum weight 𝑀, that a full crate could have on its label so that
there is only a 1% chance that it will weigh more than 𝑀.
Weight of full crate: π‘Š = 𝐡1 + β‹― + 𝐡12 + 𝐢
𝐡𝑖 ~𝑁 2,0.052 𝐢~𝑁 2.5, 0.32
𝐸 π‘Š = 12𝐸 𝐡 + 𝐸 𝐢 = 26.5
π‘‰π‘Žπ‘Ÿ π‘Š = 12π‘‰π‘Žπ‘Ÿ 𝐡 + π‘‰π‘Žπ‘Ÿ 𝐢 = 0.12
π‘Š~𝑁(26.5, 0.12)
? Find distribution for weight of full crate ?
?
a) 𝑃 26 < π‘Š < 27 = β‹― = 0.850 (using tables)
b) Find the distribution which represents the difference of the weights.
𝐸 𝑋1 βˆ’ 𝑋2 = 0 π‘‰π‘Žπ‘Ÿ 𝑋1 βˆ’ 𝑋2 = 0.005
𝑃 𝑋1 βˆ’ 𝑋2 > 0 = 2𝑃 𝑋1 βˆ’ 𝑋2 > 0.01
= 0.0159
c) 𝑃 π‘Š > 𝑀 = 0.01
β†’ 𝑀 = 27.3
?
?
Test Your Understanding
S3 Edexcel June 2009 Q8
?
?
?
Exercise 1A
Q1, 3, 5, 7-10
And also…
S3 June 2007 Q7
?
?
?
Proofey-Woofs
Not examined
<< Back
Prove that 𝐸 𝑋 + π‘Œ = 𝐸 𝑋 + 𝐸(π‘Œ)
𝐸 𝑋 + π‘Œ = 𝛴π‘₯ 𝛴𝑦 π‘₯ + 𝑦 𝑝 π‘₯ π‘Žπ‘›π‘‘ 𝑦
Note assumption of
= 𝛴π‘₯ 𝛴𝑦 π‘₯ + 𝑦 𝑝 π‘₯ 𝑝 𝑦
independence.
= 𝛴π‘₯ 𝛴𝑦 π‘₯ 𝑝 π‘₯ 𝑝 𝑦 + 𝑦 𝑝 π‘₯ 𝑝 𝑦
= 𝛴π‘₯ 𝛴𝑦 π‘₯ 𝑝 π‘₯ 𝑝 𝑦 + 𝛴π‘₯ 𝛴𝑦?𝑦 𝑝 π‘₯ 𝑝 𝑦
= 𝛴π‘₯ π‘₯ 𝑝 π‘₯ 𝛴𝑦 𝑝 𝑦 + 𝛴𝑦 𝑦 𝑝 𝑦 𝛴π‘₯ 𝑝 π‘₯
= 𝛴π‘₯ π‘₯ 𝑝 π‘₯ 1 + 𝛴𝑦 𝑦 𝑝 𝑦 1
=𝐸 𝑋 +𝐸 π‘Œ
Prove that π‘‰π‘Žπ‘Ÿ 𝑋 βˆ’ π‘Œ = π‘‰π‘Žπ‘Ÿ 𝑋 + π‘‰π‘Žπ‘Ÿ(π‘Œ)
π‘‰π‘Žπ‘Ÿ 𝑋 βˆ’ π‘Œ = 𝛴π‘₯ 𝛴𝑦 π‘₯ βˆ’ 𝑦
2
𝑝 π‘₯ 𝑝 𝑦 βˆ’ 𝐸 𝑋 βˆ’πΈ π‘Œ
2
2
= 𝛴π‘₯ 𝛴𝑦 π‘₯ 2 𝑝 π‘₯ 𝑝 𝑦 βˆ’ 𝛴π‘₯ 𝛴𝑦 2π‘₯𝑦 𝑝 π‘₯ 𝑝 𝑦 + 𝛴π‘₯ 𝛴𝑦 𝑦 2 𝑝 π‘₯ 𝑝 𝑦 βˆ’ 𝐸 𝑋 βˆ’ 𝐸 π‘Œ
= 𝛴π‘₯ π‘₯ 2 𝑝 π‘₯ 𝛴𝑦 𝑝 𝑦 βˆ’ 2𝛴π‘₯ π‘₯ 𝑝 π‘₯ 𝛴𝑦 𝑝 𝑦 + 𝛴𝑦 𝑦 2 𝑝 𝑦 𝛴π‘₯ 𝑝 π‘₯ βˆ’ 𝐸 𝑋 2 + 2𝐸 𝑋 𝐸 π‘Œ βˆ’ 𝐸 π‘Œ
= 𝐸 𝑋 2 βˆ’ 2𝐸 𝑋 𝐸 π‘Œ + 𝐸 π‘Œ 2 βˆ’ 𝐸 𝑋 2 + 2𝐸 𝑋 𝐸 π‘Œ βˆ’ 𝐸 π‘Œ 2
= 𝐸 𝑋 2 βˆ’ 𝐸 𝑋 2 + 𝐸 π‘Œ2 βˆ’ 𝐸 π‘Œ 2
= π‘‰π‘Žπ‘Ÿ 𝑋 + π‘‰π‘Žπ‘Ÿ π‘Œ
?
2