381Hw2 - and you can access these ﬁelds using the \$...

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

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)
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: and you can access these ﬁelds 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 , ﬁt a linear model y = a + bx where y is stopping distance and x is travelling speed. (c) Plot your ﬁtted line superimposed on the scatter plot from the previous part. Save the plot as a .pdf ﬁle, and submit it with your homework. (d) Do you think the linear model is a good ﬁt? Discuss why or why not. If not, what other models do you think might ﬁt better? 1...
View Full Document

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern