SlideShare a Scribd company logo
Stochastic Section # 1
Revision
Eslam Adel
Notes are inspired by sections made by TA Eng.Tamim Rushdi
March 8, 2018
1 Venn Diagram
P(A ∪ B) = P(A) + P(B) − P(A ∩ B) (1)
1.1 Problem 1
You are given P(A ∪ B) = 0.7 and P(A ∪ B ) = 0.9 where B is the complement of B.
Find P(A).
Solution
P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
0.7 = P(A) + P(B) − P(A ∩ B) (1)
0.9 = P(A) + P(B ) − P(A ∩ B ) (2)
And
P(B ) = 1 − P(B)
P(A ∩ B ) = P(A) − P(A ∩ B)
Substitution in (2)
0.9 = P(A) + 1 − P(B) − P(A) + P(A ∩ B) = 1 − P(B) + P(A ∩ B) (3)
Sum (1) + (3)
1.6 = P(A) + 1
So
P(A) = 0.6
1
2 Conditional Probability (Bayes’ Rule)
P(A|B) means Probability of event A given that another event B occurred.
P(A|B) =
P(A ∩ B)
P(B)
=
P(A, B)
P(B)
(2)
Product Rule :
P(A, B) = P(A|B)P(B) = P(B|A)P(A) (3)
Summation Rule:
P(A) =
∞
i=0
P(A, Bi) (4)
Note :
If A and B are independent so P(A, B) = P(A)P(B) and here the information given is useless as P(A|B) = P(A)
and P(B|A) = P(B)
2.1 Problem 2
Ten percent of an insurance companys policyholders are smokers. The rest are non smokers. For each non-
smoker, the probability of dying during the year is 0.01. For each smoker, the probability of dying during the
year is 0.05. Given that a policyholder has died, what is the probability that the policyholder was a smoker?
(hint: use Bayes’ rule)
Solution:
Let S denotes that person is smoker and D Denotes person is died.
Givens
P(S) = 0.1 and P(S ) = 0.9
P(D|S ) = 0.01 and P(D|S) = 0.05
Required : P(S|D)
P(S|D) = P (S,D)
P (D) = P (S,D)
P (D,S)+P (D,S )
P(S|D) = P (D|S)P (S)
P (D|S)P (S)+P (D|S )P (S ) = 0.05∗0.1
0.05∗0.1+0.01∗0.9 = 5
14
3 Random Variables
Random variable x is a variable represents the possible outcomes of stochastic or random process. Each random
variable has f(x) which is a probability density function PDF.
3.1 Probability density function PDF
It is defined as
f(x) = P(X = x) (5)
Properties
x
f(x)dx = 1 (6)
or for discrete random variables
x
f(x) = 1 (7)
3.2 Cumulative distribution function (CDF)
CDF is defined as
F(x) = P(X < x) (8)
Properties
(i) CDF is always continuous for discrete and continous RV.
2
(ii) CDF is increasing function
(iii) Maximum Value of CDF is 1
3.3 Problem 3
Suppose that X has a discrete distribution with the following PMF:
f(x) =
cx, for x = 1, 2, 3, 4, 5
0, otherwise
Determine the Value of the constant c
Solution:
x f(x) = 1
c + 2c + 3c + 4c + 5c = 1
c = 1
15
3.4 Problem 4
A Discrete random variable x has a probability distribution
f(x) =
c(8 − x), for x = 0, 1, 2, 3, 4, 5
0, otherwise
(i) Find constant c
(ii) Find the CDF F(X)
(iii) Find P(X > 2)
Solution:
(i) x f(x) = 1 → c = 1
33
(ii) PDF
x 0 1 2 3 4 5
f(x) 8
33
7
33
6
33
5
33
4
33
3
33
Figure 1: PDF of x
CDF
3
Figure 2: CDF of x
x x < 0 0 ≤ x < 1 1 ≤ x < 2 2 ≤ x < 3 3 ≤ x < 4 4 ≤ x < 5 x ≥ 5
F(x) 0 8
33
15
33
21
33
26
33
30
33 1
(iii) P(X > 2)
P(X > 2) = 1 − P(X ≤ 2) = 1 − F(2) = 1 − 21
33 = 12
33
3.5 Problem 5
Suppose cumulative distribution function (CDF) F(X)of random variable X is defined by
F(X) =



0, x < 0
x4
, 0 ≤ x < 1
1, x ≥ 1
Find probability density function of X.
Solution :
f(x) = dF (x)
dx
f(x) =



0, x < 0
4x3
, 0 ≤ x < 1
0, x ≥ 1
4 Normal Distribution
Normal distribution or Gaussian distribution is a continuous probability distribution of a random variable.
Central limit theory stated that summation of many random variables always tends to normal distribution even
original variables are not normally distributed. It has the form
f(x) =
1
√
2πσ2
e
−(x−µ)2
2σ2
=
1
√
2πσ
e
−(x−µ)2
2σ2
(9)
4
where µ is the mean and σ2
is the variance. So it is described as N(µ, σ2
)
4.1 Standard Normal Distribution (SND)
(i) It is a normal distribution N(0, 1)
(ii) Symmetric around zero
(iii) Area under the curve = 1
(iv) each have has area 0.5
(v) All normal distribution can be transformed to SND using this transformation
Z =
X − µ
σ
(10)
where µ is the mean for X and σ is the standard deviation of X
4.2 Problem 6
Let Z N(0, 1) (i.e. Z is a standard normal random variable). Find following probabilities using table:
(i) P(Z = 1)
(ii) P(Z < 0.8)
(iii) P(Z ≥ −1.43)
(iv) P(−0.09 ≤ Z ≤ 1.91)
(v) P(−2.2 ≤ Z ≤ −1.4)
Solution :
(i) P(Z = 1) = 0
(ii) P(Z < 0.8) = 0.7881
(iii) P(Z ≥ −1.43) = P(Z ≤ 1.43) = 0.9236
(iv) P(−0.09 ≤ Z ≤ 1.91) = (P(Z ≤ 0.09) − 0.5) + (P(Z ≤ 1.91) − 0.5)
0.5358 − 0.5 + 0.97193 − 0.5 = 0.50773
(v) P(−2.2 ≤ Z ≤ −1.4) = P(Z ≤ 2.2) − P(Z ≤ 1.4) = 0.9873 − 0.9192 = 0.0681
4.3 Problem 7
The reaction time of a driver to visual stimulus is normally distributed with a mean of 0.4 seconds and a
standard deviation of 0.05 seconds
(i) What is the probability that a reaction requires more than 0.5 seconds
(ii) What is the probability that a reaction requires between 0.4 and 0.5 seconds?
Solution :
(i) P(X > 0.5) = P(X−µ
σ > 0.5−0.4
0.05 ) P(Z > 2) = 1 − P(Z < 2) = 1 − 0.977 = 0.023
(ii) P(0.4 < X < 0.5) = P(0 < X−µ
σ < 2) = P(Z ≤ 2) − 0.5 = 0.477
5
5 Appendix A
SND Table
6

More Related Content

PDF
Ece3075 a 8
PDF
PDF
Lesson 25: Evaluating Definite Integrals (slides)
PDF
Gabarito completo anton_calculo_8ed_caps_01_08
PPT
Interpolation functions
PDF
Metrix[1]
PDF
Elementary Linear Algebra 5th Edition Larson Solutions Manual
PPT
26 triple integrals
Ece3075 a 8
Lesson 25: Evaluating Definite Integrals (slides)
Gabarito completo anton_calculo_8ed_caps_01_08
Interpolation functions
Metrix[1]
Elementary Linear Algebra 5th Edition Larson Solutions Manual
26 triple integrals

What's hot (16)

