*Please provide r studio code/file* 1) Find the equation of the best fit line using least squares linear...

60.1K

Verified Solution

Question

Basic Math

*Please provide r studio code/file*

1) Find the equation of the best fit line using leastsquares
linear fit of x,y:
set.seed(88)
x <- 1:100
y <- jitter(1.5*x+8,amount=10)

2) For question 1, Draw the P=0.95 prediction intervals for y
when x=1:150

3) For question 1, Find the equation of the best fit lineusing
median-based linear fit of x,y.

4) For question 3, draw the P=0.95 prediction interval for y
# when x=1:150

Answer & Explanation Solved by verified expert
4.2 Ratings (645 Votes)
The R script for problem 14 is given as code for linear fit based on least square model setseed88 x we have to install meadian based package setseed88 x y mblmyx Call mblmformula y x Coefficients Intercept x 9304 1456 predictmblmy x 1 2 3 4 5 6 7 8 9 10 1075944 1221500 1367057 1512614 1658171 1803728 1949285 2094842 2240398 2385955 11 12 13 14 15 16 17 18 19 20 2531512 2677069 2822626 2968183 3113739 3259296 3404853 3550410 3695967 3841524 21 22 23 24 25 26 27 28 29 30 3987081 4132637 4278194 4423751 4569308 4714865 4860422 5005978 5151535 5297092 31 32 33 34 35 36 37 38 39 40 5442649 5588206 5733763 5879320 6024876 6170433 6315990 6461547 6607104 6752661 41 42 43 44 45 46 47 48 49 50 6898217 7043774 7189331 7334888 7480445 7626002 7771559 7917115 8062672 8208229 51 52 53 54 55 56 57 58 59 60 8353786 8499343 8644900 8790456 8936013 9081570 9227127 9372684 9518241 9663798 61 62 63 64 65 66 67 68 69 70 9809354 9954911 10100468 10246025 10391582 10537139 10682695 10828252 10973809 11119366 71 72 73 74 75 76 77 78 79 80 11264923 11410480 11556037 11701593 11847150 11992707 12138264 12283821 12429378 12574934 81 82 83 84 85 86 87 88 89 90 12720491 12866048 13011605 13157162 13302719 13448276 13593832 13739389    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students