182 views

Uploaded by Dylan Erickson

- Fundamental Probability a Computational Approach
- Football Poisson Exponential
- Random Variables and Probability Distributions
- 2015A.probability.b
- Binomial Distribution Mean Proof
- jacobian_2
- ch7.2
- Lecture 4
- The Binomial Distribution
- MA202 Remaining Tuts
- Acceptance Sampling
- AM2
- Chapter1(2) Edit
- Binomial Distribution
- FRM
- Ch.8 Discrete Random Variables
- Problem Set 1
- CBSE Class 12th Mathematics 2018-2019 Unsolved Sample Paper - I
- Unit Chapter Achievement Test
- 8solution-Fall2015

You are on page 1of 7

Manuela Cattelan

POISSON DISTRIBUTION

Ex1 Suppose that in a city, the number of suicides can be approximated by a Poisson process with rate = .33 per month. 1) Find the probability of k suicides in a year for k = 0, 1, .... What is the most probable number of suicides? 2) What is the probability of two suicides in a week? 3) A suicide is reported in todays newspaper. What is the probability that the waiting time for the next suicide is greater than 1 month? 4 months? What is the median of the waiting time? (Rice, 2.32) 1. The number X of suicides in a year has a Poisson distribution, with parameter 12 = 3.96 and probability function P (X = k) = exp(3.96)3.96k /k!, k = 0, 1, ... We use R to derive the rst few values of the probability function. > tab <- data.frame(0:10, round(dpois(0:10, lambda = 12 * 0.33), + 3), round(ppois(0:10, lambda = 12 * 0.33), 3)) > names(tab) = c("Values", "Probs", "Cum. Probs") > tab 1 2 3 4 5 6 7

Values 0 1 2 3 4 5 6

Probs Cum. Probs 0.019 0.019 0.075 0.095 0.149 0.244 0.197 0.441 0.195 0.637 0.155 0.791 0.102 0.893

1 POISSON DISTRIBUTION

8 9 10 11

7 8 9 10

From the previous table, the mode is 3 (meaning that the most probable number of suicides in a year is 3) and the median is 4. 2. Note that the parameter is = .33/4 = 0.0825. exp(0.0825)0.08252 /2! a very low value. 3. The waiting time T (months) between two suicides has an exponential distribution with rate parameter = 0.33, meaning that the average time between two suicides is 1 3.030. We use R to answer the questions. > 1 - pexp(1, rate = 0.33) [1] 0.7189237 > 1 - pexp(4, rate = 0.33) [1] 0.2671353 > qexp(0.5, rate = 0.33) [1] 2.100446 Ex2 The 3% of the light bulbs produced by a factory are faulty. Find the probability that in a random sample of 100 light bulbs 2 are faulty. The number of faulty bulbs X Bin(100, 0.03), hence P (X = 2) = 100 0.032 0.9798 2 0.00313,

this probability can be computed in R through the command > dbinom(2, 100, 0.03) [1] 0.2251530 Note that the sample size is quite large and the probability of success is small, in this case the Poisson approximation can be used. X is approximately Poi(3), where the parameter of the distribution is = np = 100 0.03 = 3. The probability can be approximated as > dpois(2, 3)

[1] 0.2240418 Ex3 The probability that a person is allergic to a certain drug is 0.001. Find the probability that in 2000 people: 1) less than 2 are allergic; 2) more than 2 are allergic; 3) 3 people are allergic. 1. The number of people allergic to the drug follows a binomial distribution X Bin(2000, 0.001). The probability that less than two people are allergic is > pbinom(1, 2000, 0.001) [1] 0.4058704 which can also by approximated using a Poisson distribution with parameter 2000 0.001 = 2 > ppois(1, 2) [1] 0.4060058 2. The probability that more than two people are allergic is > 1 - pbinom(2, 2000, 0.001) [1] 0.3233236 or using a Poisson approximation > 1 - ppois(2, 2) [1] 0.3233236 3. Finally, the probability that exactly 3 people are allergic is > dbinom(3, 2000, 0.001) [1] 0.1805373 again, using the Poisson approximation the probability is > dpois(3, 2) [1] 0.1804470

Ex1 Consider the bivariate distribution of the random variables X and Y given by

X 10 1 1/12 2 2/12

Compute: 1) the marginal frequency function of X, 2) the marginal frequency function of Y , 3) the conditional frequency function of X given Y = 11. 1. The marginal frequency function of X is 1 2 x P (X = x) 1/3 2/3

MULTINOMIAL DISTRIBUTION

Ex1 Three players play 10 independent rounds of a game, and each player has probability 1/3 of winning each round. 1) Find the joint distribution of the numbers of games won by each of the three players. 2) What are the probabilities of the following events: X1 = X2 = 5, X1 = X2 = 3? (Rice, 3.3) Solution. 1. Denote with Xi , i = 1, 2, 3 the number of games won by the i-th player. The joint distribution of (X1 , X2 , X3 ) is multinomial with parameters n = 10 (number of independent trials) and success probabilities p1 = p2 = p3 = 1/3. The probability function is P (X1 = x1 , X2 = x2 , X3 = x3 ) = 10! (1/3)x1 (1/3)x2 (1/3)10x1 x2 , x1 !x2 !(10 x1 x2 )!

4 GENERAL BIVARIATE CONTINUOUS DISTRIBUTIONS 2. We use R to answer the questions. > dmultinom(x = c(5, 5, 0), size = 10, prob = rep(1/3, 3)) [1] 0.004267642 > dmultinom(x = c(3, 3, 4), size = 10, prob = rep(1/3, 3)) [1] 0.07112737

Ex2 Three cards are drawn at random and with replacement from the box containing 20 cards, each card with the name of a dierent italian region. Recall that there are 8 northern regions (N), 4 central regions (C) and 8 southern regions (S). Let (XN , XC , XS ) denote the joint distribution of the number of regions of the three areas. 1) What is the probability of no southern regions? one region from each area? 2) Describe the probability distribution XC |XN = 1. Solution. 1. P (XS = 0) = 0.63 = 0.216 and P (XN = XC = XS = 1) = 3! 0.4 0.2 0.4 = 0.192. 2. This is a Binomial distribution: XC |XN = 1 Bi(2, 1/3), whose determinations are 0, 1, 2 with probabilities 4/9, 4/9, 1/9.

4x(1 y), 0 x 1 0 y 1, 0, elsewhere.

1) What are the marginal distributions? Are they uniform? 2) Are X and Y stochastically independent? 3) Compute the joint cdf values at the points (2, 1/2), (1/2, 1/2), (1/2, 1/2). Solution. 1. Marginal densities are obtained by integrating out the other variable.

1 1

fX (x) =

0 1

0

1

fY (y) =

0

0

The marginal distributions are not uniform, because neither density is constant.

2. X and Y are stochastically independent because the joint density is identically equal to the product of the marginal densities: for all pairs of real numbers fX,Y (x, y) = fX (x)fY (y). 3. Note that stochastic independence implies FX,Y (x, y) = FX (x)FY (y), where FX and FY are the marginal cdfs. Therefore

1/2

0

(1 y)dy = 3/4,

1/2

0

xdx = 3/16.

1) Describe the contours of the bivariate density. 2) Derive the marginal distributions. Are X and Y stochastically independent? 3) Compute the joint cdf value at the point (1/2, 1/2). 4) Obtain the conditional densities of Y |X = x, X|Y = y. Solution. 1. Observe that the joint pdf varies between 0 (at the point 0, 0) and 2 (at the point 1, 1). The contours are the subsets of the unit square Q with a constant value 0 c 2 of the density, that is (x, y) Q : x + y = c. Therefore, the contours are parallel segments, more precisely, they are the intersections of the parallel lines x + y = c with Q. The gure below shows the plots of the contours and of the bivariate density. The corresponding R code is > > > > > + > + + f <- function(x, y) x + y x <- seq(0, 1, length = 50) y <- seq(0, 1, length = 50) z <- outer(x, y, f) contour(x, y, z, col = "black", lty = "solid", asp = 1, lwd = 2, xlab = "X", ylab = "Y", main = "Contours of f(x,y) = x+y") persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue", ltheta = 120, shade = 0.75, ticktype = "detailed", xlab = "X", ylab = "Y", zlab = "Density", main = "Plot of f(x,y) = x+y")

1.0

0.8

2.0

0.6

1.5

ity Dens

0.4

0.2

0.6 0.8

0.2

0.0

0.0

1 1

fX (x) =

0 1

0

1

fY (y) =

0

0

