Quiz 1
pdf
keyboard_arrow_up
School
Montgomery College *
*We aren’t endorsed by this school
Course
101
Subject
Statistics
Date
Apr 3, 2024
Type
Pages
6
Uploaded by GrandSparrowMaster909
Quiz 1
MA
2024-02-21
Please use the following data set to answer the below questions:
library
(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔
dplyr 1.1.4 ✔
readr 2.1.5
## ✔
forcats 1.0.0 ✔
stringr 1.5.1
## ✔
ggplot2 3.4.4 ✔
tibble 3.2.1
## ✔
lubridate 1.9.3 ✔
tidyr 1.3.1
## ✔
purrr 1.0.2 ## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖
dplyr::filter() masks stats::filter()
## ✖
dplyr::lag() masks stats::lag()
## ℹ
Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to becom
e errors
mtcars
## mpg cyl disp hp drat wt qsec vs am gear carb
## Mazda RX4 21.0 6 160.0 110 3.90 2.620 16.46 0 1 4 4
## Mazda RX4 Wag 21.0 6 160.0 110 3.90 2.875 17.02 0 1 4 4
## Datsun 710 22.8 4 108.0 93 3.85 2.320 18.61 1 1 4 1
## Hornet 4 Drive 21.4 6 258.0 110 3.08 3.215 19.44 1 0 3 1
## Hornet Sportabout 18.7 8 360.0 175 3.15 3.440 17.02 0 0 3 2
## Valiant 18.1 6 225.0 105 2.76 3.460 20.22 1 0 3 1
## Duster 360 14.3 8 360.0 245 3.21 3.570 15.84 0 0 3 4
## Merc 240D 24.4 4 146.7 62 3.69 3.190 20.00 1 0 4 2
## Merc 230 22.8 4 140.8 95 3.92 3.150 22.90 1 0 4 2
## Merc 280 19.2 6 167.6 123 3.92 3.440 18.30 1 0 4 4
## Merc 280C 17.8 6 167.6 123 3.92 3.440 18.90 1 0 4 4
## Merc 450SE 16.4 8 275.8 180 3.07 4.070 17.40 0 0 3 3
## Merc 450SL 17.3 8 275.8 180 3.07 3.730 17.60 0 0 3 3
## Merc 450SLC 15.2 8 275.8 180 3.07 3.780 18.00 0 0 3 3
## Cadillac Fleetwood 10.4 8 472.0 205 2.93 5.250 17.98 0 0 3 4
## Lincoln Continental 10.4 8 460.0 215 3.00 5.424 17.82 0 0 3 4
## Chrysler Imperial 14.7 8 440.0 230 3.23 5.345 17.42 0 0 3 4
## Fiat 128 32.4 4 78.7 66 4.08 2.200 19.47 1 1 4 1
## Honda Civic 30.4 4 75.7 52 4.93 1.615 18.52 1 1 4 2
## Toyota Corolla 33.9 4 71.1 65 4.22 1.835 19.90 1 1 4 1
## Toyota Corona 21.5 4 120.1 97 3.70 2.465 20.01 1 0 3 1
## Dodge Challenger 15.5 8 318.0 150 2.76 3.520 16.87 0 0 3 2
## AMC Javelin 15.2 8 304.0 150 3.15 3.435 17.30 0 0 3 2
## Camaro Z28 13.3 8 350.0 245 3.73 3.840 15.41 0 0 3 4
## Pontiac Firebird 19.2 8 400.0 175 3.08 3.845 17.05 0 0 3 2
## Fiat X1-9 27.3 4 79.0 66 4.08 1.935 18.90 1 1 4 1
## Porsche 914-2 26.0 4 120.3 91 4.43 2.140 16.70 0 1 5 2
## Lotus Europa 30.4 4 95.1 113 3.77 1.513 16.90 1 1 5 2
## Ford Pantera L 15.8 8 351.0 264 4.22 3.170 14.50 0 1 5 4
## Ferrari Dino 19.7 6 145.0 175 3.62 2.770 15.50 0 1 5 6
## Maserati Bora 15.0 8 301.0 335 3.54 3.570 14.60 0 1 5 8
## Volvo 142E 21.4 4 121.0 109 4.11 2.780 18.60 1 1 4 2
data <- mtcars
Question 1: Can you provide a summary of the mpg
(miles per gallon) column in the mtcars dataset?
#enter your code here
summary(mpg)
## manufacturer model displ year ## Length:234 Length:234 Min. :1.600 Min. :1999 ## Class :character Class :character 1st Qu.:2.400 1st Qu.:1999 ## Mode :character Mode :character Median :3.300 Median :2004 ## Mean :3.472 Mean :2004 ## 3rd Qu.:4.600 3rd Qu.:2008 ## Max. :7.000 Max. :2008 ## cyl trans drv cty ## Min. :4.000 Length:234 Length:234 Min. : 9.00 ## 1st Qu.:4.000 Class :character Class :character 1st Qu.:14.00 ## Median :6.000 Mode :character Mode :character Median :17.00 ## Mean :5.889 Mean :16.86 ## 3rd Qu.:8.000 3rd Qu.:19.00 ## Max. :8.000 Max. :35.00 ## hwy fl class ## Min. :12.00 Length:234 Length:234 ## 1st Qu.:18.00 Class :character Class :character ## Median :24.00 Mode :character Mode :character ## Mean :23.44 ## 3rd Qu.:27.00 ## Max. :44.00
##Question 2: How can you access the information for the 5th row in the mtcars dataset?
#enter your code here
select(data, drat)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
## drat
## Mazda RX4 3.90
## Mazda RX4 Wag 3.90
## Datsun 710 3.85
## Hornet 4 Drive 3.08
## Hornet Sportabout 3.15
## Valiant 2.76
## Duster 360 3.21
## Merc 240D 3.69
## Merc 230 3.92
## Merc 280 3.92
## Merc 280C 3.92
## Merc 450SE 3.07
## Merc 450SL 3.07
## Merc 450SLC 3.07
## Cadillac Fleetwood 2.93
## Lincoln Continental 3.00
## Chrysler Imperial 3.23
## Fiat 128 4.08
## Honda Civic 4.93
## Toyota Corolla 4.22
## Toyota Corona 3.70
## Dodge Challenger 2.76
## AMC Javelin 3.15
## Camaro Z28 3.73
## Pontiac Firebird 3.08
## Fiat X1-9 4.08
## Porsche 914-2 4.43
## Lotus Europa 3.77
## Ford Pantera L 4.22
## Ferrari Dino 3.62
## Maserati Bora 3.54
## Volvo 142E 4.11
Question 3: What is the maximum value in the wt
(weight) column of the mtcars dataset?
#enter your code here
m<- select(data, wt)
mean(m)
## Warning in mean.default(m): argument is not numeric or logical: returning NA
## [1] NA
Question 4: Create a new dataframe selected_cars
with only the columns ‘mpg’, ‘hp’, and ‘qsec’ from the
mtcars dataset.
#enter your code here
selected_cars<- select(data, mpg, hp, qsec)
selected_cars
## mpg hp qsec
## Mazda RX4 21.0 110 16.46
## Mazda RX4 Wag 21.0 110 17.02
## Datsun 710 22.8 93 18.61
## Hornet 4 Drive 21.4 110 19.44
## Hornet Sportabout 18.7 175 17.02
## Valiant 18.1 105 20.22
## Duster 360 14.3 245 15.84
## Merc 240D 24.4 62 20.00
## Merc 230 22.8 95 22.90
## Merc 280 19.2 123 18.30
## Merc 280C 17.8 123 18.90
## Merc 450SE 16.4 180 17.40
## Merc 450SL 17.3 180 17.60
## Merc 450SLC 15.2 180 18.00
## Cadillac Fleetwood 10.4 205 17.98
## Lincoln Continental 10.4 215 17.82
## Chrysler Imperial 14.7 230 17.42
## Fiat 128 32.4 66 19.47
## Honda Civic 30.4 52 18.52
## Toyota Corolla 33.9 65 19.90
## Toyota Corona 21.5 97 20.01
## Dodge Challenger 15.5 150 16.87
## AMC Javelin 15.2 150 17.30
## Camaro Z28 13.3 245 15.41
## Pontiac Firebird 19.2 175 17.05
## Fiat X1-9 27.3 66 18.90
## Porsche 914-2 26.0 91 16.70
## Lotus Europa 30.4 113 16.90
## Ford Pantera L 15.8 264 14.50
## Ferrari Dino 19.7 175 15.50
## Maserati Bora 15.0 335 14.60
## Volvo 142E 21.4 109 18.60
Question 5:
a. What is the average horsepower (hp) of the cars in the mtcars dataset?
b)How many cars have horsepower greater than the average?
# enter your code here
#a)
mean(data, hp, na.rm=TRUE)
## Warning in mean.default(data, hp, na.rm = TRUE): argument is not numeric or
## logical: returning NA
## [1] NA
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
tion 2 of 15
Last summer, the Smith family drove through seven different states and visited various popular landmarks. The prices of gasoline
in dollars per gallon varied from state to state and are listed below.
$2.34, $2.75, $2.48, $3.58, $2.87, $2.53, $3.31
Click to download the data in your preferred format.
CrunchIt! CSV Excel JMP Mac Text Minitab PC Text R SPSS TI Calc
Calculate the range of the price of gas. Give your solution to the nearest cent.
range:
dollars per gallon
DELL
&
4.
7
8.
arrow_forward
Edit
View
History
Bookmarks
Profiles
Tab
Help
Mopu
Chrome
File
A Wiley+ Sect 1.2 - MATH 113 SP X
WP NWP Assessment Player UI Ap X +
A education.wiley.com/was/ui/v2/assessment-player/index.html?launchld3f36c09dc-6469-453a-b6ca-157633183f59
Section 1.2 SS21 7W2
Question 9 of 9
The maximum heart rate (MHR), is the maximum number of times
a person's heart can safely beat in one minute.
If M HR is in beats per minute and a is age in years, the formulas
used to estimate MHR are:
For males: MHR=220 –– a
Recently it has been suggested that a more accurate predictor of
For females: MHR= 226 – a
-
MHR for both males and females is given by MHR=208 – 0.7a.
-
(a) At what age do the old and new formulas give the same MHR
for females? For males?
Y For females, the MHR is the same in the two formulas at
years of age.
For males, the MHR is the same in the two formulas at
years of age.
(b) Which of the following is true?
The new formula predicts a lower MHR for young
people and a higher MHR for older…
arrow_forward
Please answer the question below in the photo
arrow_forward
Answer the question below in the picture
arrow_forward
Chrome File Edit View History Bookmarks Profiles Tab Window Help
B.1 HW-23FA STATISTICS (81: x +
Gmail
esc
Home - myRCC
mylearning.suny.edu/d 21/le/content/920969/viewContent/25846499/View
FO
A store gathers some demographic information from their customers. The following chart
summarizes the age-related information they collected:
Age Number of Customers
< 20
20-30
30-40
FI
40-50
50-60
X
≥ 60
30
79
F2
62
92
One customer is chosen at random for a prize giveaway.
What is the probability that the customer is at least 40 but no older than 60?
20
87
What is the probability that the customer is either older than 40 or younger than 20?
99
What is the probability that the customer is at least 60?
Enter your answers as either decimals or fractions, not as percents.
www
B.
SE
51
F3
DOD
000 F4
24
F5
23
MacBook Air
gi
F6
A4
F7
▶11
*
FB
arrow_forward
Edit View History Bookmarks People Window Help
nd Masteri
ps://open
Do Homework - Jaelyn Dancy
xl.com/Student/PlayerHomework.aspx?homeworkld-515742856&questionld-18flushed-false&cld-5
Wright MTH112 20217 E-Learning Spring 2019
Jaelyn Dancy
Homework: HW - 2.4
ath score: 0 of 1 pt
2.4.43
11 of 12 (10 complete)
HW Sco
2
Solve the equation x+2x -5x-6 0 given that 2 is a zero of fx)x
2x-5x -6
The solution set is. (Use a comma to separate answers as needed.)
Enter your answer in the answer box and then click Check Answer.
All parts showing
Clear All
5
MacBook Pro
arrow_forward
Can you help me with question (c)???
arrow_forward
A family has a phone plan that includes 6 GB of data per month. 15 days into a 30-day month, the family has used 2 GB. At that rate, how many GB will the family use for the entire month?
3 GB
8 GB
6 GB
4 GB
Question 3
arrow_forward
Chap 6 13
arrow_forward
WS 1 Section 6.2 Binomial Worksheet (7) - Word
Review
View
Help
Tell me what you want to do
AaBbCcD AaBbCcDr AaBbCc AaBbCcD AABI AaBbCcD AaBbCcD
1 Nomal
1 No Spac. Heading 1
Heading 2
Title
Subtitle
Subtle Em.
Paragraph
Styles
3. About 14% of people that have a heart attack will die from the attack. If a hospital admits 15
patients that have had a heart attack, find each of the following probabilities. Use the calculator
and round to three decimal places.
a. The probability that out of the 15, 5 or fewer die.
Probability
b. The probability that out of the 15, less than 3 die.
Probability
C. The probability that out of the 15, at least 1 dies.
Probability
d. Suppose that over the last few years, the hospital has admitted 1500 patients
with heart attacks. Find the expected number of these patients that would have
died of a heart attack. Interpret this value in a sentence.
e. Find the standard deviation in the number of patients that would have died by a
heart attack. Round your result to…
arrow_forward
help
arrow_forward
//$$/$/$/$::$/$:Helppppppp
arrow_forward
ome
File
Edit View History Bookmarks Profiles Tab Window Help
- Homework: Section 1.4
O NWP Assessment Player UI Ap x
i education.wiley.com/was/ui/v2/assessment-player/index.html?launchld=bba0e335-3e07-493d-97c6-8f39f5c7e2c1#/question/3
Homework: Section 1.4
Question 4 of 6
-/ 20
く
View Policies
Current Attempt in Progress
Find a formula for the given linear function, h(x).
The graph of h intersects the graph of y = x2 at x = -4 and x = 10.
NOTE: Enter the exact answer.
h(x) =
16
étv
SC
80
F2
F3
DII
DD
FS
F7
F9
F10
F11
#3
$
1
2
3
&
4
6.
7
8.
9
Q
W
E
T
Y
U
P
S
D
F
G
J
K
C
く
N
M
.. .-
エ
B
arrow_forward
Sahar Rasoul-Math 7 End of Yea X Gspy ninjas book-Google
docs.google.com/spreadsheets/d/1j5MotWzsc0V1V3Qyl4rbP_OFOUotaNXCIIFax>
Copy of Copy of Col...
8.8
Sahar Rasoul - Math 7 End of Year Digital Task Cards Student Version ☆
File Edit View Insert Format Data Tools Extensions Help Last edit was 5 minu
$ % .0 .00 123 Century Go... ▼ 18 Y BIS
fx| =IF(B4="Question 1", Sheet2! H21, if(B4="Question 2", Sheet2! H22, IF(B4="
n
100%
36:816
A
B
C
6
16
A flashlight can light
a circular area of up
to 6 feet in diameter.
What is the maximum
area that can be lit?
Round to the nearest
tenth.
30x
0004
15
A Sheet1
https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.amazon.com%2FSpy-Ninjas-Ultimate-Guidebook-Scholastic%2Fdp
7
8
9
10
11
12
13
14
3
5.
7.
a
5
$9
A
arrow_forward
Country
GNP per cap
Birth Rate
Bangladesh
5200
18
Tanzania
2700
36
Sierra Leone
1770
33
Sudan
3990
32
Kenya
4430
29
Indonesia
11970
18
Panama
15730
19
Chile
14890
12
Venezuela
16054
18
Turkey
9120
16
Malaysia
11410
15
Nepal
1070
19
Malawi
410
34
Argentina
9910
17
Please help me to solve these questions, explain how you achieved this step by step please.Thank you
arrow_forward
. Primary Data Source and Secondary Data Source ?
arrow_forward
complete screenshot please
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Elementary Geometry for College Students
Geometry
ISBN:9781285195698
Author:Daniel C. Alexander, Geralyn M. Koeberlein
Publisher:Cengage Learning
Related Questions
- tion 2 of 15 Last summer, the Smith family drove through seven different states and visited various popular landmarks. The prices of gasoline in dollars per gallon varied from state to state and are listed below. $2.34, $2.75, $2.48, $3.58, $2.87, $2.53, $3.31 Click to download the data in your preferred format. CrunchIt! CSV Excel JMP Mac Text Minitab PC Text R SPSS TI Calc Calculate the range of the price of gas. Give your solution to the nearest cent. range: dollars per gallon DELL & 4. 7 8.arrow_forwardEdit View History Bookmarks Profiles Tab Help Mopu Chrome File A Wiley+ Sect 1.2 - MATH 113 SP X WP NWP Assessment Player UI Ap X + A education.wiley.com/was/ui/v2/assessment-player/index.html?launchld3f36c09dc-6469-453a-b6ca-157633183f59 Section 1.2 SS21 7W2 Question 9 of 9 The maximum heart rate (MHR), is the maximum number of times a person's heart can safely beat in one minute. If M HR is in beats per minute and a is age in years, the formulas used to estimate MHR are: For males: MHR=220 –– a Recently it has been suggested that a more accurate predictor of For females: MHR= 226 – a - MHR for both males and females is given by MHR=208 – 0.7a. - (a) At what age do the old and new formulas give the same MHR for females? For males? Y For females, the MHR is the same in the two formulas at years of age. For males, the MHR is the same in the two formulas at years of age. (b) Which of the following is true? The new formula predicts a lower MHR for young people and a higher MHR for older…arrow_forwardPlease answer the question below in the photoarrow_forward
- Answer the question below in the picturearrow_forwardChrome File Edit View History Bookmarks Profiles Tab Window Help B.1 HW-23FA STATISTICS (81: x + Gmail esc Home - myRCC mylearning.suny.edu/d 21/le/content/920969/viewContent/25846499/View FO A store gathers some demographic information from their customers. The following chart summarizes the age-related information they collected: Age Number of Customers < 20 20-30 30-40 FI 40-50 50-60 X ≥ 60 30 79 F2 62 92 One customer is chosen at random for a prize giveaway. What is the probability that the customer is at least 40 but no older than 60? 20 87 What is the probability that the customer is either older than 40 or younger than 20? 99 What is the probability that the customer is at least 60? Enter your answers as either decimals or fractions, not as percents. www B. SE 51 F3 DOD 000 F4 24 F5 23 MacBook Air gi F6 A4 F7 ▶11 * FBarrow_forwardEdit View History Bookmarks People Window Help nd Masteri ps://open Do Homework - Jaelyn Dancy xl.com/Student/PlayerHomework.aspx?homeworkld-515742856&questionld-18flushed-false&cld-5 Wright MTH112 20217 E-Learning Spring 2019 Jaelyn Dancy Homework: HW - 2.4 ath score: 0 of 1 pt 2.4.43 11 of 12 (10 complete) HW Sco 2 Solve the equation x+2x -5x-6 0 given that 2 is a zero of fx)x 2x-5x -6 The solution set is. (Use a comma to separate answers as needed.) Enter your answer in the answer box and then click Check Answer. All parts showing Clear All 5 MacBook Proarrow_forward
- Can you help me with question (c)???arrow_forwardA family has a phone plan that includes 6 GB of data per month. 15 days into a 30-day month, the family has used 2 GB. At that rate, how many GB will the family use for the entire month? 3 GB 8 GB 6 GB 4 GB Question 3arrow_forwardChap 6 13arrow_forward
- WS 1 Section 6.2 Binomial Worksheet (7) - Word Review View Help Tell me what you want to do AaBbCcD AaBbCcDr AaBbCc AaBbCcD AABI AaBbCcD AaBbCcD 1 Nomal 1 No Spac. Heading 1 Heading 2 Title Subtitle Subtle Em. Paragraph Styles 3. About 14% of people that have a heart attack will die from the attack. If a hospital admits 15 patients that have had a heart attack, find each of the following probabilities. Use the calculator and round to three decimal places. a. The probability that out of the 15, 5 or fewer die. Probability b. The probability that out of the 15, less than 3 die. Probability C. The probability that out of the 15, at least 1 dies. Probability d. Suppose that over the last few years, the hospital has admitted 1500 patients with heart attacks. Find the expected number of these patients that would have died of a heart attack. Interpret this value in a sentence. e. Find the standard deviation in the number of patients that would have died by a heart attack. Round your result to…arrow_forwardhelparrow_forward//$$/$/$/$::$/$:Helppppppparrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Elementary Geometry for College StudentsGeometryISBN:9781285195698Author:Daniel C. Alexander, Geralyn M. KoeberleinPublisher:Cengage Learning

Elementary Geometry for College Students
Geometry
ISBN:9781285195698
Author:Daniel C. Alexander, Geralyn M. Koeberlein
Publisher:Cengage Learning