Question

5. So far in our linear modeling, we have assumed that Ylz ~ NA,+Az,σ2); that is, there is a normal distribution of common va

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

Solution:

8o o O og 2 0

> x=runif(1000,0,1)

> y=rnorm(1000,x,(x*x))

> lm(y~x)

Call:

lm(formula = y ~ x)

Coefficients:

(Intercept) x

0.01052 0.98437

> plot(y,x)

> abline(y,x)

> summary(lm(y~x))

Call:

lm(formula = y ~ x)

Residuals:

Min 1Q Median 3Q Max

-1.97628 -0.12499 -0.00986 0.12592 2.31425

Coefficients:

Estimate Std. Error t value Pr(>|t|)

(Intercept) 0.01052 0.02840 0.37 0.711

x 0.98437 0.04935 19.95 <2e-16 ***

---

Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 0.442 on 998 degrees of freedom

Multiple R-squared: 0.285, Adjusted R-squared: 0.2843

F-statistic: 397.9 on 1 and 998 DF, p-value: < 2.2e-16

Add a comment
Know the answer?
Add Answer to:
5. So far in our linear modeling, we have assumed that Ylz ~ NA,+Az,σ2); that is, there is a normal distribution of common variance around the regression line. Here, we change this up! Suppose that X...
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