Question

2. Suppose Y ~ Exp(a), which has pdf f(y)-1 exp(-y/a). (a) Use the following R code to generate data from the model Yi ~ Exp(

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

scatterplot OO 5 4 3 2 1 X 0.05 0.10 0.15 0.20 00 0 LOresiduals vs predicted 0.02 0.00 0.01 0.03 predicted residuals 0.05 0.10 0.15 00 0 O Oresiduals vs predicted after variance stabilization transformation 2 -5.2 -5.0 4.8 4.6 -4.4 -4.2 4.0 predicted residuals 17Set.seed (123) n=500 X-rnorm (n, 3, 1) yrexp (n, x/.05) #to draw sample from the given Exponential distribution > plot (x, Y,abline (lm(y-x),col=red) tadding best fitted 1ine to the scatterplot predicted predict (fit) tsaving fitted values residualYENP (A) Now, V(N) 2 Cunn den 7 f) tan, lay dilta nd Pai V() A( 2- ke conlaut To ake V(2) Clogu tk Lk vc2)is appo aialty fIA)ftd noded 0 006795 X Y0-0460os anunptio f honigenettr The lieils betaleen X Y appean to be nolalzd y tr dalaetabili atim duee to vai anee Hene thanntrmatimhwiogenei ty minlained heeaue v(2) is aluays Conklant can nelatinmhip ebn Henc

Add a comment
Know the answer?
Add Answer to:
2. Suppose Y ~ Exp(a), which has pdf f(y)-1 exp(-y/a). (a) Use the following R code to generate data from the model Yi...
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