Question

Answer 5 and 6, using R programming code: 5. We have seen the following functions dnorm pnorm qnorm normal probability densit

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer Given Mean =100 variance=100 In our solution functions, Ruses standard deviation instead of variance, so we need to ta

Code:

##Arguments by position##
##0.9 FOR 90th percentile, mean is 100
##and standard deviation is 10
qnorm(0.9, 100, 10)
##Arguments by names##
##0.9 FOR 90th percentile, mean is 100
##and standard deviation is 10
qnorm(0.9, mean = 100, sd = 10)
##90th percentile means P(X>90)
##By default pnorm gives the value of P(X<90)
##We can't change the tail values in this case
##So to use the value of P(X>90) we subtract the default value from 1
1-pnorm(0.9, mean = 100, sd = 10)
##90th percentile means P(X>90)
##By derault lower.tail=TRUE gives P(X<90)
##So to use the value of P(X>90) we can use lower.tail=FALSE
pnorm(0.9, mean = 100, sd = 10,lower.tail = FALSE)
##Use ppois function for pois distribution
##For X=4, we use the default value of lambda
##and need not use value of tail, so lower value is assigned to FALSE
ppois(4, lambda=3, lower=FALSE)
##For X<=3, we use the default value of lambda
##and as X is <=3, we can use default value of tail which is TRUE
ppois(3, lambda=3,lower.tail = TRUE)
##For X>2, we use the default value of lambda
##and as X is >2, we have to use the different value of tail which is FALSE
ppois(2, lambda=3,lower.tail = FALSE)

Add a comment
Know the answer?
Add Answer to:
Answer 5 and 6, using R programming code: 5. We have seen the following functions dnorm...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT