learntodriveai.dev/Data Science/Multi-Source Analysis and Inferential Depth
Data ScienceProject 037 unitsVerified on 17 October 2026

Multi-Source Analysis and Inferential Depth

Somchai RattanapongDirector of Operations · Boutique hotel group · Bangkok, Thailand
Email · from Somchai
But Koh Samui has 40 rooms at premium rates and Chiang Mai has 25 rooms at mid-range rates in a completely different market. The comparison is meaningless without adjustment, but I don't have the analysis to prove it.
Chat with Somchai

What you hand back

  • One combined booking, review and revenue dataset
  • Methodology memo recording every decision
  • Tests showing which property differences are real
  • Model of what drives guest satisfaction
  • Board findings report with effect sizes
  • Decision record for the key analytical choice

7 units

  1. Unit 1: Meet the client and the data

    Read the director's email, reply to him, and profile the bookings, reviews and revenue exports one at a time.

    Open unit 1
  2. Unit 2: Join the sources

    Design the join strategy in DuckDB, check row counts, and catch the date format mismatch between sources.

    Open unit 2
  3. Unit 3: Are the property differences real?

    Check test assumptions, choose between ANOVA and Kruskal-Wallis, and measure how large the property differences are.

    Open unit 3
  4. Unit 4: Predict satisfaction drivers

    Choose features that honestly attach to each review, then fit regularized models to find what drives satisfaction.

    Open unit 4
  5. Unit 5: Cross-check and synthesize

    Complete the methodology memo and have a second AI session review the work with fresh context.

    Open unit 5
  6. Unit 6: Communicate to Somchai

    Turn statistical output into a board report with plain-language effect sizes and limitations, and handle the renovation closure.

    Open unit 6
  7. Unit 7: Deliver and close

    Send the report, answer the nationality follow-up, write a decision record, and push the work to GitHub.

    Open unit 7
Read the full brief

A boutique hotel group in Thailand has three data systems that don't talk to each other. You combine booking data, guest reviews, and revenue reports into one analysis that shows which property differences are real and what drives guest satisfaction.

The discipline skills: joining datasets with DuckDB and pandas, running ANOVA and pairwise tests with assumption checking, computing effect sizes alongside p-values, building a prediction model with regularization and cross-validation, and communicating findings that separate statistical significance from practical importance.

The AI-direction lesson: statistical test selection is where a plausible-looking p-value can be quietly wrong. A model can run a parametric test on non-normal data, skip a multiple comparison correction, or report a p-value without an effect size — and the code runs clean either way, so the number looks identical whether the choice was right or not. Modern models often make these calls correctly, but "often" is not "always," and you cannot tell which happened without reading the reasoning. The skill this time is checking the test selection yourself — recognizing when a t-test should be a Mann-Whitney, when a battery of pairwise tests needs a Bonferroni correction, and when "p < 0.05" is not the whole answer.

Your Role

You combine three sources into something that tells a fair story. There is no provided answer key this time. When you join datasets and run a statistical test, you verify the work yourself. A second AI reviews your methodology from a fresh perspective.

What's New

Last time, you built a prediction model on a single, familiar dataset. Verification targets told you what honest results looked like. You caught data leakage by checking against those targets.

This time, the data starts messy. Three sources that were never designed to work together. Different date formats, different naming conventions, missing values. Before any analysis can run, you need to decide how to combine them — and those decisions affect every number downstream. This transition from clean datasets to messy multi-source reality reflects what data science actually looks like in practice — working data scientists spend roughly 30-50% of their time on data work (acquisition, cleaning, joining, profiling), and only 10-15% on actual modeling.

The analytical work is also new. You will test whether differences across properties are statistically significant, measure how large those differences actually are, check whether the statistical tests are even valid for this data, and build a model to identify satisfaction drivers. A p-value without an effect size is incomplete. A test run on data that violates its assumptions produces a number that looks real and is not.

Tools

  • Python 3.11+ via your conda "ds" environment
  • Jupyter Notebook for the analysis
  • pandas for data handling
  • DuckDB for SQL-based multi-source analysis (new this project)
  • scikit-learn for prediction modeling (Ridge, Lasso, cross-validation)
  • scipy for statistical tests and assumption checking
  • scikit-posthocs for post-hoc pairwise tests (Dunn's test after Kruskal-Wallis)
  • matplotlib / seaborn for visualization
  • Claude Code as the AI you direct
  • Git / GitHub for version control

Materials

You receive:

  • Three datasets: bookings, guest reviews, and monthly revenue reports
  • A data dictionary for each source
  • A methodology memo template that you fill in as you work
  • A project governance file (CLAUDE.md) for Claude Code
  • Somchai's email explaining what he needs

No verification targets. No step-by-step pipeline. The methodology memo gives you a structure to record your decisions. The data dictionaries tell you what each column means. You direct the work and verify it yourself.

Materials · 10 files
Start Project 3

You work at a computer with a terminal. Signed in, your place is saved.