Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

11/19/23, 9:10 PM Posit Cloud

# NAME: GOGUL KRISHNA S


# REG.NO: 727822TUEC036
# CLASS: II-ECE-A
# EXPERIMENT NO: 4
# TOPIC: FIT A NORMAL DISTRIBUTION FOR THE GIVEN DATA
# DATE: 06-11-2023
>
> # PROBLEM 1
> X~dnorm(mean=150,sd=50)
X ~ dnorm(mean = 150, sd = 50)
> pnorm(200,mean=150,sd=50,lower.tail=FALSE)
[1] 0.1586553
> pnorm(170,mean=150,sd=50,lower.tail=TRUE)-pnorm(120,mean=150,sd=50,lower.tail=TRUE)
[1] 0.3811686
> pnorm(75,mean=150,sd=50,lower.tail=TRUE)
[1] 0.0668072
>
> # PROBLEM 2
> X~dnorm(mean=2040,sd=60)
X ~ dnorm(mean = 2040, sd = 60)
> pnorm(2150,mean=2040,sd=60,lower.tail=FALSE)
[1] 0.03337651
> pnorm(1950,mean=2040,sd=60,lower.tail=TRUE)
[1] 0.0668072
> pnorm(2160,mean=2040,sd=60,lower.tail=TRUE)-pnorm(1920,mean=2040,sd=60,lower.tail=TRUE)
[1] 0.9544997
>
> # PROBLEM 3
> mean_height<-175
> sd_height<-5
> probability_taller_than_185<-1-pnorm(185,mean=mean_height,sd=sd_height)
> probability_taller_than_185
[1] 0.02275013

https://posit.cloud/content/6943252 1/1

You might also like