response variable. Garage is a categorical predictor, logprice and main.living.area are numerical predictors. > table (Garage)...
Fantastic news! We've Found the answer you've been seeking!
Question:
![image text in transcribed](https://s3.amazonaws.com/si.experts.images/answers/2024/05/6647d3c1357ff_2976647d3c10d396.jpg)
![image text in transcribed](https://s3.amazonaws.com/si.experts.images/answers/2024/05/6647d3c1a5976_2976647d3c17e616.jpg)
Transcribed Image Text:
response variable. Garage is a categorical predictor, logprice and main.living.area are numerical predictors. > table (Garage) Garage No Yes 1516 1484 > table (Bricks) Bricks No 2797 Yes 203 > m6.1 summary(m6.1) Call: glm(formula = factor (Garage) ~ logprice + total.full + Bricks, family = binomial(), data = Housing) Coefficients: Estimate Std. Error z value Pr(>|z|) (Intercept) -3.819e+01 Togprice 3.147e+00 total.full 7.245e-06 BricksYes -1.392e+00 1.669e+00 -22.877 1.428e-01 9.205e-07 2.064e-01 (Dispersion parameter for binomial Null deviance: 4158.5 on 2999 Residual deviance: 2414.0 on 2996 < 2e-16 *** 22.044 < 2e-16 *** 7.871 3.52e-15 *** -6.747 1.51e-11 *** family taken to be 1) degrees of freedom degrees of freedom a) State the null and the alternative hypotheses for the difference in deviances that can be used to compare nested models in m6.1. Perform the test. Using R to get the critical value: chisq(0.95,3) = 7.814728. b) Calculate Rev for the logistic regression model m6.1. c) Using the 33th data point to answer this part of question 6, where Yes is the "success". > Housing [33,c(1,9,10,12)] total.full 33 209500 logprice 7.455877 Bricks No Garage Yes i. Calculate the fitted value of the 33th data point. (probability of success) ii. Calculate the odd of the 33th data point. iii. What would you classify the garage status of the house in the 33th data point using m6.1 model? Threshold is 0.5" d) Based on the following R code: > GarageNoYes 0.5, "YES", "NO") > table (GarageNoYes, Garage) GarageNoYes NO YES Garage No 1258 258 Yes 186 1298 Calculate the misclassification error rate. What does 258 represent? i) ii) Does that tell you anything about the error tendencies that m6.1 have? iii) Based on the confusion matrix above, do you think model m6.1 is a good classifier? Justify your answer. response variable. Garage is a categorical predictor, logprice and main.living.area are numerical predictors. > table (Garage) Garage No Yes 1516 1484 > table (Bricks) Bricks No 2797 Yes 203 > m6.1 summary(m6.1) Call: glm(formula = factor (Garage) ~ logprice + total.full + Bricks, family = binomial(), data = Housing) Coefficients: Estimate Std. Error z value Pr(>|z|) (Intercept) -3.819e+01 Togprice 3.147e+00 total.full 7.245e-06 BricksYes -1.392e+00 1.669e+00 -22.877 1.428e-01 9.205e-07 2.064e-01 (Dispersion parameter for binomial Null deviance: 4158.5 on 2999 Residual deviance: 2414.0 on 2996 < 2e-16 *** 22.044 < 2e-16 *** 7.871 3.52e-15 *** -6.747 1.51e-11 *** family taken to be 1) degrees of freedom degrees of freedom a) State the null and the alternative hypotheses for the difference in deviances that can be used to compare nested models in m6.1. Perform the test. Using R to get the critical value: chisq(0.95,3) = 7.814728. b) Calculate Rev for the logistic regression model m6.1. c) Using the 33th data point to answer this part of question 6, where Yes is the "success". > Housing [33,c(1,9,10,12)] total.full 33 209500 logprice 7.455877 Bricks No Garage Yes i. Calculate the fitted value of the 33th data point. (probability of success) ii. Calculate the odd of the 33th data point. iii. What would you classify the garage status of the house in the 33th data point using m6.1 model? Threshold is 0.5" d) Based on the following R code: > GarageNoYes 0.5, "YES", "NO") > table (GarageNoYes, Garage) GarageNoYes NO YES Garage No 1258 258 Yes 186 1298 Calculate the misclassification error rate. What does 258 represent? i) ii) Does that tell you anything about the error tendencies that m6.1 have? iii) Based on the confusion matrix above, do you think model m6.1 is a good classifier? Justify your answer.
Expert Answer:
Posted Date:
Students also viewed these mathematics questions
-
Ice Cool produces two different models of air conditioners. The activities, costs, and cost drivers associated with the production processes follow. Budgeted Activity Usage 7,600 Activity Machining...
-
Season tickets for the Wildcats are priced at $320 and include 16 games. Revenue is recognized after each game is played. When the season began, the amount credited to Unearned Ticket Revenue was...
-
A $1,000 par value bond sells for $1,216. It matures in 20 years, has a 14% coupon, pays interest semiannually and can be called in 5 years at a price of $1,100. What is the bond's Yield to maturity?
-
In each of four independent cases, the amount of differential revenue or differential cost is as follows (parentheses indicate decreases): For each case, determine the missing amount that would be...
-
The following trial balance of Sergei Asbrecht Co. does not balance. Each of the listed accounts has a normal balance per the general ledger. An examination of the ledger and journal reveals the...
-
population has mean 16 and standard deviation 1.7. Find the mean and SEM for samples of size 80. Find the probability that the mean of a sample of size 80 will be more than 16.4.
-
A standard pendulum of length L swinging under only the influence of gravity (no resistance) has a period of Where w2 = g/L, k2 = sin2 (60/2), g 9.8 m/s2 is the acceleration due to gravity, and GO is...
-
What is a hook or grabber? Provide examples and explain why they are useful?
-
Maximum margin example i. p>=$2: 50% margin loan(brokerage can lend money which equals 50% of security) ii. $1.75
-
What are the most important elements of ethical communication and collaborating with others to generate ideas?
-
Think critically about the sociological theories of deviance, the various forms of social control, and the U.S. Criminal Justice System among other themes presented: Discuss how sociologists view,...
-
Material Master Data is the most commonly used master data in an organization because material is bought, sold, produced and planned for. What is FALSE about Material Master Data?
-
Determine the volume of the solid generated by rotating function f(x) = 36 - 2? about the x-axis on [3,6]. Volume = Determine the volume of the solid generated by rotating function f(x) = V36 - x...
-
For Problem estimate the change in y for the given change in x. y = f(x), f'(12) = 30, x increases from 12 to 12.2
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App