Here, independence test fails because clearly fX,Y (x, y) = x + y = (x + 1/2)(y + 1/2) = fX (x)fY (y). 3. The joint cdf is 0, x 0 ory 0, xy(x + y)/2, 0 x 1 0 y 1, x(x + 1)/2, 0 x 1 y 1, FX,Y (x, y) = y(y + 1)/2, 0 y 1 x 1, 1, x 1 y 1. Hence, FX,Y (1/2, 1/2) = 1/8. 4. We use the denition of conditional density. For any xed 0 x0 1, fY |X=x0 (y) = x0 + y fX,Y (x0 , y) = , 0 y 1 and 0 elsewhere. fX (x0 ) x0 + 1/2 fX,Y (x, y0 ) x + y0 = , 0 x 1 and 0 elsewhere. fY (y0 ) y0 + 1/2

- Fundamental Probability a Computational ApproachUploaded byxxx098
- Football Poisson ExponentialUploaded bySaurav Goyal
- Random Variables and Probability DistributionsUploaded bybiga
- 2015A.probability.bUploaded byJames Chang
- Binomial Distribution Mean ProofUploaded byfterasawmy
- jacobian_2Uploaded byJiah Mohd Daud
- ch7.2Uploaded byReem Al-nmlh
- Lecture 4Uploaded byAhmad Shdifat
- The Binomial DistributionUploaded bynicole1003
- MA202 Remaining TutsUploaded bygaurav94gupta
- Acceptance SamplingUploaded byManjunatha K. M. Gowda
- AM2Uploaded bymzai2003
- Chapter1(2) EditUploaded byJames Thee
- Binomial DistributionUploaded byMichaella Pacis
- FRMUploaded byVins Kukreja
- Ch.8 Discrete Random VariablesUploaded byAmber Michaels
- Problem Set 1Uploaded byFelipe Tomkowski
- CBSE Class 12th Mathematics 2018-2019 Unsolved Sample Paper - IUploaded bypv aatheesh
- Unit Chapter Achievement TestUploaded byAgui S. Augusthine
- 8solution-Fall2015Uploaded byBOB
- BernoulliLaplaceUploaded byPatrik Bratkovic
- IPPTCh005Uploaded byRene
- Computer Science & Engineering SyllabusUploaded byapi-26465547
- Module 4Uploaded byGaurav Narang
- Trinomial DistributionUploaded bynitin30
- Chap 8Uploaded byAbdoul Quang Cuong
- ECE6540Fall09Midterm1Uploaded byHira Masood
- Stat Course P.Uploaded byabebeMBA
- 10Uploaded byFauzan Hadisyahputra
- ntc 20500Uploaded byAndrés Mauricio Jácome Garcia

- 10 Seasonal ARIMAUploaded byjustinlondon
- 2_Object Oriented Analysis and Modelling Part 1.pptUploaded byahmed fadhl
- Introduction to BPMNUploaded byLuisa
- 03-er[1].pdfUploaded byMad Madhavi
- baduraUploaded byAdonis Saidler
- Petri NetsUploaded byVasile Galben
- UML DistilledUploaded byAlok Kumar
- datavisualization-140129144324-phpapp02Uploaded byjorgenorid
- EVIC'05 Slides - Forecasting with Neural Networks Tutorial SFCrone.pdfUploaded bysyzuhdi
- sdo main.docUploaded bymahesh
- 3D computer graphicsUploaded byunisys IT
- Rtimeseries HandoutUploaded byelz0rr0
- Library Management SystemUploaded byImran Khan
- SESIÒN-3_PRACTICA-COESCA.xlsxUploaded bySofía
- ch05ppks.pptUploaded by3rlang
- semUploaded byMaria Santos
- Latihan Soal Aoa - Aon (1)Uploaded byAnnisa Wulandari
- 108 Project 2Uploaded bymichelleyuu
- D-4500-10Uploaded byEnrique Mendoza Arellano
- mca4_2Uploaded bydilipomi
- UmlUploaded byNaveen Kumar Bharati
- Using Real Data For Decision AnalysisUploaded byphi slamma jamma
- 2010 SP1 - RMIT CPT230 - Assignment 2 - Technical Analysis & ModellingUploaded byillallangi
- Newspaper AgencyUploaded byAnshum_Tayal_2746
- ProbabilityTables (z t Chi F)Uploaded byQuang Đạo Cao
- ProjectReport2017 GuidelinesUploaded bykenechidukor
- Statistical Tables Table1n2n4Uploaded byYew Hau
- A Comparative Analysis of Business Process Modelling Techniques!Uploaded bybskandalis
- 11.1 Models for Randoms AeffectUploaded byryanroncales
- 14-ProbabilisticReasoning.pptUploaded bypaksmiler