Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

REGISTER NUMBER:23MID0101

NAME: PREETHIKA.G

NAME. : PREETHIKA.G
REG.NO. : 23MID0101
SUBJECT CODE. : MAT2001
SUBJECT TITLE : PROBABILITY AND STATISTICS
GUIDED BY : PRIYA DAS
SEMISTER. : WINTER SEMISTER 2023-2024

DIGITAL ASSIGNMENT - 4
REGISTER NUMBER : 23MID0101
NAME: PREETHIKA.G

Experiment-4
Poisson and Normal Distributions

QUESTION-1
1) A car hire firm has 2 cars which it hires out day by day.
The number of demands for a Car on each day follows a
Poisson distribution with mean 1.5. Write down the R code
to Compute the proportion of days on which
(i). neither car is used,
(ii). At most one car is used and
(iii). Some demand of car is not fulfilled.

KEY WORDS :-
1)Dpois
2)Ppois
3)Sum of ppois
4)Lambda ,x-given
REGISTER NUMBER : 23MID0101
NAME: PREETHIKA.G

COMPUTING (CODE) : -
> #question-1-i
> dpois(0,lambda=1.5)
[1] 0.2231302
> #question-1-ii
> ppois(1,lambda=1.5)
[1] 0.5578254
> #question-1-iii
> 1-sum(dpois(0:2,lambda=1.5))
[1] 0.1911532

CONCLUSION :-
1)probability of neither car is used =0.2231302
2)probability of almost one car is used=0.5578254
3) probability of car is refused = 0.1911532
REGISTER NUMBER : 23MID0101

NAME: PREETHIKA.G

QUESTION-2
2. The local corporation authorities in a certain city install
10,000 electric lamps in the Streets of the city with the
assumption that the life of lamps is normally distributed. If
These lamps have an average life of 1,000 burning hours
with a standard deviation of 200 Hours, then write down the
R code to calculate the number of lamps might be expected
To fail in the first 800 burning hours and also the number of
lamps might be expected to Fail between 800 and 1,200
burning hours.

KEY WORDS :-
1)pnorm
2)total bulbs
3)mean
4)variance
5) x – given
REGISTER NUMBER : 23MID0101
NAME: PREETHIKA.G

COMPUTING(CODE) :-
> #question 2-a
> y=pnorm(800,mean=1000,sd=200)-
pnorm(0,mean=1000,sd=200)
>y
[1] 0.158655
> total_bulbs=10000
> y*10000
[1] 1586.55
> #question 2-b
> y=pnorm(1200,mean=1000,sd=200)-
pnorm(800,mean=1000,sd=200)
>y
[1] 0.6826895
> total_bulbs=10000
> y*10000
[1] 68.26.895
REGISTER NUMBER : 23MID0101
NAME: PREETHIKA.G

CONCLUSION :-
1) The number of lamps might be expected To fail in
the first 800 burning hours = 1586.55
2) The number of lamps might be expected to Fail
between 800 and 1,200 burning hours =6826.895

THANK YOU

You might also like