# Data Science Nigeria Bank Campaign Subscriptions 2 — Data

来源：https://www.kaggle.com/competitions/data-science-nigeria-bank-campaign-subscriptions-2/data

采集时间：2026-10-24T07:37:29Z

**Context**
The dataset contains information about marketing campaigns that were conducted via phone calls from a Nigerian banking institution to their clients. The purpose of these campaigns is to prompt their clients to subscribe to a specific financial product of the bank (term deposit). After each call was conducted, the client had to inform the institution about their intention of either subscribing to the product (indicating a successful campaign) or not (unsuccessful campaign).
The final output of this survey will be a binary result indicating if the client subscribed ('yes') to the product or not ('no').

**The data has been split into two groups:**
- training set (train.csv)
- test set (test.csv)
The training set should be used to build your machine learning models. For the training set, we provide the outcome (also known as the “ground truth”) for each customer 

The dataset several rows (instances of calls to clients) and 21 columns (variables) which are describing certain aspects of the call. Please note that there are cases where the same client was contacted multiple times - something that practically doesn't affect the analysis as each call will be considered independent from another even if the client is the same.

**Content**
The predictor variables (features) contained in the dataset can be divided into the following five sections:
<ul>
1. Variables that describing attributes related directly to the client:
<li><strong> age </strong>
<li><strong> job </strong>: type of job (e.g. 'admin', 'technician', 'unemployed', etc)
<li><strong> marital</strong>: marital status ('married', 'single', 'divorced', 'unknown')
<li><strong> education</strong>: level of education ('basic.4y', 'high.school', 'basic.6y', 'basic.9y','professional.course', 'unknown','university.degree','illiterate')
<li><strong> default</strong>: if the client has credit in default ('no', 'unknown', 'yes')
<li><strong> housing</strong>: if the client has housing a loan ('no', 'unknown', 'yes')
<li><strong> loan</strong>: if the client has a personal loan ? ('no', 'unknown', 'yes')
</ul>

<ul>
2. Variables related to the last contact of the current campaign:
<li><strong> contact</strong>: type of communication ('telephone', 'cellular')
<li><strong> month</strong>: month of last contact
<li><strong> dayofweek</strong>: day of last contact
<li><strong> duration</strong>: call duration (in seconds)
</ul>

<ul>
3. Other variables related to the campaign(s):
<li><strong> campaign</strong>: number of contacts performed during this campaign and for this client
<li><strong> pdays</strong>: number of days passed by after the client was last contacted from a previous campaign
<li><strong> previous</strong>: number of contacts performed before this campaign and for this client
<li><strong> poutcome</strong>: outcome of previous marketing campaign ('nonexistent', 'failure', 'success')
</ul>

<ul>
4. Socioeconomic variables:
<li><strong> emp_var_rate</strong>: employment variation rate - quarterly indicator
<li><strong> cons_price_idx</strong>: consumer price index - monthly indicator
<li><strong> cons_conf_idx</strong>: consumer confidence index - monthly indicator
<li><strong> euribor3m</strong>: euribor 3 month rate - daily indicator
<li><strong> nr_employed</strong>: number of employees - quarterly indicator
</ul>
Of course, the dataset also containt the variable subscribed which is the target variable, indicating if the client subscribed to the product ('yes':1) or not ('no':0).

