CPSC 330 Lecture 21: Communication

Varada Kolhatkar

Focus on the breath!

Announcements

  • HW9 has been released (due on December 4th)
    • Almost there! You’ve got this! 😊
  • Next lecture on Ethics will be delivered by Firas (Section 101 instructor)
  • Please take a moment to sign the card for Mick, our movement break facilitator.

Recap: Would online security prevent churn?

Estimated retention among internet-service customers, grouped by whether they have online security.

Customers with online security have higher estimated retention.

Would this justify recommending online security as a way to prevent churn?

Why or why not?

Today’s goals

  1. Start from the reader’s needs: choose language, examples, and structure for the audience.
  2. Match the claim to the evidence: connect results to a justified next step.
  3. Present fair comparisons: make evidence easy to interpret.

Why communication?

  • ML work involves people with different backgrounds and priorities.
  • A model score alone may not answer their question.
  • Clear explanations help teams question assumptions and choose what to do next.

Communication supports the whole workflow.

Is this misleading?

What task, population, baseline, and metric would you need to assess this claim?

Task 1: Explain a method to a newcomer

Compare two explanations

Imagine reading these on Day 1 of CPSC 330. Focus on the explanation, not learning grid search again.

Explanation 1

Explanation 2

Read the explanations from Chapter 21

Critique both explanations

  • Does the full random-forest constructor establish the problem, overwhelm the reader, or both?
  • Does the cockpit analogy clarify settings? Where could it mislead?
  • Does each image explain something or mainly attract attention?
  • Does the code connect to the prose and show the relevant result?

Choose one detail to revise and explain why.

Choose an opening

Your teammate knows Python but has not studied ML. Which opening would you use?

  • A. We are performing hyperparameter optimization using cross-validation.
  • B. The model has settings we must choose before training. We will compare several choices using held-out portions of our training data.
  • C. Random forests have settings such as max_depth, max_features, and n_estimators.

What does each assume? When would A be appropriate?

Choose a worked example

You have room for one worked example. Which plan would you choose?

  • A. Random-forest settings \(\to\) grid of combinations \(\to\) the same settings in code → output.
  • B. Introduce hyperparameters using random-forest settings \(\to\) demonstrate grid search with SVR \(\to\) explain its output to show how tuning applies to another model.
  • C. Complete search code \(\to\) glossary of unfamiliar terms at the end.

What must the reader keep track of? Could you borrow anything useful from another plan?

What would you add next?

Your reader now understands how grid search works. They ask:

“Did grid search help in this case? Does it always help?”

Which response would you give, and what evidence would you include?

  • A. Show the winning cross-validation score as evidence that tuning helped.
  • B. Compare default and tuned models on data not used for tuning. Limit the conclusion to this experiment.
  • C. Compare default and tuned models across several datasets to investigate when tuning helps.

What can each piece of evidence establish? What would remain uncertain?

Concepts before labels

  • Explain the settings and why choosing them is difficult.
  • Show a way to compare choices.
  • Then introduce hyperparameter optimization and grid search.

The curse of knowledge: once we know an idea, we can forget what a newcomer needs explained.

For an experienced reader, the label may be useful shorthand.

Top down or bottom up?

Top down

Start with the conclusion or overall picture, then supporting details.

Bottom up

Build from concrete examples or component ideas towards the larger idea.

Choose the starting point for the audience and purpose.

Build understanding step by step

Keep one running example across prose, tables, code, and output.

Reader’s next question Add this next
Which settings will we try? A small grid of combinations
How will we compare them? Explain cross-validation
How do I run it? Code using those same settings
Did tuning help? Default-versus-tuned results

Introduce another model or search method when it answers a new question.

Keep results close to the explanation

  • Show the relevant output beside the procedure.
  • Explain what the reader should notice.
  • Include disappointing or inconclusive findings.
  • Say what the experiment supports and what remains unresolved.

Best among the settings tried does not mean universally best.

It’s not about you

When reluctant to remove a detail, ask:

  • Does it help the reader, or make me sound knowledgeable?
  • Am I afraid the work looks too simple without it?
  • Am I including it because I spent time on it?
  • Am I overexplaining because I fear being judged?

Keep essential assumptions, limitations, and reproducibility details available.

Task 2: Help a team decide what to do next

The housing-project update

