0% found this document useful (0 votes)
4 views

Practical-2 Sem 2

The document outlines methods for fitting a Poisson distribution to given data using both Excel and R programming, detailing the steps for calculating expected frequencies. It includes specific problems with data sets and the application of the Poisson probability mass function. Additionally, it describes a recurrence relation method for fitting the distribution and provides expected frequencies for the data sets analyzed.

Uploaded by

Nandha Kishore
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Practical-2 Sem 2

The document outlines methods for fitting a Poisson distribution to given data using both Excel and R programming, detailing the steps for calculating expected frequencies. It includes specific problems with data sets and the application of the Poisson probability mass function. Additionally, it describes a recurrence relation method for fitting the distribution and provides expected frequencies for the data sets analyzed.

Uploaded by

Nandha Kishore
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Practical -2

2.FITTING OF POISSON DISTRIBUTION (DIRECT METHOD USING EXCEL)

PROBLEM 2.1: Fit a Poisson distribution to the following data and also calculate expected
frequencies.

x 0 1 2 3 4
f 109 65 22 3 1

AIM: To fit a Poisson distribution to the given data and also calculate expected frequencies
using Excel.

FORMULA AND PROCEDURE:

The probability mass function (p.m.f) of Poisson distribution is

P(X=x) = e-λλx/x! x = 0,1,2,3,….,∞; λ > 0

P(X=x) = 0 ; otherwise

STEP 1 : Calculate mean for estimating parameter (λ) if parameter is not specified in the
problem.

STEP 2: Format for calculating probability by Poisson function is :

P(X= x) = POISSON.DIST(x,Mean ,Cumulative)

X = The number of successes,


λ =The expected or average number of successes

Cumulative = False if you wish to compute the probability of exactly x


successes.
= True if you wish to compute the probability of x or fewer
successes.
STEP 3: Expected Frequency (E.F) = N * P(X= x),
Where N = Total frequency

CALCULATION:

Where N = Ʃfi = 200

Mean = Ʃfixi / Ʃ fi = 0.61

λ = 0.61
CONCLUSION:

To fit a poisson distribution to the given data in Excel,

P(X=x) = e-λλx/x! x = 0,1,2,3,….,∞; 0.61> 0

P(X=x) = 0 ; otherwise

The expected frequencies are 109,66,20,4,1.

2.2.FITTING OF POISSON DISTRIBUTION (DIRECT METHOD USING R


PROGRAMMING)

AIM : To fit a Poisson distribution to the given data and also calculate expected frequencies
using R programming.

FORMULA AND PROCEDURE:

Step-1: Enter the Data in R


Step 2: Compute the probability mass function for Poisson distribution.

Syntax : dpois( x , λ)

Step – 3: Compute Expected Frequencies for Binomial Distribution

CALCULATION:
CODE:
CONCLUSION :

To fit a poisson distribution to the given data in R,

P(X=x) = e-λλx/x! x = 0,1,2,3,….,∞; 0.61> 0

P(X=x) = 0 ; otherwise

The expected frequencies are 109,66,20,4,1.

2.3 . Fit a Poisson distribution using recurrence relation the following data

x 0 1 2 3 4 5 6 7
f 305 365 210 80 28 9 2 1

Solution:

AIM: To fit a Poisson distribution to the given data by recurrence relation method.

FORMULA AND PROCEDURE:


The recurrence relation for the calculation of probabilities is

P(X= x+1) = (λ / x+1) P(X=x); for x = 0,1,2,….

Where λ > 0 is the known as the parameter of the Poisson distribution

STEP 1 : Enter the given data in Excel.


STEP 2 : Calculate mean for estimating parameter (λ) if parameter is not specified in
the problem.

STEP 3:Format for calculating probability by Poisson function is :

P(X =x) = POISSON.DIST (x,Mean ,Cumulative)

X = The number of successes,

λ =The expected or average number of successes

Cumulative = False if you wish to compute the probability of exactly x


successes.
= True if you wish to compute the probability of x or fewer
successes.
• For P(x = 0 ) = POISSON.DIST(0, λ , FALSE)
• Drag the formula down for the values of P(x)
STEP 4 : Compute probabilities using Recurrance Relation
P(X = x + 1) = (λ / x+1) P(X=x); for x = 0,1,2,….

STEP 5: Expected Frequency (E.F) = N * P(X= x),


Where N = Total frequency

CALCULATION:

CONCLUSION:

To fit a poisson distribution to the given data,

P(X=x) = e-λλx/x! x = 0,1,2,3,….,∞; 0.61> 0

P(X=x) = 0 ; otherwise

The expected frequencies are 301,361,217,87,26,6,1,0.

You might also like