PDF
Research Inventy : International Journal of Engineering and Science
PPT
6.2 the indefinite integral
PPT
optimal graph realization
PDF
Mac331 complex analysis_mfa_week6_16-10-20 (1)
PDF
Appendex
PDF
DOC
Gamma beta functions-1
PDF
Rosser's theorem
PDF
Form 5 Additional Maths Note
PDF
Lesson 21: Antiderivatives (slides)
DOC
Consolidated.m2-satyabama university
PDF
Lectures4 8
PDF
Maths04
PDF
Legendre Function
PDF
Nota math-spm
Research Inventy : International Journal of Engineering and Science
6.2 the indefinite integral
optimal graph realization
Mac331 complex analysis_mfa_week6_16-10-20 (1)
Appendex
Gamma beta functions-1
Rosser's theorem
Form 5 Additional Maths Note
Lesson 21: Antiderivatives (slides)
Consolidated.m2-satyabama university
Lectures4 8
Maths04
Legendre Function
Nota math-spm
Ad

Similar to Section1 stochastic (20)

PDF
Statistical Hydrology for Engineering.pdf
PDF
Automatic Bayesian method for Numerical Integration
PPT
maths
DOCX
PDF
Number theory lecture (part 2)
PPT
Linear differential equation with constant coefficient
PDF
Equivariance
PPTX
Week-7-Division-of-Polynomials AND FACTOR THEOREM.pptx
PDF
Murphy: Machine learning A probabilistic perspective: Ch.9
PDF
23NCBSE09MAT02TP103V01L1_Polynomials_Factorisation_of_Polynomials.pdf
PPT
cps170_bayes_nets.ppt
PDF
Elliptic Curves
DOCX
PDF
Exam1 101
PDF
Admissions in India 2015
PDF
Madrid easy
PDF
lec2_CS540_handouts.pdf
PDF
Estimation rs
PDF
Steven Duplij, "Polyadic rings of p-adic integers"
Statistical Hydrology for Engineering.pdf
Automatic Bayesian method for Numerical Integration
maths
Number theory lecture (part 2)
Linear differential equation with constant coefficient
Equivariance
Week-7-Division-of-Polynomials AND FACTOR THEOREM.pptx
Murphy: Machine learning A probabilistic perspective: Ch.9
23NCBSE09MAT02TP103V01L1_Polynomials_Factorisation_of_Polynomials.pdf
cps170_bayes_nets.ppt
Elliptic Curves
Exam1 101
Admissions in India 2015
Madrid easy
lec2_CS540_handouts.pdf
Estimation rs
Steven Duplij, "Polyadic rings of p-adic integers"
Ad

More from cairo university (20)

PPSX
Tocci chapter 13 applications of programmable logic devices extended
PPSX
Tocci chapter 12 memory devices
PPSX
Tocci ch 9 msi logic circuits
PPSX
Tocci ch 7 counters and registers modified x
PPSX
Tocci ch 6 digital arithmetic operations and circuits
PPSX
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
PPSX
A15 sedra ch 15 memory circuits
PPSX
A14 sedra ch 14 advanced mos and bipolar logic circuits
PPSX
A13 sedra ch 13 cmos digital logic circuits
PPSX
A09 sedra ch 9 frequency response
PPTX
5 sedra ch 05 mosfet.ppsx
PPSX
5 sedra ch 05 mosfet
PPSX
5 sedra ch 05 mosfet revision
PDF
Fields Lec 2
PDF
Fields Lec 1
PDF
Fields Lec 5&amp;6
PDF
Fields Lec 4
PDF
Fields Lec 3
PPT
Lecture 2 (system overview of c8051 f020) rv01
PPT
Lecture 1 (course overview and 8051 architecture) rv01
Tocci chapter 13 applications of programmable logic devices extended
Tocci chapter 12 memory devices
Tocci ch 9 msi logic circuits
Tocci ch 7 counters and registers modified x
Tocci ch 6 digital arithmetic operations and circuits
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
A15 sedra ch 15 memory circuits
A14 sedra ch 14 advanced mos and bipolar logic circuits
A13 sedra ch 13 cmos digital logic circuits
A09 sedra ch 9 frequency response
5 sedra ch 05 mosfet.ppsx
5 sedra ch 05 mosfet
5 sedra ch 05 mosfet revision
Fields Lec 2
Fields Lec 1
Fields Lec 5&amp;6
Fields Lec 4
Fields Lec 3
Lecture 2 (system overview of c8051 f020) rv01
Lecture 1 (course overview and 8051 architecture) rv01

Recently uploaded (20)

PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PDF
737-MAX_SRG.pdf student reference guides
PPTX
Information Storage and Retrieval Techniques Unit III
PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PPTX
Nature of X-rays, X- Ray Equipment, Fluoroscopy
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PPTX
Management Information system : MIS-e-Business Systems.pptx
PDF
Design Guidelines and solutions for Plastics parts
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
Software Engineering and software moduleing
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PPTX
Current and future trends in Computer Vision.pptx
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PDF
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
737-MAX_SRG.pdf student reference guides
Information Storage and Retrieval Techniques Unit III
August 2025 - Top 10 Read Articles in Network Security & Its Applications
Nature of X-rays, X- Ray Equipment, Fluoroscopy
Automation-in-Manufacturing-Chapter-Introduction.pdf
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Management Information system : MIS-e-Business Systems.pptx
Design Guidelines and solutions for Plastics parts
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Fundamentals of safety and accident prevention -final (1).pptx
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Software Engineering and software moduleing
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Current and future trends in Computer Vision.pptx
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf

Section1 stochastic

  • 1. Stochastic Section # 1 Revision Eslam Adel Notes are inspired by sections made by TA Eng.Tamim Rushdi March 8, 2018 1 Venn Diagram P(A ∪ B) = P(A) + P(B) − P(A ∩ B) (1) 1.1 Problem 1 You are given P(A ∪ B) = 0.7 and P(A ∪ B ) = 0.9 where B is the complement of B. Find P(A). Solution P(A ∪ B) = P(A) + P(B) − P(A ∩ B) 0.7 = P(A) + P(B) − P(A ∩ B) (1) 0.9 = P(A) + P(B ) − P(A ∩ B ) (2) And P(B ) = 1 − P(B) P(A ∩ B ) = P(A) − P(A ∩ B) Substitution in (2) 0.9 = P(A) + 1 − P(B) − P(A) + P(A ∩ B) = 1 − P(B) + P(A ∩ B) (3) Sum (1) + (3) 1.6 = P(A) + 1 So P(A) = 0.6 1
  • 2. 2 Conditional Probability (Bayes’ Rule) P(A|B) means Probability of event A given that another event B occurred. P(A|B) = P(A ∩ B) P(B) = P(A, B) P(B) (2) Product Rule : P(A, B) = P(A|B)P(B) = P(B|A)P(A) (3) Summation Rule: P(A) = ∞ i=0 P(A, Bi) (4) Note : If A and B are independent so P(A, B) = P(A)P(B) and here the information given is useless as P(A|B) = P(A) and P(B|A) = P(B) 2.1 Problem 2 Ten percent of an insurance companys policyholders are smokers. The rest are non smokers. For each non- smoker, the probability of dying during the year is 0.01. For each smoker, the probability of dying during the year is 0.05. Given that a policyholder has died, what is the probability that the policyholder was a smoker? (hint: use Bayes’ rule) Solution: Let S denotes that person is smoker and D Denotes person is died. Givens P(S) = 0.1 and P(S ) = 0.9 P(D|S ) = 0.01 and P(D|S) = 0.05 Required : P(S|D) P(S|D) = P (S,D) P (D) = P (S,D) P (D,S)+P (D,S ) P(S|D) = P (D|S)P (S) P (D|S)P (S)+P (D|S )P (S ) = 0.05∗0.1 0.05∗0.1+0.01∗0.9 = 5 14 3 Random Variables Random variable x is a variable represents the possible outcomes of stochastic or random process. Each random variable has f(x) which is a probability density function PDF. 3.1 Probability density function PDF It is defined as f(x) = P(X = x) (5) Properties x f(x)dx = 1 (6) or for discrete random variables x f(x) = 1 (7) 3.2 Cumulative distribution function (CDF) CDF is defined as F(x) = P(X < x) (8) Properties (i) CDF is always continuous for discrete and continous RV. 2
  • 3. (ii) CDF is increasing function (iii) Maximum Value of CDF is 1 3.3 Problem 3 Suppose that X has a discrete distribution with the following PMF: f(x) = cx, for x = 1, 2, 3, 4, 5 0, otherwise Determine the Value of the constant c Solution: x f(x) = 1 c + 2c + 3c + 4c + 5c = 1 c = 1 15 3.4 Problem 4 A Discrete random variable x has a probability distribution f(x) = c(8 − x), for x = 0, 1, 2, 3, 4, 5 0, otherwise (i) Find constant c (ii) Find the CDF F(X) (iii) Find P(X > 2) Solution: (i) x f(x) = 1 → c = 1 33 (ii) PDF x 0 1 2 3 4 5 f(x) 8 33 7 33 6 33 5 33 4 33 3 33 Figure 1: PDF of x CDF 3
  • 4. Figure 2: CDF of x x x < 0 0 ≤ x < 1 1 ≤ x < 2 2 ≤ x < 3 3 ≤ x < 4 4 ≤ x < 5 x ≥ 5 F(x) 0 8 33 15 33 21 33 26 33 30 33 1 (iii) P(X > 2) P(X > 2) = 1 − P(X ≤ 2) = 1 − F(2) = 1 − 21 33 = 12 33 3.5 Problem 5 Suppose cumulative distribution function (CDF) F(X)of random variable X is defined by F(X) =    0, x < 0 x4 , 0 ≤ x < 1 1, x ≥ 1 Find probability density function of X. Solution : f(x) = dF (x) dx f(x) =    0, x < 0 4x3 , 0 ≤ x < 1 0, x ≥ 1 4 Normal Distribution Normal distribution or Gaussian distribution is a continuous probability distribution of a random variable. Central limit theory stated that summation of many random variables always tends to normal distribution even original variables are not normally distributed. It has the form f(x) = 1 √ 2πσ2 e −(x−µ)2 2σ2 = 1 √ 2πσ e −(x−µ)2 2σ2 (9) 4
  • 5. where µ is the mean and σ2 is the variance. So it is described as N(µ, σ2 ) 4.1 Standard Normal Distribution (SND) (i) It is a normal distribution N(0, 1) (ii) Symmetric around zero (iii) Area under the curve = 1 (iv) each have has area 0.5 (v) All normal distribution can be transformed to SND using this transformation Z = X − µ σ (10) where µ is the mean for X and σ is the standard deviation of X 4.2 Problem 6 Let Z N(0, 1) (i.e. Z is a standard normal random variable). Find following probabilities using table: (i) P(Z = 1) (ii) P(Z < 0.8) (iii) P(Z ≥ −1.43) (iv) P(−0.09 ≤ Z ≤ 1.91) (v) P(−2.2 ≤ Z ≤ −1.4) Solution : (i) P(Z = 1) = 0 (ii) P(Z < 0.8) = 0.7881 (iii) P(Z ≥ −1.43) = P(Z ≤ 1.43) = 0.9236 (iv) P(−0.09 ≤ Z ≤ 1.91) = (P(Z ≤ 0.09) − 0.5) + (P(Z ≤ 1.91) − 0.5) 0.5358 − 0.5 + 0.97193 − 0.5 = 0.50773 (v) P(−2.2 ≤ Z ≤ −1.4) = P(Z ≤ 2.2) − P(Z ≤ 1.4) = 0.9873 − 0.9192 = 0.0681 4.3 Problem 7 The reaction time of a driver to visual stimulus is normally distributed with a mean of 0.4 seconds and a standard deviation of 0.05 seconds (i) What is the probability that a reaction requires more than 0.5 seconds (ii) What is the probability that a reaction requires between 0.4 and 0.5 seconds? Solution : (i) P(X > 0.5) = P(X−µ σ > 0.5−0.4 0.05 ) P(Z > 2) = 1 − P(Z < 2) = 1 − 0.977 = 0.023 (ii) P(0.4 < X < 0.5) = P(0 < X−µ σ < 2) = P(Z ≤ 2) − 0.5 = 0.477 5