Data dictionary: policy_data.csv
================================

1. What the data are
====================

Data from a randomised experiment evaluating a publicly funded job-training
programme for unemployed workers. Each row is one person. Training was offered
to a random half of the participants; earnings were measured 12 months later.

  - File: policy_data.csv (comma-separated, decimal point, header row, UTF-8)
  - Rows: 20,000 (one per person)
  - Columns: 13
  - Missing values: none
  - Programme cost per participant: 3,000 EUR (used to define the target
      worthwhile)

2. Columns
==========

Variables at a glance (name, then role in the random forest):

  id              not used
  education       feature
  prior_earnings  feature
  unemp_months    feature
  age             feature
  female          feature
  urban           feature
  children        feature
  noise           feature (control)
  treated         not used in the classification scripts
  earnings_12m    not used in the classification scripts
  tau_true        not used (it defines the target)
  worthwhile      target

Details for each variable follow, grouped by type.

Identifier
----------

  * id
      Type: integer
      Values / unit: 1 to 20,000
      Description: Row identifier.
      Role in the random forest: not used

Characteristics of the person (measured before the programme)
-------------------------------------------------------------

  * education
      Type: integer
      Values / unit: years, 9 to 20
      Description: Years of completed schooling.
      Role in the random forest: feature

  * prior_earnings
      Type: numeric
      Values / unit: EUR per year, about 1,400 to 112,000
      Description: Annual earnings in the year before the programme.
          Right-skewed (log-normal).
      Role in the random forest: feature

  * unemp_months
      Type: integer
      Values / unit: months, 0 to 36
      Description: Number of months the person has been unemployed.
      Role in the random forest: feature

  * age
      Type: integer
      Values / unit: years, 20 to 59
      Description: Age of the person.
      Role in the random forest: feature

  * female
      Type: binary
      Values / unit: 1 = female, 0 = male
      Description: Sex of the person.
      Role in the random forest: feature

  * urban
      Type: binary
      Values / unit: 1 = lives in an urban area, 0 = otherwise
      Description: Place of residence.
      Role in the random forest: feature

  * children
      Type: integer
      Values / unit: 0 to 3
      Description: Number of dependent children.
      Role in the random forest: feature

  * noise
      Type: numeric
      Values / unit: standard normal (mean 0, sd 1)
      Description: Pure random number with no relation to any other variable.
          It is a control variable: a sound variable-importance method should
          rank it at or near zero.
      Role in the random forest: feature (control)

Programme and outcome
---------------------

  * treated
      Type: binary
      Values / unit: 1 = offered the training programme, 0 = control group
      Description: Randomly assigned (probability 0.5), so it is independent
          of all characteristics above. About 50% of rows are 1.
      Role in the random forest: not used in the classification scripts

  * earnings_12m
      Type: numeric
      Values / unit: EUR per year, 0 to about 65,000
      Description: Annual earnings 12 months after the programme. Observed for
          everyone. Floored at 0.
      Role in the random forest: not used in the classification scripts

True effect
-----------

  * tau_true
      Type: numeric
      Values / unit: EUR per year, about -11,800 to 12,600
      Description: The true individual treatment effect: how much the person's
          annual earnings change because of the programme.
      Role in the random forest: not used (it defines the target)

Target variable
---------------

  * worthwhile
      Type: binary
      Values / unit: 1 = POSITIVE class, 0 = NEGATIVE class
      Description: 1 if the programme is worthwhile for this person, that is,
          the true effect exceeds the programme cost: tau_true > 3000. 0
          otherwise. About 44% of rows are 1.
      Role in the random forest: target

3. Positive and negative class
==============================

  - Positive class (1): worthwhile = 1. The programme is worthwhile for the
    person, so the person should be treated.
  - Negative class (0): worthwhile = 0. The programme is not worthwhile for
    the person.
  - The random forest predicts P(worthwhile = 1 | characteristics), the
    probability of the positive class. A person is treated if this probability
    is at least the cut-off.
