Homework3
pdf
keyboard_arrow_up
School
Montgomery College *
*We aren’t endorsed by this school
Course
101
Subject
Statistics
Date
Apr 3, 2024
Type
Pages
3
Uploaded by GrandSparrowMaster909
Student Survey
MA
2024-02-05
Set the working directory:
1. Download “StudentSurvey.csv” to your computer.
2. Set Working directory to the folder you saved your file in.
3. read the file using read.csv command.
Instructions:
Read the StudentSurvey into this markdown and answers the following questions
#read the file
my_data <- read.csv("StudentSurvey.csv")
Check the data structure:
#check the head of the data set
head(my_data)
## Year Sex Smoke Award HigherSAT Exercise TV Height Weight Siblings
## 1 Senior M No Olympic Math 10 1 71 180 4
## 2 Sophomore F Yes Academy Math 4 7 66 120 2
## 3 FirstYear M No Nobel Math 14 5 72 208 2
## 4 Junior M No Nobel Math 3 1 63 110 1
## 5 Sophomore F No Nobel Verbal 3 3 65 150 1
## 6 Sophomore F No Nobel Verbal 5 4 65 114 2
## BirthOrder VerbalSAT MathSAT SAT GPA Pulse Piercings
## 1 4 540 670 1210 3.13 54 0
## 2 2 520 630 1150 2.50 66 3
## 3 1 550 560 1110 2.55 130 0
## 4 1 490 630 1120 3.10 78 0
## 5 1 720 450 1170 2.70 40 6
## 6 2 600 550 1150 3.20 80 4
#check the dimensions
dim(my_data)
## [1] 79 17
#create a table of students'sex and "HigherSAT"
sex_High_sat<- table(my_data$Sex, my_data$HigherSAT)
sex_High_sat
## ## Math Verbal
## F 25 15
## M 24 15
# Display summary statistics for VerbalSAT
Sat_summary <- summary(my_data$VerbalSAT)
Sat_summary
## Min. 1st Qu. Median Mean 3rd Qu. Max. ## 420.0 550.0 580.0 583.2 630.0 720.0
#Find the average GPA of students
abv_gpa<- mean(my_data$GPA, na.rm = TRUE)
abv_gpa
## [1] 3.169114
#Create a new datafreame "column_df" that contains students' weight and number of hours the exer
cise library
(dplyr)
## ## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## ## filter, lag
## The following objects are masked from 'package:base':
## ## intersect, setdiff, setequal, union
column_df<- select(my_data, Weight, Exercise)
head(column_df)
## Weight Exercise
## 1 180 10
## 2 120 4
## 3 208 14
## 4 110 3
## 5 150 3
## 6 114 5
#access the fourth element in the first column
element <-my_data [4,1 ]
element
## [1] "Junior"
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
You've heard of "Florida Man;" now meet "Florida Bear." This problem involves data from a
subspecies of black bear found in Florida, Ursus americanus floridanus. The data were collected by T. D.
Bartareau as part of a study published in the Journal of Fish and Wildlife Management (2017, vol 8, pp 234-
239). Before you begin consult the info sheet included at the end
(a) Do you predict an allometric or isometric scaling relationship between body weight and body length?
Explain.
(b) Based on your answer to part a, what would a plot of log body weight (vertical axis) versus log body length
(horizontal axis) look like?
(c) Using the data provided, create a plot of log body weight versus log body length. Make sure to label the
axes. Why might someone think your plot fails to provide clear support for your claim in part b?
(d) Using the tools described on the info sheet to isolate portions of the dataset, refine your use of data in part
c to strengthen support for your claim in b. Why does…
arrow_forward
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
Johnson Filtration, Inc. provides maintenance service for water-filtration systems. Suppose that in addition to information on the
number of months since the machine was serviced and whether a mechanical or an electrical repair was necessary, the managers
obtained a list showing which repairperson performed the service. The revised data follow.
Click on the datafile logo to reference the data.
DATA file
Repair Time
Months Since
in Hours
Last Service
Type of Repair
Repairperson
2.9
Electrical
Dave Newton
3.0
Mechanical
Dave Newton
4.8
8.
Electrical
Bob Jones
1.8
Mechanical
Dave Newton
2.9
Electrical
Dave Newton
4.9
Electrical
Bob Jones
4.2
6.
Mechanical
Bob Jones
4.8
8.
Mechanical
Bob Jones
4.4
4.
Electrical
Bob Jones
4.5
Electrical
Dave Newton
a. Ignore for now the months since the last maintenance service (1 ) and the repairperson who performed the service. Develop the
estimated simpe linear regression equation to predict the repair time (y) given the type of repair (2 ). Recall that…
arrow_forward
can you write it on a paper or make it clear
arrow_forward
Please show the work for each wuestion
arrow_forward
In IBM SPSS, what does clicking on this icon do?
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Algebra: Structure And Method, Book 1
Algebra
ISBN:9780395977224
Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:McDougal Littell
Related Questions
- You've heard of "Florida Man;" now meet "Florida Bear." This problem involves data from a subspecies of black bear found in Florida, Ursus americanus floridanus. The data were collected by T. D. Bartareau as part of a study published in the Journal of Fish and Wildlife Management (2017, vol 8, pp 234- 239). Before you begin consult the info sheet included at the end (a) Do you predict an allometric or isometric scaling relationship between body weight and body length? Explain. (b) Based on your answer to part a, what would a plot of log body weight (vertical axis) versus log body length (horizontal axis) look like? (c) Using the data provided, create a plot of log body weight versus log body length. Make sure to label the axes. Why might someone think your plot fails to provide clear support for your claim in part b? (d) Using the tools described on the info sheet to isolate portions of the dataset, refine your use of data in part c to strengthen support for your claim in b. Why does…arrow_forwardtion 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_forwardJohnson Filtration, Inc. provides maintenance service for water-filtration systems. Suppose that in addition to information on the number of months since the machine was serviced and whether a mechanical or an electrical repair was necessary, the managers obtained a list showing which repairperson performed the service. The revised data follow. Click on the datafile logo to reference the data. DATA file Repair Time Months Since in Hours Last Service Type of Repair Repairperson 2.9 Electrical Dave Newton 3.0 Mechanical Dave Newton 4.8 8. Electrical Bob Jones 1.8 Mechanical Dave Newton 2.9 Electrical Dave Newton 4.9 Electrical Bob Jones 4.2 6. Mechanical Bob Jones 4.8 8. Mechanical Bob Jones 4.4 4. Electrical Bob Jones 4.5 Electrical Dave Newton a. Ignore for now the months since the last maintenance service (1 ) and the repairperson who performed the service. Develop the estimated simpe linear regression equation to predict the repair time (y) given the type of repair (2 ). Recall that…arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Algebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal Littell

Algebra: Structure And Method, Book 1
Algebra
ISBN:9780395977224
Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:McDougal Littell