Create a confusion matrix for these predictions

Assignment Help Science
Reference no: EM131164236

Unless otherwise stated, you can use R for any of the calculations, but make sure you include your code. Your code should not be a copy of anyone else's! Any code you turn in should be well organized and commented so the grader can understand your answers.

All programming questions should be submitted to the dropbox on ANGEL for this assignment as a .pdf file using the naming convention HWNum_FirstInitialLastName.pdf. For example, John Doe would submit a file titled HW1_JDoe.pdf for the first assignment. Your answer to programming questions should include both code and a description of your result. I recommend using R-markdown for writing up your answers. A template for writing up an assignment in R-markdown can be found on ANGEL. R-markdown files can be compiled directly within R-Studio. Alternatively, answers may be saved in a word document or LaTeX, and converted into a .pdf file.

Non-coding questions can either be written and submitted in the same file as your coding questions using LaTeX typesetting (see https://latex-project.org/intro.html) or they may be handwritten and turned in separately during class.

1. Load the "wine.Rdata" dataset. This dataset contains the wine chemical and physical attributes for 1,599 red wines as well as a quality assessment (quality = 1: good, 0 = poor).

(a) Fit a logistic regression model with wine quality taken as the response, and the remaining variables as covariates.

(b) Clearly state the statistical model definition for this logistic regression model. Include any relevant assumptions.

(c) Interpret the model coefficients. What does this output indicate about the marginal association between each covariate and the mean response?

(d) Predict the probability that the response is of high quality under the following covariate settings.

(e) Use the predict() function to get predicted probabilities from the fitted model.

Using the following decision rule, transform the predicted probabilities into predicted response values. Create a confusion matrix for these predictions (i.e. true positives, false positives, true negatives, false negatives).

2. The board of directors of a professional association conducted a random sample survey of 30 members to assess the effects of several possible amounts of changes in membership dues. The predictor X denotes, in dollars, the change in annual dues from the previous year posited in the survey interview, and the response is binary: Y = 1 if the interviewee indicated that the membership will NOT be renewed at that amount of change in dues and Y = 0 if the membership will be renewed. The output for fitting the logistic regression model is given below. Use this to answer the following questions.

(a) Write the estimated equation as a function of X for i. The log-odds of not renewing a membership

ii. The odds of not renewing a membership

iii. The probability of not renewing a membership

(b) Estimate the probability that someone does NOT renew their membership when the annual dues increase by $32.

(c) Estimate the odds that someone does NOT renew their membership when the annual dues increase by $32

(d) Estimate the probability and odds that someone DOES renew their membership when the annual dues increase by $5

(e) Find the odds ratio of renewal for a scenario where the annual increase is $5 against one where the annual increase is $10.

(f) Estimate the increase in annual dues for which 75% of the members are expected to not renew their membership.

(g) Conduct a Wald test to determine whether dollar increase in dues is related to the probability of membership renewal. In your answer, state the null and alternative hypotheses, the test statistic, p-value, and conclusion based on (1) α = 0.05 and (2) α = 0.1.

Reference no: EM131164236

Questions Cloud

What rate of return will dr stein need to achieve this goal : Mr. Smith has just invested $20,000 for his son (age 7).- What rate of return will Dr. Stein need to achieve this goal?
Discuss lg electronics possible considerations : Discuss LG Electronics possible considerations & strategy; specific to the market, product, and consumer(s), prior to entering the China market and now U.S. Market;
What current mechanisms exist to reduce nonsampling risk : What current mechanisms exist to reduce nonsampling risk? When is nonsampling risk most likely to be a problem? What are the risks when auditors selectively decide not to project certain errors?
Perform a search of a ceo : Perform a search of a CEO who has received a golden parachute. And Who was the CEO?
Create a confusion matrix for these predictions : Clearly state the statistical model definition for this logistic regression model. Include any relevant assumptions. Interpret the model coefficients. What does this output indicate about the marginal association between each covariate and the mean..
Find the pressure difference between the two points : Knowing the speed at point 1 of a fluid upstream of a sphere and the average speed at point 2 in the wake of in the sphere, can one use the Bernoulli equation to find the pressure difference between the two points? Provide the rationale for your d..
What are the reasons for a firm having lower cash : What are the reasons for a firm having lower cash from operations than working capital from operations? What are the possible interpretations of these reasons?
Find current trend of company restating financial statements : Evaluate the current trend of companies restating financial statements. Indicate the key drivers of this trend. Predict the trend over the next five years, providing support for your rationale.
Leadership and audience outreach techniques : Explain how the use of leadership and audience outreach techniques used in the communication were appropriate or inappropriate and explain their effectiveness.

Reviews

Write a Review

Science Questions & Answers

  Journal of pharmaceutical sciences

This journal is a scientific publication of Indian Pharmaceutical Association and highlights various bright points of it.

  Optical fibres

This document discuss about the main attributes and characteristics of optical fibres.

  Micro organisms

This project report reveals the fact and proves a specific objective mentioned to be studied upon.

  Describing histology of an organ

The discussion of the technique should include a literature review on the evolution of the technique.

  Interpret the sensitivity of mammography

Calculate and interpret the sensitivity of mammography. Diagnostic test with Sensitivity 50%, Specificity 50% and prevalence 50%. Crude mortality rate. Damage caused by motor vehicle accidents.

  Discuss the role that science plays in your daily life

Role that science plays in your daily life and Integrity, Intensity, Innovation, and involvement in scientific field

  Prepare a flexible budget gator divers

Prepare a Flexible Budget Gator Divers is a company that provides diving services such as underwater ship repairs to clients in the Tampa Bay area.

  Neurological disorders

Designing a neuroprosthesis for the neurological disorders

  Complexity of cell surfaces

Lipid rafts provide another example of the complexity of cell surfaces in both their structural character and biologic functionality. Please explain the nature of these structures and their functionality.

  Exploratory activity on bird beaks

Describe how natural selection and evolution are demonstrated by this activity

  Spatial and temporal variation of heat content in the upper

In this study the temporal and spatial variation of heat content in the upper 70m layer of the Arabian Sea was for a period of 1991 to 2008 have been attempted.

  Earthquake databases

Earthquake Databases

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd