• Home
  • Blog
  • DATA SCIENCE FOUNDATION. answer all questions in powerpoint

DATA SCIENCE FOUNDATION. answer all questions in powerpoint

0 comments

In your organization, discuss the role of predictive analytics. How does it help? What are some of the issues and challenges faced in your organization? Would people in your organization be hesitant to make decisions based on predictive analytics? If so, why? (Banking and finance is the organization

part II

Predicting Behavior with Logistic Regression

Customer churn occurs when customers stop doing business with a company. Retaining existing customers is less expensive than it is to acquire new customers and hence, building a good predictive model for customer churn is of importance to many companies. Download the dataset Telco.customer.csv. Through this dataset, we attempt to predict behavior to retain customers using logistic regression.

Follow the steps below and create a PowerPoint presentation.

  1. Using R, partition the dataset into training and testing sets by using the code:
    (YOURDATA is the name of your dataset in R.)

    intrain- createDataPartition(YOURDATA$Churn,p=0.7,list=FALSE)
    set.seed(2017)
    training- YOURDATA[intrain,]
    testing- YOURDATA[-intrain,]

  2. Fit a logistic regression model by using the code:

    glm(Churn ~ .,family=binomial(link=”logit”),data=training)

  3. Examine the resulting fitted model. What are the significant factors that affect customer churn? Explain how and why they are significant.
  4. Now, let’s examine how the model fits using the following code.

    testing$Churn – as.character(testing$Churn)
    testing$Churn[testing$Churn==”No”] – “0”
    testing$Churn[testing$Churn==”Yes”] – “1”
    fitted.results – predict(LogModel,newdata=testing,type=’response’)
    fitted.results – ifelse(fitted.results 0.5,1,0)
    misClasificError – mean(fitted.results != testing$Churn)
    print(paste(‘Logistic Regression Accuracy’,1-misClasificError))

    This provides the accuracy of the model.

  1. How can you make a customer churn prediction from the model you fitted? Explain. include the actual calculation. Provide the output from each set of code and your answer and/solution to the questions in an MS PowerPoint presentation. Your presentations should have 9-13 slides. Every slide must contain a “Notes Section” with full explanation of the slide’s content.

Follow APA format, . Include a title slide and a slide citing references. These 2 slides are in addition to the 9-13 used in the presentation. Cite at least one outside academic source other than the textbook, course materials, or other information provided as part of the course materials.

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}