Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

1. Use the table below to do the following: Name Homework Midterm Final Matt 97 95 92 Don 93 92 96 Charla 95 90 88

image text in transcribed
image text in transcribed
1. Use the table below to do the following: Name Homework Midterm Final Matt 97 95 92 Don 93 92 96 Charla 95 90 88 Jeremy 88 83 75 Kelly 86 79 84 Abby 85 82 86 Gaston 72 63 72 (a) Create a data frame in R consisting of the above data set, you may name the set anything you like. Create vectors for each variable and combine them in a data frame. (b) Use R to create a new variable Total which is the weighted average of the homework, midterm and final (the homework counts for 30% of the total score, the midterm 25% and the final 45%). Add the variable to the data frame created in part (a) using the cbind() command. (c) Use R to compute the mean and standard deviation of the variables Homework, Midterm, Final and Total. (d) Use R to make a scatterplot of the midterm versus final scores, label the x and y axes appropriately. Change the main title to read "Midterm vs. Final Exam". Also compute the correlation between the two variables. What do the values in your correlation matrix and your scatterplot tell you about the relationship between the midterm and final scores? (e) Create side-by side boxplots for the homework, midterm, and final exam scores. To make these side by side, use the boxplot() command and separate the variables by commas in the parentheses. Also, make each box a different color. You need to do something special with the 'col=' command by creating a vector of color names to accomplish this. You can always use Google to see how to do this! What observations can you make about the boxplots

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Accounting

Authors: Dr. Larry M. Walther

1st Edition

1456352970, 9781456352974

Students also viewed these Mathematics questions