Provide here one or multiple R-snapshots of descriptive stats for hp variable. Descriptive Stats of horsepower or hp Name of statistical test Mean Median First quartile Second Quartile (Q2) Third Quartile (Q3) Fourth Quartile (Q4) 10th Percentile 70th Percentile Skewness Kurtosis Value (rounded to 3 decimal places) Name of statistical test Mean Median First quartile Second Quartile (Q2) Third Quartile (Q3) Fourth Quartile (Q4) 10th Percentile 70th Percentile Descriptive Stats of mpg Value (rounded to 3 decimal places) Base R cannot perform Skewness and Kurtosis. For this purpose, you need to install a library. Perform the following two steps before conducting Skewness and Kurtosis install.packages("psych") require(psych) These are the commands for Skewness and Kurtosis skew(mpg) kurtosi(mpg) Skewness Kurtosis
Statistical Analysis: Select mpg variable, and perform the following statistical tests. Once
you are done with these tests using mpg variable, repeat the same with hp variable.
o Mean
o
o First
o Second Quartile (Q2)
o Third Quartile (Q3)
o Fourth Quartile (Q4)
o 10th Percentile
o 70th Percentile
o Skewness
o Kurtosis
8. Document Your Results:
o In RStudio: Before running each statistical test, provide a heading in the format
shown at the bottom. “# Mean of mileage – Your name’s command”
o In Microsoft Word: Once you've completed all tests, take a screenshot of your
results in RStudio and paste it into a Microsoft Word document. Make sure that
snapshots are very clear. You will need multiple snapshots. Also transfer these results
to the following table.
9. Once you are done with this process, choose hp or horsepower variable from the same data,
and repeat the same process and provide separate results (both snapshots and table)
10. Submission Requirements:
o Follow the format exactly as outlined.
o Include all requested screenshots, tables, and annotations
Objective: To familiarize yourself with RStudio and conduct basic statistical analysis using a
given dataset.
Instructions:
1. Install RStudio: Begin by installing RStudio on your computer. If you haven't done so,
please refer to the official RStudio website for download and installation instructions.
2. Watch the Tutorial Video: Watch the provided video tutorial that explains how to run
RStudio. Pay close attention to the steps for opening and managing data files.
3. Open RStudio: Once RStudio is installed, open the application.
4. Load the Dataset: In RStudio, open a data file named "mpg". To do this, type the command
mpg in the script editor and run the command.
5. Attach the Data: Next, attach the dataset using the command attach(mpg).
6. Examine the Variables: Carefully review and note the names of all variables in the dataset.
Examples of these variables include:
o Mileage (mpg)
o Number of Cylinders (cyl)
o Displacement (disp)
o Horsepower (hp)
Research: Google to understand these variables


Unlock instant AI solutions
Tap the button
to generate a solution








