Professional Documents
Culture Documents
DA Unit 2 Notes
DA Unit 2 Notes
Probability Probability
I Distributions Distributions
7 5 Eee
Binomial + Normal
j [| Hypergeometric Uniform
L Poisson Exponential S:
Random
Discrete
Random Variable
Continuous
Random Variable9s eypty
—eS
oe
ey
2.7.Probability Distribution Function
It defines probability of outcomes based
PDFS.
‘Types of Probability Distribution:
* Binomial Distribution
* Poisson Distribution
Continuous Uniform Distribution
Exponential Distribution
‘Normal Distribution
Chi-squared Distribution
‘Student t Distribution
F Distribution
(PDF),
;, there are majorly 5 types
OF certain conditions. B2sed on Conditions
Co
The binomial distribution is a discrete probabity distributon. It describes the outcome of 1 independent
trials in an experiment. Each tral is assumed to have only two outcomes, either success or failure. If the
probability of a successful trial isp, then the probability of having xsuccessful outcomes in an experiment ‘
of nindependent trials is as follows.
F(x)= (re, P= py Where x= 0, 1,2, .-+,0 *
Problem - fg
Ex: Find the probability of getting 3 doublets when a pair of fir die are thrown for 10 times.
Solution
n=no. oftrials=10,
p=probabilty of success ie., getting a doublet = 6/36=1/6
eprobabilty of falure=1-p=1-(1/6)=5/6
r=no, of successes expected=3
Poe3)= (ne, )P"= PY" = (ey) PD”
2 0c,) py”
yr
- w(@) (3) :
‘This can be computed in
Ras: <
Fae an EOD) CCA/E)AGA(S/EDAT). # 056 (20,3) 4 103
[a] 0.1550454
1550454
this binomial distribution can be found USIn9 the formula in R as
> dbinom(3,size=10,prob=(1/6)) 7
111 0.1504541
1
1
1
!
I
1
1
I
Ml
|
Summarizing Data & Probabitity
Problem:
Solution:
>choose(10,0)*C(1/6)40*(5/6)a19
choose (10,1) 30, i
V6) a1 # (5/649) 2*(5/6)A8) + «
Choad 012) oe 32a Jay a3 G76)47))
From the above problem fing the getting 3 or lesser doublets.
Probability of
[2] 0.9302722
This can be obtained using cumulative b ‘i
>pbinom(3, size= © prob= (1/6), 1oqtal distribution func
(2) 0.9302722 Pat)
jon as
: e ublets
spbinom(3, size=10, prob=(1/6) Loner F) wprovavirity of getting 4 or more double
=F) #probabi
[2] 0.06972784
Note:> 0.9302722+ 0.06972784 = 9
Problem2
ice ques ji stion has five possible
Suppose there are twelve multiple choice ques; jish dass quiz. Each quest
aye a Bes icy of having four or less correct answers if a
e prot
answers, and only one of them is correct, Fj
student attempts to answer every question at random.
ae 7 tion correctly by
Since only one out of five possible answers robability of answering a ques!
random is 1/5=0.2. We can find the poss Fig exactly 4 correct answers by random attempts as
follows.
dbinom(x,size, prob)
X: No. of successful outcomes (favourable)
size: n no.of independent trials
prob: probability of successful trial p
> dbinom(4, size=12, prob=0.2)
[1] 0.1329
To find the probability of having four or less correct answers by ‘random attempts, we apply the
function dbinom with x = 0,...,4.
> dbinom (0, size=12, prob=0,2) +
2, prob=0.2) +
dbinom(2, size=12, prob=0,2) +
dbinom(3, size=12, prob=0.2) +
3 dbinom(4, size=12, prob=0.2)
[1] 0.92744
Alternatively, we can use the cumulative probability function for binomial distribution Pbinom.
> pbinom (4, size=12, prob=0.2)
[1] 0.92744
'
Answer: §
The probability of four or less questions answered correctly by ‘endom in a twelve question multiple choice ee
quiz is 92.7%. ‘
facgen 12inom gives the density, pbinom gives the cumulative distri, ic Hon of
turction and rbinon generates random deve. ze anos st ‘toger nan isvekapag” 70> Me Hani
_—J g
15 tae Ee rere
wwe pour Pru te
dsiaem () Abbe, 5, pd
Pbmomcy Chron np) (ed |
value Um /
° Ss
vhinsmi) — Abinowm — pd J
Shérom() es LB a Vee
ae
Arinome) finctiou can ce
ed 16 tend UE fratenbelite
Gr 4: Vedas elem (hi)
atothom (K 50/P)
diem (3, Az 213) prob ='/)
Probability + dbtrom (x =€(0:10) ,'data-faov Cv, prota)
Pot (0110, prvbobillia ,type = 1") '
binamey Function ; 5 tad Cumuatire ens “yp ag |
P(xYou might also like