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

  Identify and describe at least three initiatives

Identify and describe at least three initiatives that have been taken by the Office of the National Coordinator to promote the nationwide exchange of health data. How will these initiatives contribute to improved quality, safety, and efficiency o..

  Develop and describe six stress management techniques

Develop and describe six stress management techniques for a 40 year old Japanese woman who is Type A.  consider gender, age and culture.  two full pages, APA, reference

  Cardiac failure

Mr Ward is a 71 year old male who reports feeling a non-radiating, -heavy- discomfort in the lower retrosternal and epigastric region particularly when he bends over or walks short distances.

  The asteriod in orbit around the sun

What force acts to hold the asteriod in orbit around the Sun? What direction does this force act?

  General hazards of machines with specific emphasis

Summarize general hazards of machines with specific emphasis on the concepts of safeguarding by location or distance. Explain the complexities and difficulties in enforcing standards for lifting. Use specific examples to support your answer.

  Several reputable institutions have determined

Several reputable institutions have determined that marijuana may have legitimate medical use

  Using motivation to improve performance

Motivation is a complex subject, but its understanding and application is central to the success of management and organizational success. Imagine that you have been tasked by the CEO of your organization (current or past) with recommending action..

  Waste materials on soil and water quality

Select two waste products and two fossil fuels. Describe the effects of your selected waste materials on soil and water quality.  Explain how your selected waste materials and fossil fuels affect biological diversity in the environment.

  Pharmacologic interventions for hypercholesterolemia

How many residents in Queens will need fasting lipoprotein analysis and dietary and pharmacologic interventions for hypercholesterolemia?

  Explain how the organizational culture influences decision

Explain how the organizational culture influences decision making

  Obesity related health issues

What cultural factors contribute to both the problems of and solutions to obesity among the poor?

  A class in alcohol drug abuse & social behavior

A class in Alcohol, Drug Abuse & Social Behavior. I need assistance  in writing a paper on a personal reaction or response from attending an AA meeting. Paper has to be in APA format and 1-1/2 in page length. No reference needed. No plagiarism! Paper..

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