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
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...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
Recommended textbooks for you
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON