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

  Examine the effects of the actions taken

Select a workplace hazard with which you are familiar. Using the problem solving methodology below, discuss how you would approach each step for the hazard you selected.

  Create a better balance between work and family

Create a better balance between work and family

  The rising or the declining power

The rising or the declining power

  Some risks from taking dietary supplements

What are the government regulations surrounding dietary supplements?

  Discuss whether a successful market economy

Discuss whether a successful market economy can develop in a non-democratic authoritarian political system. Provide examples.

  The retinal ganglion

The retinal ganglion cells in the nasal hemiretina project ipsilaterally to the lateral geniculate nucleus of the thalamus and the retinal ganglion cells in the temporal hemiretina project ipsilaterally to the lateral geniculate nucleus.

  Find the recession velocity of a galaxy

Using a value for Hubble's constant of 72 km/s/Mpc, find the recession velocity of a galaxy at a distance of 40 Mpc

  An increase in awareness of sexual dysfunction

Medication for erectile dysfunction can lead to ( a ) an increase in adultery ( b ) an increase in STDS ( c)all of these ( d ) an increase in awareness of sexual dysfunction

  How would you define a vulnerable population

How would you define a vulnerable population? What barriers may prevent these groups from obtaining needed services? What experiences have you had with vulnerable groups in your own life?

  Production schedule that minimizes production

Establish a production schedule that minimizes production and inventory costs and satisfies the labor-smoothing, demand, and inventory requirements. What inventories will be maintained, and what are the monthly labor requirements?

  Addresses a specific social problem

Write and 8-page research paper that addresses a specific social problem and investigates possible solutions to the problem. My topic is Alcoholism and Drug Addiction. The paper should include at least 5 scholarly sources and should be formatt..

  Terms important to hrm

What was the most interesting fact or concept you learned this term that you didn't know coming into the course? Why did you find it interesting?

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