Staff currently estimate sale prices themselves and use those estimates to advise sellers about asking prices.

The model estimates the eventual sale price; it does not choose the asking price.

The team proposes a limited pilot using ML predictions instead of staff estimates. A manager must decide whether to fund it.

The team’s draft update says:

“Our model outperformed the other approaches we tested on validation data. Let’s pilot it to give staff more consistent price estimates and help sellers choose asking prices that lead to faster sales and better offers.”

Which claims need more evidence?

Think beyond the prediction

Today, staff estimate sale prices. The pilot would use ML estimates instead. What would need to improve?

Question to ask In the housing project
What decision will it support? Staff recommend an asking price to the seller.
What does success mean to the seller? A higher sale price? A faster sale? A balance of both?
What circumstances matter? The local market and how soon the seller needs to move.
What should we compare it with? Staff estimates for the same homes, using information available at the same time.

Predicting a sale price accurately does not tell us whether the advice helps sellers.

What does the manager need?

What should the manager clarify before funding the proposed pilot?

  • A. Which algorithm has the highest validation score?
  • B. What would count as success when ML estimates replace staff estimates: more accurate estimates, faster sales, or better offers?
  • C. How many more hyperparameter combinations can we try?

In a two-minute update, would you move the baseline, full search settings, or important failure conditions to supporting material?

Which next step would you prioritize?

Choose one request for the next team meeting:

  • A. Compare ML and staff estimates for the same homes against their eventual sale prices.
  • B. Check whether the data cover the locations and market conditions planned for the pilot.
  • C. Design a pilot comparing ML-based and current advice, measuring time to sale and sale outcomes.

State an assumption that makes your choice the priority.

What missing information could change your choice?

What? So what? Now what?

Question Role Housing update
What? Observation One ML model scored higher than another on validation data.
So what? Interpretation A candidate for the pilot, but not yet shown to improve on staff estimates or seller outcomes.
Now what? Recommendation Compare with staff estimates and define how the pilot would test the promised benefits.

A score alone leaves the reader to supply the “So what?”

Same evidence, different audiences

Technical teammate

“On the same validation split, gradient boosting had higher \(R^2\) than random forest. Neither was compared with staff estimates. Next, compare their prediction errors with staff errors on the same homes.”

Manager deciding on the pilot

“Before deciding on the pilot, compare the model’s estimates with staff estimates. It predicted prices more accurately than the other ML approach in our validation comparison, but we do not yet know whether it improves on staff.”

What changed in the language, detail, and order? What stayed the same?

Other useful message structures

Project overview

Problem \(\to\) Approach \(\to\) Result \(\to\) Limitation

Decision needed first

Recommendation \(\to\) Reasons and evidence \(\to\) Caveats

Choose the order for the reader’s purpose. Keep important qualifications beside the claims they limit.

Make uncertainty specific

Unresolved question Evidence that would help
More accurate than staff? Compare errors for the same homes and prediction time
“More consistent” estimates? Define consistency and measure it against staff estimates
Relevant to the pilot? Check locations, market conditions, and held-out performance
Faster sales or better offers? Compare outcomes under ML-based advice and current advice

Clearer wording cannot repair an unsuitable evaluation or data leakage.

Task 3: Present a fair comparison

Two comparisons, two questions

Comparison What does it help us decide?
ML model versus ML model Which candidate should we investigate further?
ML estimates versus staff estimates Could changing the current approach be worthwhile?

The plots answer the first question. The pilot decision also needs the second comparison and evidence about seller outcomes.

Housing comparison: setup

  • Kaggle housing data from Chapter 10: ML models only; no staff estimates.
  • Random forest and gradient boosting: 3, 10, 30, 100, 300 trees.
  • One fixed training/validation split; a separate test set stays untouched.
  • Preprocessing fitted on training data only.
  • Train on log-transformed prices; convert predictions to dollars before scoring.

Metric: \(R^2\) on original sale prices, not percentage accuracy.

Open the reproducible class demo

Inspect the measured results

Trees RF training RF validation GB training GB validation
3 0.941 0.760 0.260 0.313
10 0.974 0.869 0.633 0.652
30 0.977 0.867 0.892 0.867
100 0.979 0.869 0.967 0.906
300 0.978 0.871 0.989 0.913

RF = random forest; GB = gradient boosting. Values are \(R^2\).

