Question

In: Statistics and Probability

R Problem Set: #Work with the inbuilt dataset "Cars" View(cars) This will show you the dataset...

R Problem Set:

#Work with the inbuilt dataset "Cars"
View(cars)

This will show you the dataset on 2 variables speed and distance.

?cars

This will explain what the variables mean.

#Q1) Describe the dataset. What are the main findings?
#Q2) Design a relevant question to model using linear regressions
#Q3) Run the regression and report the std error, t-stat, p value and f stat.
#Q4) Is this a valid regression? Is the normality assumption justified? Show clearly.
#Q5) Are there any ouliers in the data? How do the observations influence the results?
#Q6) Write a 3-5 lines summary of what you conclude from this exercise

Please submit a clear pdf document showing all your results. Also, attach a copy of your code.

Solutions

Expert Solution


Related Solutions

R work (must be done in R) Before opening the dataset needed for this problem, you’ll...
R work (must be done in R) Before opening the dataset needed for this problem, you’ll need to call the “car” package. Run the following line of code: > library(car)  Now you can import the “ Cowles” dataset and use it to answer the question below. Name the data frame with your EID: > my_eid <- Cowles Remember to include any code you use along with your answers in your submission! 3. Cowles and Davis (1987) collected data on...
Please do these questions in the R language 1. Load the cars dataset into R. It...
Please do these questions in the R language 1. Load the cars dataset into R. It is a built-in dataset. 2. Do an str() to determine the number of observations and variables. Enter your answer as a comment. 3. Plot speed on x axis and distance on y axis. 4. Find the correlation between speed and distance. What does the magnitude and sign indicate? Enter your answer as a comment. 5. Build a linear regression model with speed as the...
1) Show that if A is an open set in R and k ∈ R \...
1) Show that if A is an open set in R and k ∈ R \ {0}, then the set kA = {ka | a ∈ A} is open.
All work must be done in R programing. Consider this dataset provided to you as prob10.txt...
All work must be done in R programing. Consider this dataset provided to you as prob10.txt c1 t1 c2 t2 c3 t3 c4 t4 2650 3115 2619 2933 2331 2799 2750 3200 1200 1101 1200 1309 1888 1901 1315 980 1541 1358 1401 1499 1256 1238 1625 1421 1545 1910 1652 2028 1449 1901 1399 2002 1956 2999 2066 2880 1777 2898 1999 2798 1599 2710 1754 2765 1434 2689 1702 2402 2430 2589 2789 2899 2332 2300 2250 2741...
4. Show that the set A = {fm,b : R → R | m does not...
4. Show that the set A = {fm,b : R → R | m does not equal 0 and fm,b(x) = mx + b, m, b ∈ R} forms a group under composition of functions. (The set A is called the set of affine functions from R to R.)
Work these in R. Using library(resampledata) and the dataset Spruce to conduct a test to see...
Work these in R. Using library(resampledata) and the dataset Spruce to conduct a test to see if the mean difference in how much the seedling grew (in height) over the course of the study under these two treatments are significantly different from each other. Answer the following: a) Set up a hypothesis using appropriate notation. b)Find the value of the observed test statistic using R. c)Compute the P-value of the observed test statistic using a permutation distribution with N= 10^5-1....
For the Week 5 Problem Set, show all work in an Excel book, labeling each item...
For the Week 5 Problem Set, show all work in an Excel book, labeling each item by the problem number. Save the file in the format flastname_Unit_5_Learning_Activity.xlsx, where flastname is your first initial and your last name, and submit it to the appropriate Dropbox. For full credit, be sure to use appropriate formulas to solve each exercise or problem. Chapter 7 (page 149) 1. Calculate the present value (PV ) of a cash inflow of $500 in one year, and...
In R: Consider dataset “juul” from library “ISwR”. (juul is a built in data set) Are...
In R: Consider dataset “juul” from library “ISwR”. (juul is a built in data set) Are the means of igf1 equal among tanner groups at 5% level? Please use the six step process to test statistical hypotheses for this research problem. Note: You need to convert tanner from numeric to factor type and ignore all the NAs.
warpbreaks is a built-in R dataset which gives This data set gives the number of warp...
warpbreaks is a built-in R dataset which gives This data set gives the number of warp breaks per loom, where a loom corresponds to a fixed length of yarn. We are interested in some descriptive statistics related to the warpbreaks dataset. We can access this data directly and convert the time series into a vector by using the assignment x <- warpbreaks$breaks. (In R, use ? warpbreaks for info on this dataset.) The values of x if assigned as above...
Let A ⊂ R be a nonempty discrete set a. Show that A is at most...
Let A ⊂ R be a nonempty discrete set a. Show that A is at most countable b. Let f: A →R be any function, and let p ∈ A be any point. Show that f is continuous at p
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT