stratascratch
  • Interview Questions
    • Interview Loops
    • Analytical
    • Algorithm
    • ML Coding
    • Stats Coding
    • Visualization
    • Concept
  • Data Labs
    • Discover
    • Your Notebooks
  • Mock Interview
  • Learn
  • Blog
  • Pricing
  • About
Log in
  • Interview Questions

    • Interview Loops
    • Analytical
    • Algorithm
    • ML Coding
    • Stats Coding
    • Visualization
    • Concept
  • Data Labs

    • Discover
    • Your Notebooks
  • Mock Interview
  • Learn
  • Blog
  • Pricing
  • About
Log inSign up
Back to Projects
  1. Assignment
  2. Your Solution
  3. Solutions from Users
  4. Discussion

Modelling Churn in Energy Company

You must be logged in to download the datasets

Deloitte: Exploring SME energy customer churn data and 2015 pricing to uncover patterns, insights, and key questions.

Assignment

Scenario:

Our client, PowerCo, is a major utility company providing gas and electricity to corporate, SME and residential customers. In recent years, post-liberalization of the energy market in Europe, PowerCo has had a growing problem with increasing customer defections above industry average. Thus PowerCo has asked Deloitte to work alongside them to identify the drivers of this problem and to devise and implement a strategy to counter it. The churn issue is most acute in the SME division and thus they want it to be the first priority.

The head of the SME division has asked whether it is possible to predict the customers which are most likely to churn so that they can trial a range of pre-emptive actions. He has a hypothesis that clients are switching to cheaper providers so the first action to be tried will be to offer customers with high propensity of churning a 20% discount.

Your task:

We have scheduled a meeting in one week's time with the head of the SME division in which you will present our findings of the churn issue and your recommendations on how to address it.

You are in charge of building the model and of suggesting which commercial actions should be taken as a result of the model's outcome. The client also would like to answer the following questions:

  1. What are the most explicative variables for churn,
  2. Is there a correlation between subscribed power and consumption,
  3. Is there a link between channel sales and churn.

The first stage is to establish the viability of such a model. For training your model you are provided with a dataset which includes features of SME customers in January 2016 as well as the information about whether or not they have churned by March 2016. In addition to that you have received the prices from 2015 for these customers. Of particular interest for the client is how you frame the problem for training.

Given that this is the first time the client is resorting to predictive modelling, it is beneficial to leverage descriptive statistics and visualisation for extracting interesting insights from the provided data before diving into the model. Also while it is not mandatory, you are encouraged to test multiple algorithms. If you do so it will helpful to describe the tested algorithms in a simple manner.

Using the trained model you shall “score” customers in the verification data set (provided in the eponymous file) and put them in descending order of the propensity to churn. You should also classify these customers into two classes: those which you predict to churn are to be labelled "1" and the remaining customers should be labelled "0" in the result template.

Finally, the client would like to have a view on whether the 20% discount offer to customers predicted to be churned is a good measure. Given that it is a steep discount bringing their price lower than all competitors we can assume for now that everyone who is offered will accept it. According to regulations they cannot raise the price of someone within a year if they accept the discount. Therefore offering it excessively is going to hit revenues hard.

Data Description

The table below describes all the data fields which are found in the data. You will notice that the contents of some fields are meaningless text strings. This is due to "hashing" of text fields for data privacy. While their commercial interpretation is lost as a result of the hashing, they may still have predictive power.

Field nameDescription
idcontact id
activity_newcategory of the company's activity
campaign_disc_elecode of the electricity campaign the customer last subscribed to
channel_salescode of the sales channel
cons_12melectricity consumption of the past 12 months
cons_gas_12mgas consumption of the past 12 months
cons_last_monthelectricity consumption of the last month
date_activdate of activation of the contract
date_endregistered date of the end of the contract
date_first_activdate of first contract of the client
date_modif_proddate of last modification of the product
date_renewaldate of the next contract renewal
forecast_base_bill_eleforecasted electricity bill baseline for next month
forecast_base_bill_yearforecasted electricity bill baseline for calendar year
forecast_bill_12mforecasted electricity bill baseline for 12 months
forecast_consforecasted electricity consumption for next month
forecast_cons_12mforecasted electricity consumption for next 12 months
forecast_cons_yearforecasted electricity consumption for next calendar year
forecast_discount_energyforecasted value of current discount
forecast_meter_rent_12mforecasted bill of meter rental for the next 12 months
forecast_price_energy_p1forecasted energy price for 1st period
forecast_price_energy_p2forecasted energy price for 2nd period
forecast_price_pow_p1forecasted power price for 1st period
has_gasindicated if client is also a gas client
imp_conscurrent paid consumption
margin_gross_pow_elegross margin on power subscription
margin_net_pow_elenet margin on power subscription

A whole host of rich investigations are possible. Your ideas on what some next steps could be, armed with such data is also of interest.

Practicalities

This is a fictional case study designed to loosely resemble the work you might undertake on a Deloitte project. It will test your ability to handle big data and perform statistical/machine learning analyses as well as your ability to communicate your findings and derive commercial insight from your technical work.

You may perform the analyses using any computational language you wish (including at least one tool different from excel, since the majority of data sets we receive from clients are too large for us to be able to use it).

nb_prod_actnumber of active products and services
net_margintotal net margin
num_years_antigantiquity of the client (in number of years)
origin_upcode of the electricity campaign the customer first subscribed to
pow_maxsubscribed power
price_datereference date
price_p1_varprice of energy for the 1st period
price_p2_varprice of energy for the 2nd period
price_p3_varprice of energy for the 3rd period
price_p1_fixprice of power for the 1st period
price_p2_fixprice of power for the 2nd period
price_p3_fixprice of power for the 3rd period
churnedhas the client churned over the next 3 months