Question

In: Statistics and Probability

I have an assignment that must be done on R/R studio R/RStudio - Chapter 4- Correlation...

I have an assignment that must be done on R/R studio

R/RStudio - Chapter 4- Correlation and Regression

Step 1 – Download and Install the R/RStudio software on your computer. The link and instructions to do that are on Blackboard under Course Information.

Step 2 – Access the Data Sets in MyLab through StatCrunch. In chapter 4, a data set called “Used BMW prices 2017” is what we’ll use.

Step 3 – When you open the data set in StatCrunch, export it to an Excel spreadsheet and save it on your computer.

Step 4 - Go back to R/RStudio and Import the excel spreadsheet to R/RStudio.

Note: Help with the software is at the end of the chapter called Tech Support (also on the R/RStudio reference card) and of course in the software.

This is the data from stat crunch = statcrunch.com/app/?dataurl=www.statcrunch.com%2Fbooksets%2Fsharpe_sbs4e%2Fdataset%2FUsed_BMW_prices_2017.txt&dlim=tab&ft=true#

This is where you download R =. https://cran.r-project.org

This is where you download rstudio =.  https://rstudio.com/products/rstudio/download/#download

This is the assignment that must be done on RSTUDIO

- Regress Price (Y axis) on Model Year (X axis). Ignore the mileage data.

- Create a Scatterplot of the data including a least-squares regression line through the dots.

- Run Summary Statistics on the Data showing the (1) correlation coefficient, (2) y-intercept of the regression line (alpha) and (3) the beta coefficient (slope) of the line.

- Print out the scatterplot and the summary statistics and hand them in.

Solutions

Expert Solution


Related Solutions

How is this done in R-studio? I have been trying to figure it out but I...
How is this done in R-studio? I have been trying to figure it out but I am getting more and more confused. While imprisoned by the Germans during World War II, the English mathematician John Kerrich tossed a coin 10,000 times and obtained 5067 heads. Let p be the probability of a head on a single toss. We wish to check if the data are consistent with the hypothesis that the coin was fair. a) Set up the hypotheses. Why...
I have questions on how to do this in R/Rstudio or smoothing methods. I have been...
I have questions on how to do this in R/Rstudio or smoothing methods. I have been struggling with using the codes. I have been practicing and tryign to do it, but I am really unsure at where I am with it. Just need something to compare it too! I don't understand why there isn't any information under the demand section! (1) A memo written to the Chief Operations Officer of Transantiago that describes the model and method and presents the...
Hello, i have this excersice in R studio Write a function in R that generates simulations...
Hello, i have this excersice in R studio Write a function in R that generates simulations of a Poisson random variable as follows: define I = [λ], and use p_i + 1 = λp_i / (i + 1) to determine F recursively. Generate a random number U, determine if X≤I by comparing if U≤F (I). If X≤I searches downwards starting at I, otherwise it searches upwards starting from I + 1. Compare the time it takes for the two algorithms...
How can I resolve this case study by using R studio from chapter 10 , book...
How can I resolve this case study by using R studio from chapter 10 , book business statistics written by Jaggia/Kelly third edition.can you please resolve for me CASE STUDY 10.2 The Speedo LZR Racer Suit is a high-end, body-length swimsuit that was launched on February 13,2008. When 17 world records fell at the December 2008 European Short Course Championships in Croatia, many believed a modification in the rules surrounding swimsuits was necessary. The FINA Congress, the international governing board...
How can I resolve this case study by using R studio from chapter 10 , book...
How can I resolve this case study by using R studio from chapter 10 , book business statistics written by Jaggia/Kelly third edition.can you please resolve for me CASE STUDY 10.3 Paige Thomsen is about to graduate from college at a local university in San Francisco. Her options are to look for a job in San Francisco or go home to Denver and search for work there. Recent data report that average starting salaries for college graduates is $48,900 in...
Assignment Direction: Complete Part I of this assignment first, if you have not done so, because...
Assignment Direction: Complete Part I of this assignment first, if you have not done so, because it provides guided practice on questions similar to the questions in Part II here. Check out the “Important Resources and Assignment Guides” in the Modules section on Canvas to see how to properly show your math work. There are also examples of the APA-style tables and graphs (figures) for your reference. Your submitted assignment must be in Word format, with a clear answer typed...
MUST BE DONE IN C++ Use qsort( ) function in Visual Studio to sort the following...
MUST BE DONE IN C++ Use qsort( ) function in Visual Studio to sort the following three arrays: int array1 [] = { 3, 4, 2, 1, 7}; float array2 [] = {0.3, 0.1, 5.5, 4.3, 7.8}; char array3 [] = {‘c’, ‘d’, ‘a’, ‘b’, ‘f’};                                     Develop a driver function to print out the sorted results and put the screenshot into the word document. Note that you have to use qsort( ) provided by Visual Studio. What is the...
Assignment 1 - IN PDF FORMAT Using R and Rstudio Pick a database from: data() Then...
Assignment 1 - IN PDF FORMAT Using R and Rstudio Pick a database from: data() Then preview the first 10 rows. Print the number of rows and columns - Print the names of the variables If you have row names, print them - work with the values for a field in your dataset. You can do it by dataset[[xx]] operator with xx can be the index of the field or the nae of the field. Now use dataset[xx] to get...
I want this to be solved using R studio or R software, please. Here is the...
I want this to be solved using R studio or R software, please. Here is the example: The data in stat4_prob5 present the performance of a chemical process as a function of sever controllable process variables. (a) Fit a multiple regression modelrelating CO2product (y) to total solvent (x1) and hydrogen consumption (x2) and report the fitted regression line. (b) Find a point estimatefor the variance term σ2. (c) Construct the ANOVA tableand test for the significance of the regression using...
Do the assignment in R/RStudio. Copy or compile your results into Word, write any explanations and...
Do the assignment in R/RStudio. Copy or compile your results into Word, write any explanations and turn in the hard copy. You conduct a survey of New Yorkers. The survey uses a stratified sample of 100 employed college graduates and 100 employed high school graduates. Your survey concludes that 70% of college graduates are happy with their job compared to only 60% of high school graduates. a. What is the standard error and margin of error of the estimate for...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT