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

A First Course in Probability (10th Edition)
10th Edition
ISBN:9780134753119
Author:Sheldon Ross
Publisher:Sheldon Ross
Chapter1: Combinatorial Analysis
Section: Chapter Questions
Problem 1.1P: a. How many different 7-place license plates are possible if the first 2 places are for letters and...
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
A First Course in Probability (10th Edition)
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
A First Course in Probability
A First Course in Probability
Probability
ISBN:
9780321794772
Author:
Sheldon Ross
Publisher:
PEARSON