Academia Digital 360Learning without borders.⌕My AcademyPT
Advanced

Advanced data analysis

8 modules · 8 exercises · 10 questions · Free

Goal: understand and apply the concepts in the modules through the proposed exercises. Mark each module after studying it. Use the assessment to check your understanding. You may start this course directly without mandatory prerequisites.

Learning plan

  1. Analytical question and data quality
  2. Association, confounding and causality
  3. Classification and error costs
  4. Validation and calibration
  5. Reproducibility and decision
  6. Case design and comparison validity
  7. Marginal efficiency and constraints
  8. Sensitivity and conditional recommendation

Recommended knowledge (not mandatory): Data literacy and metrics, Management dashboards.

Read the Academy rules

1. Analytical question and data quality

Define population, analysis unit, outcome variable and prediction time. A variable available only after the outcome constitutes leakage when used to predict. Check uniqueness, joins, missingness and semantic stability. Create a data dictionary and retain a reproducible preparation version with rules for exclusions and transformations.

Identify variables that would become available only after a fictional churn event.

2. Association, confounding and causality

A statistical relationship may result from direct causation, confounding, selection or chance. Specify causal hypotheses before interpreting coefficients. Indiscriminately adjusting for all variables may introduce bias, for example by conditioning on a common effect. Distinguish predicting an outcome from estimating an intervention effect; each task requires appropriate validation.

Draw a causal diagram for a fictional relationship between usage and retention.

3. Classification and error costs

The confusion matrix distinguishes true and false positives and negatives. Precision measures correct positives among predicted positives; recall measures detected positives among actual positives. In an imbalanced population, overall accuracy may mislead. Select thresholds based on error costs, intervention capacity and consequences for people.

Calculate precision and recall for 30 true positives, 20 false positives and 10 false negatives.

4. Validation and calibration

Separate model selection, parameter tuning and final evaluation. Apply learned transformations only from training. A discriminative model may rank cases well while producing poorly calibrated probabilities. Compare predicted probabilities with observed frequencies in groups and analyse performance by subgroup, sample size and uncertainty.

Prepare a calibration table for three fictional probability intervals.

5. Reproducibility and decision

Document sources, versions, code, parameters, metrics and usage limits. Monitoring should identify data drift and performance decline without collecting unnecessary personal information. An analytical recommendation requires estimated benefit, error consequences and appropriate human intervention. Define conditions for suspending the model and returning to the baseline.

Draft a model report with stop criteria and validity limits.

6. Case design and comparison validity

Entirely fictional scenario: Two approaches to identifying fictional customers at risk of churn. Each alternative, A and B, is evaluated on 100 units. A valid outcome means correct classifications under a defined validation rule. A produces 58 valid outcomes with 348 minutes of total effort; B produces 80 with 524 minutes. These figures are training data, not observed market outcomes. The rate divides valid outcomes by evaluated units; absolute rate differences are expressed in percentage points. For example, going from 20% to 30% represents ten percentage points, not a ten percent relative increase. To compare average effort, divide minutes by valid outcomes. Define identical counting rules for both alternatives and record data provenance. The analysis unit must be defined before the test. Comparability requires checking composition, measurement conditions, missingness and possible dependencies. For this domain, it is particularly important to check information leakage, calibration and subgroup outcomes. Specify which variables should be stratified and how outcomes are reconciled with the reference source. If assignment is not random, treat the difference as descriptive until adequate causal evidence exists.

Exercise: write a protocol specifying population, unit, success definition, exclusions, reference source and comparison method; identify two case-specific threats to validity.

7. Marginal efficiency and constraints

The marginal effort cost of moving from A to B is the difference in minutes divided by the difference in valid outcomes, not B’s average effort. Assume a ceiling of 436 minutes and a minimum target of 59 valid outcomes. Compare both constraints simultaneously. If neither option meets both, redesign the approach or seek a decision on which constraint may change. Descriptive improvement does not prove causation or guarantee repetition. Before deciding, check information leakage, calibration and subgroup outcomes. Record observations, assumptions and missing information. Distinguish a hard constraint from a negotiable preference. B uses 176 additional minutes and A leaves 88 minutes of capacity under the ceiling. If there is additional benefit per outcome, compare it against the opportunity cost of additional minutes; without appropriate valuation financial return cannot be inferred. The decision must also consider quality, distribution of effects and dependencies.

Exercise: calculate average effort, marginal effort and shortfall against each constraint. Propose a third alternative preserving quality, identifying which assumption requires testing.

8. Sensitivity and conditional recommendation

Test the robustness of the comparison of two approaches to identifying fictional customers at risk of churn. Suppose a quality review reduces B’s valid outcomes by 24, with effort unchanged. Calculate the new rate and difference relative to A. The tie threshold is the loss of 22 valid outcomes; larger losses reverse the ranking. This scenario is not a probability forecast: it is an explicit perturbation of an assumption. Also test scenarios involving increased effort, measurement failures and capacity constraints. Validation must include the need to check information leakage, calibration and subgroup outcomes. Produce a recommendation with a stop condition, guardrail indicator, required data and review date, avoiding extrapolation from 100 units to the whole population without justification.

Exercise: build a three-scenario matrix covering the stated loss, increased effort and their combination. Identify the reversal threshold, data to collect and rollback condition.

Final assessment

Answer all ten questions, with three options and one correct answer. To obtain the participation certificate, mark every module and achieve at least 80% (eight correct answers). You can repeat the assessment without limit. No passing grade is required between modules.

1. Which variable would create information leakage?
2. Does strong association prove causality?
3. What is recall in this example?
4. What does adequate calibration mean?
5. Which condition may justify suspending a model?
6. In the Advanced data analysis case, what is the valid outcome rate for alternative B out of 100 units?
7. In the Advanced data analysis case, what is the absolute difference between B and A rates?
8. In the Advanced data analysis case, how many additional minutes are required per additional valid outcome when moving from A to B?
9. In the Advanced data analysis sensitivity test, B loses 24 valid outcomes at unchanged effort. Which alternative now has more valid outcomes?
10. Before recommending an alternative in the Advanced data analysis case, which check is most relevant?

Supplementary reading

Thematic links based on catalogue titles, without claims about the full contents of the books.

Learning by doing

Ferramentas 360° offers free calculators and simulators you can use to practise this course’s calculations and decisions with your own fictional data. Business Lab 360° offers management cases to apply the same concepts.

Ferramentas 360° · Business Lab 360° · Desafio 360°

Continue learning

Learning pathways · My Academy