381Hw2 - and you can access these fields using the $...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
HOMEWORK 2 (1) Do problem 3 on page 6 of the course notes (Farmer Jane’s problem). Model the situation as a linear problem with an objective and constraints. Solve using the lpSolve package in R . Answer part c) - what new information might come to light during the testing phase of the modeling cycle? (2) Do problem 4 in the course notes. Two or three paragraphs is probably a good length - this is another theoretical modeling exercise. (3) The cars dataset is a default dataset available in R . You can load the dataset using the command data(cars) You can see the variables in the dataset with the command names(cars)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: and you can access these fields using the $ character, for example cars$speed . (a) Plot car stopping distance as a function of car speed (that is, stopping distance on the y-axis, speed on the x-axis). (b) In R , fit a linear model y = a + bx where y is stopping distance and x is travelling speed. (c) Plot your fitted line superimposed on the scatter plot from the previous part. Save the plot as a .pdf file, and submit it with your homework. (d) Do you think the linear model is a good fit? Discuss why or why not. If not, what other models do you think might fit better? 1...
View Full Document

This note was uploaded on 07/22/2010 for the course MATH 11853 taught by Professor Aravkin,aleksandry during the Summer '10 term at University of Washington.

Ask a homework question - tutors are online