How does the comparison change across tree counts?

Does this table tell us whether ML estimates are better than staff estimates?

Choose the display

Technical teammates are selecting a candidate for further evaluation. Which display would you use?

  • A. Validation results only, across all five settings: focus on performance on unseen cases.
  • B. Separate training and validation panels: also show the gap between training and validation performance.
  • C. Results only for models within a stated computing budget: focus on feasible options.

What question does each answer? What would you need to explain or disclose?

Same results, different stories

What does each display omit or make harder to see?

A fairer comparison

All five settings; shared vertical scale; separate training and validation; labelled log horizontal axis.

Choose axes for the question

  • Bar charts: generally start at zero because lengths encode magnitude.
  • Lines and scatter plots: a narrower range can reveal useful variation; label it clearly.
  • Comparisons of the same metric: use a shared scale.
  • Dual vertical axes: independent scales can manufacture apparent agreement or divergence.

Check whether the range exaggerates or hides differences.

Other ways a display can mislead

  • Selectively omit settings, cases, or unfavourable results.
  • Change histogram bins to suggest a fragile pattern.
  • Exaggerate quantities through disproportionate areas or volumes.
  • Add decoration that competes with the evidence.
  • Force data into an attractive chart that obscures the comparison.

Start with the comparison the reader needs to make.

Clear chart but misleading story

A post comparing selected periods of daily confirmed COVID-19 cases in 2020 and 2021.

The post uses this comparison to suggest that vaccination failed.

  • What do the charts actually show?
  • What does that claim add?
  • What missing context would you need?

Source: How People Actually Lie With Charts

Before sharing: is my message clear?

Before sharing: are my claims supported?

Exit question: revise one claim

Choose one claim from the housing draft:

  • “More consistent price estimates”
  • “Faster sales”
  • “Better offers”

In one or two sentences, explain what we know, what remains unknown, and what we should do next.

After class: Complete the housing update

Write at most 100 words for the manager deciding whether to fund a pilot replacing staff estimates with ML estimates.

Include:

  1. A measured result and comparison, explained for the manager.
  2. Why it matters and what remains untested.
  3. A next step that addresses a specific evidence gap.

Label What / So what / Now what outside the word limit. Briefly justify your choice of a sentence, simple visual, or full plot.

Review for: accuracy, audience fit, clear limitations, and a justified next step.

What did we learn today?

  1. Start from the reader’s needs. Choose examples, language, and structure for the audience and purpose.
  2. Match the claim to the evidence. Separate observation, interpretation, and recommendation.
  3. Make comparisons fair. Show relevant evidence and explain display choices.

What? \(\to\) So what? \(\to\) Now what?

Have a great weekend!

Optional activities and resources

A probability is not evidence of reliability

A fraud classifier assigns a transaction probability 0.9. A colleague says: “We are 90% sure the model is trustworthy.”

Which interpretation is appropriate?

  • A. The model is reliable for 90% of transactions.
  • B. The model estimates a 90% probability of fraud here; that output alone does not establish its reliability.
  • C. The estimate is meaningless until we know this transaction’s outcome.

What additional evidence would you want?

Calibration: checking probabilities

Among 100 held-out transactions assigned probabilities near 0.9, we would expect roughly 90 fraud cases if estimates match observed frequencies.

  • If only about 60 are fraudulent, estimates are too high for this group.
  • Check patterns across enough relevant held-out cases and probability ranges.
  • One transaction cannot establish calibration.
  • Calibration alone does not establish usefulness or overall trustworthiness.

Transfer: customer-support routing

A classifier routes support requests to departments:

  • Historical held-out accuracy: 88%; most-common-department baseline: 70%.
  • Uses only text available at arrival; mistakes require manual rerouting.
  • Time saved has not been measured; a product launch may change requests.

Write ≤120 words for the support manager deciding whether to fund a pilot. Explain evidence, uncertainty, and your next step. Include one question for the manager.

Transfer: YouTube recommendations

You train a recommender from user–video clicks, but recommendations are poor.

  • Do clicks represent the user experience you want to improve?
  • Who decides what “good” means?
  • What alternatives, context, and additional evidence matter?

A convenient target may not match the objective.

Further examples

Use the resources to ask: What claim does this display support, and what might a reader infer beyond it?