See attached files…
Overview
In each module, you will be learning about different statistical functions in R. You will apply these functions to specific data sets, creating models that can be used to understand and solve real-world problems. You will gain practice creating a model, reporting and interpreting its statistics, evaluating its significance, and using it to make predictions.
Note: Begin working on the readings and the problem set early each week. This will help make sure that you are prepared for the weekly discussion.
Prompt
In this activity, you will explore a logistic regression model that has been created for you. Then you will be asked to create your own logistic regression models, and write a mini-report based on your findings.
1. Access the R scripts for this problem set by using the Jupyter Notebook link in Module Five. In your Jupyter Notebook, you have been given a set of steps that explains how to create a logistic regression model. Go through each step, examining the scripts and their output. If you are not sure how a specific script works or how to understand the output of a script, review the readings. Reach out to your instructor if you need additional help.
2. Review the
Module Five Problem Set Report template
to understand the questions that you will need to answer for this assignment. Then, write your own scripts to create the logistic regression models described in the report. Refer to the scripts that you were given as examples to guide your work.
3. Use the outputs of your scripts to answer all of the questions in your problem set report. The report has been divided into several sections. Each section contains questions to guide your analysis. Be sure to fully answer all of the questions and complete the following sections:
· Introduction: Communicate all ideas by presenting the context of your analyses.
· Reporting Results: Report the results of the model by listing and interpreting various model statistics.
· Evaluating Model Significance: Evaluate the significance of the model by reporting parameter estimates and performing hypothesis testing for each estimate and the overall model.
· Making Predictions Using the Model: Make predictions based on the model by reporting prediction values.
· Conclusion: Communicate all ideas by summarizing and interpreting the practical implications of the results.
Guidelines for Submission
You will submit your completed problem set report as a Word document. Use 11-point Calibri font and one-inch margins. You must use the equation editor where appropriate.
You will also submit the HTML file containing the outputs of your R scripts from the Jupyter Notebook.
MAT 303 Module Five Problem Set Report
Logistic Regression
[Your Full Name]
[Your SNHU Email]
Southern New Hampshire University
Note: Replace the bracketed text on page one (the cover page) with your personal information.
Discuss the statement of the problem with regard to the statistical analyses that are being performed. Address the following questions in your analysis:
· What is the data set that you are exploring?
· How might your results be used?
· What type of analyses will you be running in this problem set?
Answer the questions in a paragraph response. Remove all questions and this note before submitting! Do not include R code in your report.
There are some important variables that you have been asked to analyze in this problem set. Identify and explain these variables. Address the following questions in your analysis:
· What are the important variables in this data set?
· How many rows and columns are present in this data set?
Answer the questions in a paragraph response. Remove all questions and this note before submitting! Do not include R code in your report.
Reporting Results
Report the results of the regression model. Address the following questions in your analysis:
· Write the general form of a logistic regression model for defaulting on credit, using credit utilization and missed payments as independent variables. Note that this general form should be written in terms of E(y) and exponents.
· Now write this model in terms of the natural log of odds to express the beta terms in linear form.
· What do the following terms, from the general form of the model above, mean in terms of an individual defaulting on their credit?
a.
b.
· Create this logistic regression model and write its equation in terms of E(y) and in terms of the natural log of odds.
· Interpret the estimated coefficient of credit utilization.
· Obtain the confusion matrix and report the counts for true positives, true negatives, false positives, and false negatives.
· Report the following:
a. Accuracy
b. Precision
c. Recall
Answer the questions in a paragraph response. Remove all questions and this note before submitting! Do not include R code in your report.
Evaluating Model Significance
Evaluate model significance for the regression model. Address the following questions in your analysis:
· Perform the Hosmer-Lemeshow goodness of fit test to assess whether the model is appropriate for the data set. Identify the null and alternative hypotheses, the test statistic, and the P-value. Use a
5
% level of significance.
· Which terms are significant in the model based on Wald’s test? Use a 5% level of significance.
· Obtain the Receiver Operating Characteristic (ROC) curve. Interpret the graph and explain what it illustrates.
· What is the value of AUC? Interpret what this value represents.
Answer the questions in a paragraph response. Remove all questions and this note before submitting! Do not include R code in your report.
Making Predictions Using Model
Make predictions using the regression model. Address the following questions in your analysis:
· What is the probability of an individual who has a credit utilization of 32% and has missed payments in the past three months defaulting on credit? Find the odds of this event occurring. Comment on these outputs.
· What is the probability of an individual who has a credit utilization of 32% and has not missed payments in the past three months defaulting on credit? Find the odds of this event occurring. Comment on these outputs.
Answer the questions in a paragraph response. Remove all questions and this note before submitting! Do not include R code in your report.
Reporting Results
Report the results of the regression model. Address the following questions in your analysis:
· Write the general form of a logistic regression model for defaulting on credit using credit utilization, assets, and education as independent variables. Note that this general form should be written in terms of E(y) and exponents.
· Now write this model in terms of the natural log of odds to express the beta terms in linear form.
· Create this logistic regression model and write its equation in terms of E(y) and in terms of the natural log of odds.
· Obtain the confusion matrix and report the counts for true positives, true negatives, false positives, and false negatives.
· Report the following:
a. Accuracy
b. Precision
c. Recall
Answer the questions in a paragraph response. Remove all questions and this note before submitting! Do not include R code in your report.
Evaluating Model Significance
Evaluate model significance for the regression model. Address the following questions in your analysis:
· Perform the Hosmer-Lemeshow goodness of fit test to assess whether the model is appropriate for the data set. Identify the null and alternative hypotheses, the test statistic, and the P-value. Use a 5% level of significance.
· Which terms are significant in the model based on Wald’s test? Use a 5% level of significance.
· Obtain the ROC curve. Interpret the graph and explain what it illustrates.
· What is the value of AUC? Interpret what this value represents.
Answer the questions in a paragraph response. Remove all questions and this note before submitting! Do not include R code in your report.
Making Predictions Using Model
Make predictions using the regression model. Address the following questions in your analysis:
· What is the probability of an individual who has a credit utilization of 43%, owns a car and a house, and has attained a high school diploma defaulting on credit? Find the odds of this event occurring. Comment on these outputs.
· What is the probability of an individual who has a credit utilization of 43%, owns a car and a house, and has attained a postgraduate degree defaulting on credit? Find the odds of this event occurring. Comment on these outputs.
Answer the questions in a paragraph response. Remove all questions and this note before submitting! Do not include R code in your report.
Describe the results of the statistical analyses and address the following questions:
· Based on the analysis that you have performed and assuming that the sample size is sufficiently large, would you recommend using this model? Why or why not?
· Fully describe what these results mean in your scenario using proper statistical terms and concepts.
· What is the practical importance of the analyses that were performed?
Answer the questions in a paragraph response. Remove all questions and this note before submitting! Do not include R code in your report.
You are not required to use external resources for this report. If none were used, remove this entire section. However, if you used any resources to help you with your interpretation, you must cite them. Use proper APA format for citations.
Insert references here in the following format:
Author’s Last Name, First Initial. Middle Initial. (Year of Publication). Title of book: Subtitle of book, edition. Place of Publication: Publisher.
5
We provide professional writing services to help you score straight A’s by submitting custom written assignments that mirror your guidelines.
Get result-oriented writing and never worry about grades anymore. We follow the highest quality standards to make sure that you get perfect assignments.
Our writers have experience in dealing with papers of every educational level. You can surely rely on the expertise of our qualified professionals.
Your deadline is our threshold for success and we take it very seriously. We make sure you receive your papers before your predefined time.
Someone from our customer support team is always here to respond to your questions. So, hit us up if you have got any ambiguity or concern.
Sit back and relax while we help you out with writing your papers. We have an ultimate policy for keeping your personal and order-related details a secret.
We assure you that your document will be thoroughly checked for plagiarism and grammatical errors as we use highly authentic and licit sources.
Still reluctant about placing an order? Our 100% Moneyback Guarantee backs you up on rare occasions where you aren’t satisfied with the writing.
You don’t have to wait for an update for hours; you can track the progress of your order any time you want. We share the status after each step.
Although you can leverage our expertise for any writing task, we have a knack for creating flawless papers for the following document types.
Although you can leverage our expertise for any writing task, we have a knack for creating flawless papers for the following document types.
From brainstorming your paper's outline to perfecting its grammar, we perform every step carefully to make your paper worthy of A grade.
Hire your preferred writer anytime. Simply specify if you want your preferred expert to write your paper and we’ll make that happen.
Get an elaborate and authentic grammar check report with your work to have the grammar goodness sealed in your document.
You can purchase this feature if you want our writers to sum up your paper in the form of a concise and well-articulated summary.
You don’t have to worry about plagiarism anymore. Get a plagiarism report to certify the uniqueness of your work.
Join us for the best experience while seeking writing assistance in your college life. A good grade is all you need to boost up your academic excellence and we are all about it.
We create perfect papers according to the guidelines.
We seamlessly edit out errors from your papers.
We thoroughly read your final draft to identify errors.
Work with ultimate peace of mind because we ensure that your academic work is our responsibility and your grades are a top concern for us!
Dedication. Quality. Commitment. Punctuality
Here is what we have achieved so far. These numbers are evidence that we go the extra mile to make your college journey successful.
We have the most intuitive and minimalistic process so that you can easily place an order. Just follow a few steps to unlock success.
We understand your guidelines first before delivering any writing service. You can discuss your writing needs and we will have them evaluated by our dedicated team.
We write your papers in a standardized way. We complete your work in such a way that it turns out to be a perfect description of your guidelines.
We promise you excellent grades and academic excellence that you always longed for. Our writers stay in touch with you via email.