Untitled1* x Source on Save a 1 # Open the data file mtcars Run ✰✰Source Asif's Command 2 3 4 # Attache the file Asif's Command attach(mtcars) - # Mean of mileage Asif's Command 5 6 mean (mpg) 7 8 # First quartile of mileage - Asif's Command quantile (mpg, 0.1) 9 - # 9:14 # (Untitled) RR 4.3.1 ~ 2 mpg cyl disp hp drat Mazda RX4 Mazda RX4 Wag Datsun 710 4 108.0 93 3.85 2.320 18.61 wt qsec vs am gear carb 21.0 6 160.0 110 3.90 2.620 16.46 0 1 21.0 6 160.0 110 3.90 2.875 17.02 0 1 22.8 4 4 4 4 1 1 4 1 Hornet 4 Drive 21.4 Hornet Sportabout 18.7 Valiant 18.1 6 258.0 110 3.08 3.215 19.44 8 360.0 175 3.15 3.440 17.02 6 225.0 105 2.76 3.460 20.22 1 0 3 1 00 3 2 1 0 3 1 Duster 360 14 3 8 360 a 245 3 21 3 570 15 84 ค a 3 4 R Script
Untitled1* x Source on Save a 1 # Open the data file mtcars Run ✰✰Source Asif's Command 2 3 4 # Attache the file Asif's Command attach(mtcars) - # Mean of mileage Asif's Command 5 6 mean (mpg) 7 8 # First quartile of mileage - Asif's Command quantile (mpg, 0.1) 9 - # 9:14 # (Untitled) RR 4.3.1 ~ 2 mpg cyl disp hp drat Mazda RX4 Mazda RX4 Wag Datsun 710 4 108.0 93 3.85 2.320 18.61 wt qsec vs am gear carb 21.0 6 160.0 110 3.90 2.620 16.46 0 1 21.0 6 160.0 110 3.90 2.875 17.02 0 1 22.8 4 4 4 4 1 1 4 1 Hornet 4 Drive 21.4 Hornet Sportabout 18.7 Valiant 18.1 6 258.0 110 3.08 3.215 19.44 8 360.0 175 3.15 3.440 17.02 6 225.0 105 2.76 3.460 20.22 1 0 3 1 00 3 2 1 0 3 1 Duster 360 14 3 8 360 a 245 3 21 3 570 15 84 ค a 3 4 R Script
Glencoe Algebra 1, Student Edition, 9780079039897, 0079039898, 2018
18th Edition
ISBN:9780079039897
Author:Carter
Publisher:Carter
Chapter10: Statistics
Section10.2: Representing Data
Problem 10PPS
Related questions
Question
- 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.
- 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. https://www.youtube.com/watch?v=RhJp6vSZ7z0
- Open RStudio: Once RStudio is installed, open the application.
- Load the Dataset: In RStudio, open a data file named "mtcars". To do this, type the command mtcars in the script editor and run the command.
- Attach the Data: Next, attach the dataset using the command attach(mtcars).
- Examine the Variables: Carefully review and note the names of all variables in the dataset. Examples of these variables include:
- Mileage (mpg)
- Number of Cylinders (cyl)
- Displacement (disp)
- Horsepower (hp)
Research: Google to understand these variables.
- 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
- Mean
- Median
- First Quartile (Q1)
- Second Quartile (Q2)
- Third Quartile (Q3)
- Fourth Quartile (Q4)
- 10th Percentile
- 70th Percentile
- Skewness
- Kurtosis
- Document Your Results:
- In RStudio: Before running each statistical test, provide a heading in the format shown at the bottom. “# Mean of mileage – Your name’s command”
- 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.
- 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)
- Include all requested screenshots, tables, and annotations.
![Untitled1* x
Source on Save a
1
# Open the data file
mtcars
Run
✰✰Source
Asif's Command
2
3
4
# Attache the file Asif's Command
attach(mtcars)
-
# Mean of mileage Asif's Command
5
6
mean (mpg)
7
8
# First quartile of mileage - Asif's Command
quantile (mpg, 0.1)
9 - #
9:14 # (Untitled)
RR 4.3.1 ~ 2
mpg cyl disp hp drat
Mazda RX4
Mazda RX4 Wag
Datsun 710
4 108.0 93 3.85 2.320 18.61
wt qsec vs am gear carb
21.0 6 160.0 110 3.90 2.620 16.46 0 1
21.0 6 160.0 110 3.90 2.875 17.02 0 1
22.8
4
4
4
4
1 1
4
1
Hornet 4 Drive
21.4
Hornet Sportabout
18.7
Valiant
18.1
6 258.0 110 3.08 3.215 19.44
8 360.0 175 3.15 3.440 17.02
6 225.0 105 2.76 3.460 20.22
1
0
3
1
00
3
2
1 0
3
1
Duster 360
14 3
8 360 a 245 3 21 3 570 15 84
ค
a
3
4
R Script](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fa67304b1-3709-41d7-a763-4eb6f13a6e63%2Fd07620ef-5edc-4763-80f8-32465d701b05%2Fkza8tct_processed.png&w=3840&q=75)
Transcribed Image Text:Untitled1* x
Source on Save a
1
# Open the data file
mtcars
Run
✰✰Source
Asif's Command
2
3
4
# Attache the file Asif's Command
attach(mtcars)
-
# Mean of mileage Asif's Command
5
6
mean (mpg)
7
8
# First quartile of mileage - Asif's Command
quantile (mpg, 0.1)
9 - #
9:14 # (Untitled)
RR 4.3.1 ~ 2
mpg cyl disp hp drat
Mazda RX4
Mazda RX4 Wag
Datsun 710
4 108.0 93 3.85 2.320 18.61
wt qsec vs am gear carb
21.0 6 160.0 110 3.90 2.620 16.46 0 1
21.0 6 160.0 110 3.90 2.875 17.02 0 1
22.8
4
4
4
4
1 1
4
1
Hornet 4 Drive
21.4
Hornet Sportabout
18.7
Valiant
18.1
6 258.0 110 3.08 3.215 19.44
8 360.0 175 3.15 3.440 17.02
6 225.0 105 2.76 3.460 20.22
1
0
3
1
00
3
2
1 0
3
1
Duster 360
14 3
8 360 a 245 3 21 3 570 15 84
ค
a
3
4
R Script
AI-Generated Solution
Unlock instant AI solutions
Tap the button
to generate a solution
Recommended textbooks for you
![Glencoe Algebra 1, Student Edition, 9780079039897…](https://www.bartleby.com/isbn_cover_images/9780079039897/9780079039897_smallCoverImage.jpg)
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
![College Algebra (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781305652231/9781305652231_smallCoverImage.gif)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning
![Big Ideas Math A Bridge To Success Algebra 1: Stu…](https://www.bartleby.com/isbn_cover_images/9781680331141/9781680331141_smallCoverImage.jpg)
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt
![Glencoe Algebra 1, Student Edition, 9780079039897…](https://www.bartleby.com/isbn_cover_images/9780079039897/9780079039897_smallCoverImage.jpg)
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
![College Algebra (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781305652231/9781305652231_smallCoverImage.gif)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning
![Big Ideas Math A Bridge To Success Algebra 1: Stu…](https://www.bartleby.com/isbn_cover_images/9781680331141/9781680331141_smallCoverImage.jpg)
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt
![Holt Mcdougal Larson Pre-algebra: Student Edition…](https://www.bartleby.com/isbn_cover_images/9780547587776/9780547587776_smallCoverImage.jpg)
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
![Functions and Change: A Modeling Approach to Coll…](https://www.bartleby.com/isbn_cover_images/9781337111348/9781337111348_smallCoverImage.gif)
Functions and Change: A Modeling Approach to Coll…
Algebra
ISBN:
9781337111348
Author:
Bruce Crauder, Benny Evans, Alan Noell
Publisher:
Cengage Learning
![College Algebra](https://www.bartleby.com/isbn_cover_images/9781337282291/9781337282291_smallCoverImage.gif)