Project-1
pdf
keyboard_arrow_up
School
Foothill College *
*We aren’t endorsed by this school
Course
103
Subject
Statistics
Date
Jan 9, 2024
Type
Pages
10
Uploaded by ElderFreedomSeahorse
Project 1 | Group 76
Joey Liu, Noemi Loera, Dale Kim
2023-10-15
library
(AER)
## Loading required package: car
## Loading required package: carData
## Loading required package: lmtest
## Loading required package: zoo
##
## Attaching package: ’zoo’
## The following objects are masked from ’package:base’:
##
##
as.Date, as.Date.numeric
## Loading required package: sandwich
## Loading required package: survival
data
(
"MurderRates"
)
summary
(MurderRates
$
income)
##
Min. 1st Qu.
Median
Mean 3rd Qu.
Max.
##
0.760
1.550
1.830
1.781
2.070
2.390
library
(lmtest)
library
(leaps)
library
(HH)
## Loading required package: lattice
## Loading required package: grid
## Loading required package: latticeExtra
1
## Loading required package: multcomp
## Loading required package: mvtnorm
## Loading required package: TH.data
## Loading required package: MASS
##
## Attaching package: ’TH.data’
## The following object is masked from ’package:MASS’:
##
##
geyser
## Loading required package: gridExtra
##
## Attaching package: ’HH’
## The following objects are masked from ’package:car’:
##
##
logit, vif
summary
(MurderRates
$
income)
##
Min. 1st Qu.
Median
Mean 3rd Qu.
Max.
##
0.760
1.550
1.830
1.781
2.070
2.390
hist
(MurderRates
$
income,
main =
"Income Histogram"
)
2
Income Histogram
MurderRates$income
Frequency
1.0
1.5
2.0
0
2
4
6
8
10
boxplot
(MurderRates
$
income)
3
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
1.0
1.5
2.0
5
regsub
<-
regsubsets
(rate
~
.,
method =
"exhaustive"
,
nbest =
2
,
data =
MurderRates)
summaryHH
(regsub)
##
model p
rsq rss adjr2
cp
bic stderr
## 1
s 2 0.588 353 0.578 18.40 -31.4
2.90
## 2
n 2 0.560 377 0.550 22.27 -28.6
2.99
## 3
n-s 3 0.675 278 0.659
8.01 -38.1
2.61
## 4
t-n 3 0.641 308 0.623 12.88 -33.7
2.74
## 5
t-n-s 4 0.705 253 0.683
5.81 -38.6
2.51
## 6
c-n-s 4 0.698 259 0.675
6.84 -37.5
2.54
## 7
c-t-n-s 5 0.729 232 0.701
4.43 -38.5
2.44
## 8
t-i-n-s 5 0.711 247 0.682
6.89 -35.8
2.52
## 9
c-t-i-n-s 6 0.736 226 0.701
5.38 -35.9
2.44
## 10
c-e-t-n-s 6 0.730 231 0.695
6.25 -34.9
2.47
## 11
c-t-i-l-n-s 7 0.744 219 0.703
6.22 -33.5
2.43
## 12
c-e-t-i-n-s 7 0.740 223 0.697
6.88 -32.7
2.46
## 13 c-e-t-i-l-n-s 8 0.746 218 0.696
8.00 -30.0
2.46
##
## Model variables with abbreviations
##
model
## s
southernyes
## n
noncauc
## n-s
noncauc-southernyes
## t-n
time-noncauc
4
## t-n-s
time-noncauc-southernyes
## c-n-s
convictions-noncauc-southernyes
## c-t-n-s
convictions-time-noncauc-southernyes
## t-i-n-s
time-income-noncauc-southernyes
## c-t-i-n-s
convictions-time-income-noncauc-southernyes
## c-e-t-n-s
convictions-executions-time-noncauc-southernyes
## c-t-i-l-n-s
convictions-time-income-lfp-noncauc-southernyes
## c-e-t-i-n-s
convictions-executions-time-income-noncauc-southernyes
## c-e-t-i-l-n-s convictions-executions-time-income-lfp-noncauc-southernyes
##
## model with largest adjr2
## 11
##
## Number of observations
## 44
south
<-
lm
(rate
~
time
+
noncauc
+
southern,
data =
MurderRates)
summary
(south)
##
## Call:
## lm(formula = rate ~ time + noncauc + southern, data = MurderRates)
##
## Residuals:
##
Min
1Q
Median
3Q
Max
## -4.5143 -1.5177 -0.1934
1.4288
6.7320
##
## Coefficients:
##
Estimate Std. Error t value Pr(>|t|)
## (Intercept)
4.419658
1.232067
3.587 0.000901 ***
## time
-0.014227
0.007091
-2.006 0.051600 .
## noncauc
16.256184
4.719997
3.444 0.001358 **
## southernyes
3.548793
1.204250
2.947 0.005333 **
## ---
## Signif. codes:
0 ’***’ 0.001 ’**’ 0.01 ’*’ 0.05 ’.’ 0.1 ’ ’ 1
##
## Residual standard error: 2.514 on 40 degrees of freedom
## Multiple R-squared:
0.7049, Adjusted R-squared:
0.6828
## F-statistic: 31.85 on 3 and 40 DF,
p-value: 1.092e-10
#Ask for clarification when comparing the two
The Rˆ2 for (3) is 0.7459. When compared to (south), it is 0.7049. (3) has a higher Rˆ2 which indicates that
(3) is a better fit of the overall model. However, this could explain (south) to majorly be the explanatory
variable. #Ask for clarification when comparing the two 6.
region
<-
ifelse
(MurderRates
$
southern
==
"yes"
,
1
,
0
)
newReg
<-
lm
(rate
~
time
+
noncauc
+
region,
data =
MurderRates)
plot
(south,
main =
"Plot of South"
)
5
2
4
6
8
10
12
14
-4
-2
0
2
4
6
8
Plot of South
Fitted values
Residuals
lm(rate ~ time + noncauc + southern)
Residuals vs Fitted
1
37
28
6
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
-2
-1
0
1
2
-2
-1
0
1
2
3
Plot of South
Theoretical Quantiles
Standardized residuals
lm(rate ~ time + noncauc + southern)
Q-Q Residuals
1
37
28
7
2
4
6
8
10
12
14
0.0
0.5
1.0
1.5
Plot of South
Fitted values
Standardized residuals
lm(rate ~ time + noncauc + southern)
Scale-Location
1
37
28
8
0.00
0.05
0.10
0.15
0.20
0.25
-2
-1
0
1
2
3
Plot of South
Leverage
Standardized residuals
lm(rate ~ time + noncauc + southern)
Cook's distance
0.5
0.5
1
Residuals vs Leverage
1
43
35
We can see that there is a pattern in the residuals, and they are portraying a cone shape. Further indicating
that the regression is heteroskedastic.
This implies that it is violating Assumption 3 of multiple linear
models: homoskedasticity.
7.
The Reset Hypothesis Test;
H
0
:
β
4
= 0
and
β
5
= 0
versus
H
1
:
β
4
̸
= 0
and/or
β
5
̸
= 0
resettest
(newReg)
##
##
RESET test
##
## data:
newReg
## RESET = 1.1266, df1 = 2, df2 = 38, p-value = 0.3347
Since the p-value is 0.3347, it is greater than the significant value
α
= 0.05. This implies that we fail to
reject the null, that our model is correctly specified.
8.
reg2
<-
lm
(rate
~
convictions
+
executions
+
time
+
income
+
lfp
+
noncauc
+
region,
data =
MurderRates)
#GQ Test to test for Heteroskedasticity
gqtest
(reg2,
point =
0.5
,
alternative=
"greater"
,
order.by =
MurderRates
$
convictions)
9
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
##
##
Goldfeld-Quandt test
##
## data:
reg2
## GQ = 0.32275, df1 = 14, df2 = 14, p-value = 0.9787
## alternative hypothesis: variance increases from segment 1 to 2
#Ask which X(explanatory variable) corresponds with order.by
Since the p-value of the GQ Test is 0.9787, we fail to reject that the variances differ from the two sub-models,
implying that it is heteroskedastic.
10
Related Documents
Related Questions
tab
(2.1-2.6) Target *
← → C
caps lock
YouTube
→1
esc
Home
Maps Kindle
Winter 2023
canvas.seattlecolleges.edu/courses/10176/assignments/81095
Syllabus
Announcements
Modules
Assignments
People
Office 365
Central Learning
Support
Central eTutoring
Zoom 1.3
!
1
X
Q
A
N
Course Hero
2
= Psychology 2e - O... StatCrunch (1.4-1.7) Writing...
W
S
X
Match each scatterplot shown below with one of the four specified correlations.
#
3
C
E
D
O
0 0
xb Answered: You randomly surve X
CO
4
C
R
8
LL
%
5
Search or type URL
V
T
a. -0.45
b. -0.91
c. 0.86
d. 0.35
G
6
MacBook Pro
OF
Y
H
New Tab
&
7
U
00 *
8
J
1
(
9
x +
K
0
0
L
P
arrow_forward
Need help with this worksheet
arrow_forward
x +
admin130.acellus.com/StudentFunctions/Interface/acellus_engine.html?ClassID=1671563231#
e of Learning x
oard A MyACT
mit 4 Exam
New Tab
Geometry M Personal-Email
MUS 100 Playlist
A. SAS
B. Neither
C. SSS
h
O Search
FastWeb Scholarships
Copyright © 2003-2023 International Academy of Science. All Rights Reserved.
8
Scholarship points
Survey Junkie
Choose SSS, SAS,
or neither to
compare these
two triangles.
01
19
L
1
X
0
:
B
11
10:29 PM
^@4) 2/9/2023
arrow_forward
No calculator. Please show all work.
arrow_forward
HCAhdUBrYB cE2JgCq6lOpVi04Ymk5B6c/edit
h's scienc..
RendallStudents - h..
G Home Schoology
Quiz | ReadTheory
Classroom
M Frontier Academy..
8th
☆ 回
T
changing. Starting October 13, items will be automatically deleted forever after they've been in your tr
12
iberal Arts Math
Chapter 2
A
Name
Date
Block
1Non Calculator (must show work for all calculations)
1. Given U={1, 2, 3, 4, 5, 6, 7, 8, 9}, A = {2, 4, 6, 8} and B = {1, 2, 3, 4}
%3D
AUB
A nB
AUB
arrow_forward
solve no 1,3,7,9,13,15,17,19,21,23,27,29,31,35,37
arrow_forward
A Mrs. Marino's HOMERO X
New England Colonies, x
O Florida Standards Asse x
O Meet - wnk-puhn-m
O Student: Test, Page 7
+
A sat158.cloud1.tds.airast.org/student/V975/Pages/TestShell.aspx
lathernatics (APM) SOTO, VICTORIA (Username: 5PZC4)
FL-8904-59
Park
7
SOTO, VICTORIA
Pool
Leila bikes from her house to
Adam's house. Her path follows a
Adam's
house
Leila's
house
straight line. On the way, she
stops at the park and at the pool,
1
in that order.
3
Distance (miles)
4
• Leila bikes 1=
miles from her
5
6
house to the park.
7
Adam's house is
mile(s) from the pool.
• Next, she bikes
of a mile
from the park to the pool.
• Finally, she bikes to Adam's
house, which is 2 miles
from her house.
%
&
arrow_forward
Ultimate Health Plans
ch Plans Mirra Healthcare
X AGLOBALSEARCH | MIRRA
=
User Portal - Call C...
/alekscgi/x/1sl.exe/1o_u-IgNslkr7j8P3jH-IBSmSHQIfbH2xfgdyVelz24_x5rbgiCikTAtqABbYc548rD-S10BrkKJTgeofGCtYPjecUu9rVTYYPrkHHIzQqHrFAGkfKvo?10Bw7QyjlbavbSPXtx-YCjsh_7mMmrq#item
Medicaid Ultimate Health Pla.... NPPES NPI Registry New Time Clock
+NPPES NPI Registry
Speed of the wind: miles/hour
ORATIONAL EXPRESSIONS
Solving a distance, rate, time problem using a rational equation
Explanation
CLAIMS ADJUDICA...
Check
Medicare
McGraw-Hill Campus
X
McGraw-Hill Education Campus X
A plane has a cruising speed of 200 miles per hour when there is no wind. At this speed, the plane flew 500 miles with the wind in the same amount of time it
flew 300 miles against the wind. Find the speed of the wind.
S
ALEKS - Deminika Mesiana - Le
DO 1/3
Deminika V
Ⓒ2022 McGraw Hill LLC. All Rights Reserved. Terms of Use | Privacy Center | Accessibility
Español
? 圖 □图 □ □
S
As
X
arrow_forward
C Clever | Portal
A ALEKS - DARREN HARRIS - Lawc X
+
i www-awa.aleks.com/alekscgi/x/IsLexe/1o_u-lgNslkr78P3JH-UgLUdxlcUe84Tp2eqtVT3Kk4hS-xmWhf4YRmTD01-YICBGUe3Lc4GhtAPjvcnlj8jprAuQn3nLh)XYAFV20p
Law of Sine HW
Question 3 of 12 (1 point) | Question Attempt: 1 of Unlimited
DARREN
v1
v 12
Mountain officials want to build a new ski lift from B to C, as shown in the figure below. The distance from A to C is 1530 feet. They measure angle DAC to be
31° and angle DBC to be 19°. What is the distance from A to B ? Round your answer to the nearest tenth of a foot.
| feet
1530 A.
31°
Check
Save For Later
Submit Assignment
2021 McGraw-H Education. Al Rghts Reserved Terms of Ue Piecy Accessiblty
9:06 PM
O Type here to search
+ ** * +
2.
4.
P
Q
E
R
LLLL
F
G
H
K
caps lock
pause
shift 1
C
alt
alt
ctri
in
arrow_forward
Please address parts (a), (b), and (c)
arrow_forward
HMAC=032c9528a0191feadb322992520426e3#10001
Math 2 - Pre-calculus - Fall 2021
P Do Homework - 3.5 - Google Chrome
A mathxl.com/Student/PlayerHomework.aspx?homeworkld=605433384&questionld=16&iflushed=false&cld=6624506¢erwin=yes
Math 2 - Pre-calculus - Fall 2021
Joseph Thai 2| 09/21/21 5:15 PM
= Homewo
Question 13, 3.5.37
Part 1 of 2
HW Score: 93.75%, 15 of 16 points
* Points: 0 of 1
Save
A projectile fired from the point (0,0) at an angle to the positive X-axis has a trajectory given by y = Cx - (1 + C)
In this formula, x is the
horizontal distance in meters, y is the height in meters, v is the initial velocity in meters per second, g = 9.81 m/sec is the acceleration due to gravit
and C>0 is a constant determined by the angle of elevation.
15
A howitzer fires an artillery round with a velocity of 881 m/sec. Answer parts (a) and (b).
ed
q
(a) If the round must clear a hill 218 meters high at a distance of 2284 meters in front of the howitzer, what C values are permitted in the…
arrow_forward
2.1 quest 2
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,
Related Questions
- tab (2.1-2.6) Target * ← → C caps lock YouTube →1 esc Home Maps Kindle Winter 2023 canvas.seattlecolleges.edu/courses/10176/assignments/81095 Syllabus Announcements Modules Assignments People Office 365 Central Learning Support Central eTutoring Zoom 1.3 ! 1 X Q A N Course Hero 2 = Psychology 2e - O... StatCrunch (1.4-1.7) Writing... W S X Match each scatterplot shown below with one of the four specified correlations. # 3 C E D O 0 0 xb Answered: You randomly surve X CO 4 C R 8 LL % 5 Search or type URL V T a. -0.45 b. -0.91 c. 0.86 d. 0.35 G 6 MacBook Pro OF Y H New Tab & 7 U 00 * 8 J 1 ( 9 x + K 0 0 L Parrow_forwardNeed help with this worksheetarrow_forwardx + admin130.acellus.com/StudentFunctions/Interface/acellus_engine.html?ClassID=1671563231# e of Learning x oard A MyACT mit 4 Exam New Tab Geometry M Personal-Email MUS 100 Playlist A. SAS B. Neither C. SSS h O Search FastWeb Scholarships Copyright © 2003-2023 International Academy of Science. All Rights Reserved. 8 Scholarship points Survey Junkie Choose SSS, SAS, or neither to compare these two triangles. 01 19 L 1 X 0 : B 11 10:29 PM ^@4) 2/9/2023arrow_forward
- No calculator. Please show all work.arrow_forwardHCAhdUBrYB cE2JgCq6lOpVi04Ymk5B6c/edit h's scienc.. RendallStudents - h.. G Home Schoology Quiz | ReadTheory Classroom M Frontier Academy.. 8th ☆ 回 T changing. Starting October 13, items will be automatically deleted forever after they've been in your tr 12 iberal Arts Math Chapter 2 A Name Date Block 1Non Calculator (must show work for all calculations) 1. Given U={1, 2, 3, 4, 5, 6, 7, 8, 9}, A = {2, 4, 6, 8} and B = {1, 2, 3, 4} %3D AUB A nB AUBarrow_forwardsolve no 1,3,7,9,13,15,17,19,21,23,27,29,31,35,37arrow_forward
- A Mrs. Marino's HOMERO X New England Colonies, x O Florida Standards Asse x O Meet - wnk-puhn-m O Student: Test, Page 7 + A sat158.cloud1.tds.airast.org/student/V975/Pages/TestShell.aspx lathernatics (APM) SOTO, VICTORIA (Username: 5PZC4) FL-8904-59 Park 7 SOTO, VICTORIA Pool Leila bikes from her house to Adam's house. Her path follows a Adam's house Leila's house straight line. On the way, she stops at the park and at the pool, 1 in that order. 3 Distance (miles) 4 • Leila bikes 1= miles from her 5 6 house to the park. 7 Adam's house is mile(s) from the pool. • Next, she bikes of a mile from the park to the pool. • Finally, she bikes to Adam's house, which is 2 miles from her house. % &arrow_forwardUltimate Health Plans ch Plans Mirra Healthcare X AGLOBALSEARCH | MIRRA = User Portal - Call C... /alekscgi/x/1sl.exe/1o_u-IgNslkr7j8P3jH-IBSmSHQIfbH2xfgdyVelz24_x5rbgiCikTAtqABbYc548rD-S10BrkKJTgeofGCtYPjecUu9rVTYYPrkHHIzQqHrFAGkfKvo?10Bw7QyjlbavbSPXtx-YCjsh_7mMmrq#item Medicaid Ultimate Health Pla.... NPPES NPI Registry New Time Clock +NPPES NPI Registry Speed of the wind: miles/hour ORATIONAL EXPRESSIONS Solving a distance, rate, time problem using a rational equation Explanation CLAIMS ADJUDICA... Check Medicare McGraw-Hill Campus X McGraw-Hill Education Campus X A plane has a cruising speed of 200 miles per hour when there is no wind. At this speed, the plane flew 500 miles with the wind in the same amount of time it flew 300 miles against the wind. Find the speed of the wind. S ALEKS - Deminika Mesiana - Le DO 1/3 Deminika V Ⓒ2022 McGraw Hill LLC. All Rights Reserved. Terms of Use | Privacy Center | Accessibility Español ? 圖 □图 □ □ S As Xarrow_forwardC Clever | Portal A ALEKS - DARREN HARRIS - Lawc X + i www-awa.aleks.com/alekscgi/x/IsLexe/1o_u-lgNslkr78P3JH-UgLUdxlcUe84Tp2eqtVT3Kk4hS-xmWhf4YRmTD01-YICBGUe3Lc4GhtAPjvcnlj8jprAuQn3nLh)XYAFV20p Law of Sine HW Question 3 of 12 (1 point) | Question Attempt: 1 of Unlimited DARREN v1 v 12 Mountain officials want to build a new ski lift from B to C, as shown in the figure below. The distance from A to C is 1530 feet. They measure angle DAC to be 31° and angle DBC to be 19°. What is the distance from A to B ? Round your answer to the nearest tenth of a foot. | feet 1530 A. 31° Check Save For Later Submit Assignment 2021 McGraw-H Education. Al Rghts Reserved Terms of Ue Piecy Accessiblty 9:06 PM O Type here to search + ** * + 2. 4. P Q E R LLLL F G H K caps lock pause shift 1 C alt alt ctri inarrow_forward
- Please address parts (a), (b), and (c)arrow_forwardHMAC=032c9528a0191feadb322992520426e3#10001 Math 2 - Pre-calculus - Fall 2021 P Do Homework - 3.5 - Google Chrome A mathxl.com/Student/PlayerHomework.aspx?homeworkld=605433384&questionld=16&iflushed=false&cld=6624506¢erwin=yes Math 2 - Pre-calculus - Fall 2021 Joseph Thai 2| 09/21/21 5:15 PM = Homewo Question 13, 3.5.37 Part 1 of 2 HW Score: 93.75%, 15 of 16 points * Points: 0 of 1 Save A projectile fired from the point (0,0) at an angle to the positive X-axis has a trajectory given by y = Cx - (1 + C) In this formula, x is the horizontal distance in meters, y is the height in meters, v is the initial velocity in meters per second, g = 9.81 m/sec is the acceleration due to gravit and C>0 is a constant determined by the angle of elevation. 15 A howitzer fires an artillery round with a velocity of 881 m/sec. Answer parts (a) and (b). ed q (a) If the round must clear a hill 218 meters high at a distance of 2284 meters in front of the howitzer, what C values are permitted in the…arrow_forward2.1 quest 2arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Mathematics For Machine TechnologyAdvanced MathISBN:9781337798310Author:Peterson, John.Publisher:Cengage Learning,

Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,