Use this output to answer the questions below. Analysis of Deviance Table Model 1: Homicides ~ Police + MedHome + Mayor Model 2: Homicides ~ Police + MedHome + Mayor + Police:Mayor Resid. Df Resid. Dev Df Deviance Pr(>Chi) 1 16 406.87 2 15 379.47 1 27.4 0.000 f. Now we want to test if coefficient on the interaction term between Mayor and Police is equal to 0. Using the deviance results in the table above, describe how you would construct a test statistic and what distribution that test statistic approximately follows.
Use this output to answer the questions below. Analysis of Deviance Table Model 1: Homicides ~ Police + MedHome + Mayor Model 2: Homicides ~ Police + MedHome + Mayor + Police:Mayor Resid. Df Resid. Dev Df Deviance Pr(>Chi) 1 16 406.87 2 15 379.47 1 27.4 0.000 f. Now we want to test if coefficient on the interaction term between Mayor and Police is equal to 0. Using the deviance results in the table above, describe how you would construct a test statistic and what distribution that test statistic approximately follows.
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question

Transcribed Image Text:Use this output to answer the questions below.
Analysis of Deviance Table
Model 1: Homicides ~ Police + MedHome + Mayor
Model 2: Homicides ~ Police + MedHome + Mayor + Police:Mayor
Resid. Df
Resid. Dev
Df
Deviance
Pr (>Chi)
1
16
406.87
15
379.47
1
27.4
0.000
f. Now we want to test if coefficient on the interactiom term between Mayor and Police is equal to
0. Using the deviance results in the table above, describe how you would construct a test statistic
and what distribution that test statistic approximately follows.
![The Federal Bureau of Investigation (FBI), as part of its internal security mission,
serves as a database for all the reported crimes committed in the United States. One question
that might be of interest is does having more police officers reduce the number of homicides? To
investigate this claim, the 2013 data from the twenty largest municipal cities was supplied by the
FBI's Uniform Crime Report. Below are two observations from the dataset:
> head (cities)
City
Pop Homicides
Police
Density MedHome Mayor
1
New York
8175.133
335
4.2595
27016.30
5.5390
1
2
Chicago
2695.598
414
4.4309
11843.58
1.8310
The variables included in the study are:
Name of city
Population of city in 1,000s of people
Number of homicides in the year 2013
Number of police officers per 1,000 people
Number of people per square mile
Median home price in $100,000
1 if city has a "Strong Mayor" form of government; 0 if not
City
Рор
Homicides
Police
Density
MedHome
Мayor
Model: log(u;) = Bo + B1Police; + B2MedHome; + B3I(Mayor;) + log(Pop;)
mod1
glm (Homicides ~ Police + MedHome + Mayor, family=poisson, offset=log (Pop))
Coefficients:
Estimate Std. Error z value Pr(>]z|)
(Intercept) -2.19745
0.35530
-6.185 1.31e-05
Police
0.05424
0.11390
0.476 0.640352
i
MedHome
-0.28076
0.05630
-4.987 0.000134
Мayor
0.60000
0.31171
1.925 0.072219
(Dispersion parameter for poisson family taken to be 1)](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ff2db349d-44e2-4dc0-ad50-be44fa6802da%2F7ae84313-a9fb-47ba-96ad-af2dc2efdfe0%2Foc78p7r_processed.png&w=3840&q=75)
Transcribed Image Text:The Federal Bureau of Investigation (FBI), as part of its internal security mission,
serves as a database for all the reported crimes committed in the United States. One question
that might be of interest is does having more police officers reduce the number of homicides? To
investigate this claim, the 2013 data from the twenty largest municipal cities was supplied by the
FBI's Uniform Crime Report. Below are two observations from the dataset:
> head (cities)
City
Pop Homicides
Police
Density MedHome Mayor
1
New York
8175.133
335
4.2595
27016.30
5.5390
1
2
Chicago
2695.598
414
4.4309
11843.58
1.8310
The variables included in the study are:
Name of city
Population of city in 1,000s of people
Number of homicides in the year 2013
Number of police officers per 1,000 people
Number of people per square mile
Median home price in $100,000
1 if city has a "Strong Mayor" form of government; 0 if not
City
Рор
Homicides
Police
Density
MedHome
Мayor
Model: log(u;) = Bo + B1Police; + B2MedHome; + B3I(Mayor;) + log(Pop;)
mod1
glm (Homicides ~ Police + MedHome + Mayor, family=poisson, offset=log (Pop))
Coefficients:
Estimate Std. Error z value Pr(>]z|)
(Intercept) -2.19745
0.35530
-6.185 1.31e-05
Police
0.05424
0.11390
0.476 0.640352
i
MedHome
-0.28076
0.05630
-4.987 0.000134
Мayor
0.60000
0.31171
1.925 0.072219
(Dispersion parameter for poisson family taken to be 1)
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Recommended textbooks for you

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning

Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning

Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON

The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman

Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman