0.Pre-requisite to Probability Distributions
0.Pre-requisite to Probability Distributions
Leguma Bakari
Email: [email protected]
Email: [email protected]
Phone:+255 762 760 095
October 22, 2024
Eastern Africa Statistical Training Center (EASTC)
1
Outline
2 Binomial Theorem
3 Differentiation
4 Integration
7 Introduction to R Programming
2
Geometric Progression Series
3
• Also the terms may be decreasing instead of increasing.
• The geometric sequence or series whose terms decrease have a
positive common ratio which is less than 1 for the progression
with positive terms
Decreasing GP Series Example
64, 32, 16, 8, 4, 2 ...
• r= 32
64
= 16
32
= 8
16
= 4
8
= 2
4
= 0 . 5.
• The common ration ratio in this case is r=0.5, which is less than
1.
• Generally if G1 , G2 , G3 , G4 , . . . Gn are n GP series, therefore
G2 G3 G4
• r= G1 = G2 = G3 = ··· = Gn
Gn − 1
4
The General Term of GP Series
• This means
• G2 = G1 r
• G3 = G2 r = (G1 r) r = G1 r2
• G4 = G3 r = (G1 r2 ) r = G1 r3
• By following this pattern you will find that,
• G5 = G1 r4 ,
• G6 = G1 r5 ,
• G7 = G1 r6 , hence
• Gn = G1 r n − 1 ,
• The term Gn = G1 rn−1 is refereed as general or nth term of GP
series.
5
Practical Example of GP series
6
Sum of a Geometric Progression
• rSn − Sn = G1 r n − G1
• ( r − 1) Sn = G1 ( r n − 1), therefore
n
• Sn = G1 (r r−1−1 ) ; suitable for |r|>1
• The Sn for |r|<1 subtract the second expression from the first
Sn = G1 + G1 r + G1 r 2 + G1 r 3 + · · · + G1 r n−2 + G1 r n−1
• −
rSn = G1 r + G1 r 2 + G1 r 3 + G1 r 4 + · · · + G1 r n−1 + G1 r n
• The result for the above computation is
• Sn − rSn = G1 − G1 r n
• ( 1 − r ) Sn = G1 ( 1 − r n ), therefore
n
• Sn = G1 (11−−r r ) ; suitable for |r|<1
8
• The Sn for r=1, recall
• Sn = G1 + G1 r + G1 r 2 + G1 r 3 + · · · + G1 r n−2 + G1 r n−1
• for r=1
• Sn = G1 + G1 ( 1) + G1 ( 1) 2 + G1 ( 1) 3 + · · · + G1 ( 1) n−2 + G1 ( 1) n−1
• Sn = G1 + G1 + G1 + G1 + G1 + · · · + G1 + G1 = nG1
• Sn = nG1 ; for r=1
9
Sum to Infinity for GP Series
11
Summary of Important GP Series Formula
12
Outline
2 Binomial Theorem
3 Differentiation
4 Integration
7 Introduction to R Programming
13
Binomial Theorem
• The first mention of the binomial theorem was in the 4th century
BC by a famous Greek mathematician by name of Euclids.
• The binomial theorem states:
• The principle for expanding the algebraic expression ( a + b) n and
expresses it as a sum of the terms involving individual exponents
of variables a and b.
• Each term in a binomial expansion is associated with a numeric
value which is called coefficient.
15
Binomial Expansion for Positive Integer n
16
Outline
2 Binomial Theorem
3 Differentiation
4 Integration
7 Introduction to R Programming
17
Differentiation
19
Differentiation of Exponential Functions
20
Differentiation by Power Rule
21
Differentiation by Product Rule
• Product Rule is the rule used to find the derivative of two or more
functions which are expressed in product form.
• Consider two functions u and v expressed in product as y=uv.
• Product rule is given by: d
dx
( uv ) = v du
dx
+ u dv
dx
• Example:Find the derivative of the following
• y = ( 2x + 1)( x 2 − 4)
• Let u = 2x + 1; then du
dx
= 2, and
• Let v = x 2 − 4; then dvdx
= 2x ,
• Therefore: dxd
( uv ) = v du
dx
+ u dv
dx
= 2(x 2 − 4) + 2x ( 2x + 1)
dy
• dx
= 2x 2 − 8 + 4x 2 + 2x = 6x 2 + 2x − 8
dy
• dx
= 6x 2 + 2x − 8
22
Differentiation by Quotient Rule
23
Differentiation by Chain Rule
25
• Example-1: Find the 3rd derivative of y = 3x 4 + x 2 − 6
dy
• The 1st derivative: dx
= 12x 3 + 2x ,
2
d dy
• The 2nd derivative: dx ( dx ) = ddxy2 = 36x 2 + 2, and
3
d dy
• The d
3rd derivative: dx ( dx ( dx )) = ddxy3 = 72x ,
3
• Example-2: Find the 2nd derivative of y = ex
3
• y ′ = 3x 2 ex
3 3 3 3 3
• y ′′ = 3x 2 ( 3x 2 ex ) + 6xex = 9x 4 ex + 6xex = ( 9x 4 + 6x ) ex
3
• y ′′ = ( 9x 4 + 6x ) ex
26
Partial Differentiation
27
Partial Derivatives Examples
• Example-1:
• Find the partial derivative of the function: z = 3x 2 + y 3
• Partial derivative with respect to x: 𝜕z
𝜕x = 6x
• Partial derivative with respect to y: 𝜕z
𝜕y = 3y 2
• Example-2:
• Find the partial derivative of the function: z = 3x 2 + y 3 + 4xy
• Partial derivative with respect to x: 𝜕z
𝜕x = 6x + 4y
• Partial derivative with respect to y: 𝜕z
𝜕y = 3y 2 + 4x
28
Outline
2 Binomial Theorem
3 Differentiation
4 Integration
7 Introduction to R Programming
29
Integration
30
Outline
2 Binomial Theorem
3 Differentiation
4 Integration
7 Introduction to R Programming
31
McLauren Expansion for ex
32
Outline
2 Binomial Theorem
3 Differentiation
4 Integration
7 Introduction to R Programming
33
Introduction to Probability Concepts
34
Outline
2 Binomial Theorem
3 Differentiation
4 Integration
7 Introduction to R Programming
35
Introduction to R Programming
36