Suppose that we want to build a model that predicts the group membership of a hurricane, either tropical (0) or non-tropical (1) based on the latitude of formation of the hurricane. The response variable is the binary variable Type.new (type of hurricane) and the predictor variable is FirstLat (First Latitude). Using R, we build a model by applying the glm() function. For the logistic regression model, we specify family - "binomial". The data is available at https://userpage.fu-berlin.de/soga/200/2010_data_sets/hurricanes.xlax. The R code is Iset up filenane my.filename <- pasteo (getwd (),'/', 'my-temporary-dovnloadfile.xlax') I dovnload file my.file <- dovmload.file (url - 'httpa://userpage.fu-berlin.de/soga/200/2010_data_sets/hurricanes.xlsx', destfile - my.filename, mode="wb") * read file into memory iibrary (readxl) hurricanes <- read_excel ('my-temporary-downloadfile.xlsx') log.model <- glm(Type.new- FirstLat, data = hurricanes, £amily = "binomial') summary (log.model) Routput * Call: * glm(formula = Iype.new - Firatlat, family = "binomi al", data = hurricanes) * Deviance Residuals: Min 10 Median ** -2.1841 -0.4954 -0.1664 30 0.4718 Max 3.2397 * Coefficienta Estimate Std. Error z value Pr (>|z|) <2e-16 *** <2e-16 *** * (Intercept) -9.00263 * FirstLat ** --- # Signif. codes: 0 ** 0.001 * 0.01 0.05 . 0.1'1 0.96148 -9.446 9.447 0.37283 0.03947 # (Dispersion parameter for binomial family taken to be 1) Null deviance: 463.11 on 336 degrees of freedom ** Residual deviance: 232.03 on 335 degrees of freedom * AIC: 236.03 * Number of Fisher Scoring iterations: 6 Which of the following is the correct model? I. Type.new = -9.0826 + 0.3728FirstLat, where Type.new = In and p, is the predicted probability of the type of hurricane (Type.now) for the first latitude (FirstLat). II. T'ype.now = 0.9615 + 0.0395FirstLat, where Type. new = in III. Type.new = -9.446 + 9,447FirstLat, where Type.new = In and i, is the predicted probability of the type of hurricane (Type.now) for the first latitude (FirstLat). and p, is the predicted probability of the type of hurricane (Type.new) for the first latitude (FirstLat). 1-P. a. I only ь. П only c. III only d. None of the above

Functions and Change: A Modeling Approach to College Algebra (MindTap Course List)
6th Edition
ISBN:9781337111348
Author:Bruce Crauder, Benny Evans, Alan Noell
Publisher:Bruce Crauder, Benny Evans, Alan Noell
Chapter5: A Survey Of Other Common Functions
Section5.3: Modeling Data With Power Functions
Problem 3TU
icon
Related questions
Question
Suppose that we want to build a model that predicts the group membership of a hurricane, either tropical (0) or non-tropical (1) based on
the latitude of formation of the hurricane. The response variable is the binary variable Type.new (type of hurricane) and the predictor
variable is FirstLat (First Latitude). Using R, we build a model by applying the glm () function. For the logistic regression model, we
specify family = "binomial". The data is available at https:/userpage.fu-berlin.de/soga/200/2010_data_sets hurricanes.xlsx.
The R code is
set up filename
my.filename <- pasteo (getwd (),'/', 'my-temporary-downloadfile.xlax')
I download file
my.file <- download.file (url = 'httpa://userpage.fu-berlin.de/soga/200/2010_data_sets/hurricanes.xlsx',
destfile = my.filename,
mode="wb")
* read file into memory
library (read
hurricanes <- read_excel ('my-temporary-downloadfile.xlsx')
1)
log.model <- glm(Type.new - FirstLat, data = hurricanes, family = "binomial')
summary (log.model)
Routput
* Call:
* glm(formula = Type.new - FirstLat, family = "binomi al", data = hurricanes)
* Deviance Residuals:
10
** -2.1841 -0.4954 -0.1664
Min
30
0.4718
Median
Мах
3.2397
* Coefficienta:
Estimate Std. Error z value Pr (>|z|)
* (Intercept) -9.08263
*# FirstLat
# ---
* Signif. codes:
-9.446
9.447
<2e-16 **.
<2e-16 **.
0.96148
0.37283
0.03947
0 *** 0.001 ** 0.01 * 0.05 '. 0.1 '1
*# (Dispersion parameter for binomial family taken to be 1)
on 336 degrees of freedom
on 335 degrees of freedom
Null deviance: 463.11
# Residual deviance: 232.03
# AIC: 236.03
** Number of Fisher Scoring iterations: 6
Which of the following is the correct model?
I. Type.new = -9.0826 + 0.3728FirstLat,
where Type.new = In and f, is the predicted probability of the type of hurricane (Type.new) for the first latitude (FirstLat).
II. Type.new = 0.9615 + 0.0395FirstLat,
where Type. new =i
III. Type.new = -9.446 + 9.447Firstlat,
where Type.new
and p; is the predicted probability of the type of hurricane (Type.new) for the first latitude (Firstlat).
and p, is the predicted probability of the type of hurricane (Type.new) for the first latitude (FirstLat).
= In
a I only
b. II only
c. III only
d. None of the above
Transcribed Image Text:Suppose that we want to build a model that predicts the group membership of a hurricane, either tropical (0) or non-tropical (1) based on the latitude of formation of the hurricane. The response variable is the binary variable Type.new (type of hurricane) and the predictor variable is FirstLat (First Latitude). Using R, we build a model by applying the glm () function. For the logistic regression model, we specify family = "binomial". The data is available at https:/userpage.fu-berlin.de/soga/200/2010_data_sets hurricanes.xlsx. The R code is set up filename my.filename <- pasteo (getwd (),'/', 'my-temporary-downloadfile.xlax') I download file my.file <- download.file (url = 'httpa://userpage.fu-berlin.de/soga/200/2010_data_sets/hurricanes.xlsx', destfile = my.filename, mode="wb") * read file into memory library (read hurricanes <- read_excel ('my-temporary-downloadfile.xlsx') 1) log.model <- glm(Type.new - FirstLat, data = hurricanes, family = "binomial') summary (log.model) Routput * Call: * glm(formula = Type.new - FirstLat, family = "binomi al", data = hurricanes) * Deviance Residuals: 10 ** -2.1841 -0.4954 -0.1664 Min 30 0.4718 Median Мах 3.2397 * Coefficienta: Estimate Std. Error z value Pr (>|z|) * (Intercept) -9.08263 *# FirstLat # --- * Signif. codes: -9.446 9.447 <2e-16 **. <2e-16 **. 0.96148 0.37283 0.03947 0 *** 0.001 ** 0.01 * 0.05 '. 0.1 '1 *# (Dispersion parameter for binomial family taken to be 1) on 336 degrees of freedom on 335 degrees of freedom Null deviance: 463.11 # Residual deviance: 232.03 # AIC: 236.03 ** Number of Fisher Scoring iterations: 6 Which of the following is the correct model? I. Type.new = -9.0826 + 0.3728FirstLat, where Type.new = In and f, is the predicted probability of the type of hurricane (Type.new) for the first latitude (FirstLat). II. Type.new = 0.9615 + 0.0395FirstLat, where Type. new =i III. Type.new = -9.446 + 9.447Firstlat, where Type.new and p; is the predicted probability of the type of hurricane (Type.new) for the first latitude (Firstlat). and p, is the predicted probability of the type of hurricane (Type.new) for the first latitude (FirstLat). = In a I only b. II only c. III only d. None of the above
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Functions and Change: A Modeling Approach to Coll…
Functions and Change: A Modeling Approach to Coll…
Algebra
ISBN:
9781337111348
Author:
Bruce Crauder, Benny Evans, Alan Noell
Publisher:
Cengage Learning
College Algebra
College Algebra
Algebra
ISBN:
9781938168383
Author:
Jay Abramson
Publisher:
OpenStax
College Algebra
College Algebra
Algebra
ISBN:
9781305115545
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Algebra and Trigonometry (MindTap Course List)
Algebra and Trigonometry (MindTap Course List)
Algebra
ISBN:
9781305071742
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage