Tutorvo
AI & Data Science Intermediate

Imbalanced Data by Hand: The Accuracy Trap, Balanced Metrics, Resampling, Synthetic Minority Samples, Class Weights, Cost-Based Thresholds & Probability Correction

Learn what to do when the class you care about is rare. You will see why accuracy misleads, switch to balanced accuracy and the Matthews coefficient, undersample and oversample with given index tables, create synthetic minority points by interpolation, weight the loss by class, pick a threshold from a cost matrix and correct probabilities after resampling, with every cell checked as you go.

8 lessons 8 labs 2.2 h Certificate

  • One-time payment
  • 14-day money-back guarantee
  • Secure checkout with Stripe

What you'll build

What you will be able to do

Each lab ends with a concrete result that you build yourself and the checker confirms, cell by cell.

  • Count true and false alarms of a simple vibration rule with COUNTIFS, compare its accuracy with a model that never raises an alarm and see why the recall of the rare class tells the real story.
  • Score four toy models on the same test set with balanced accuracy, the Matthews correlation coefficient and Fβ, and see that every metric can crown a different winner.
  • Undersample the OK runs and oversample the fault runs with given draw tables, compute the new class shares and see how each method changes the data the model learns from.
  • Measure distances between fault points with SQRT(SUMPRODUCT), find the nearest neighbours with SMALL, create synthetic fault points between neighbours with given gaps and flag the one that lands among the OK runs.
  • Compute balanced class weights, apply them to the log-loss of single predictions and to the error count on a threshold grid, and watch the best cut-off move down.
  • Price every cell of the confusion matrix, compute the expected cost per run for ten thresholds, pick the cheapest one with MIN and INDEX/MATCH and compare it with the break-even formula.
  • Correct the fault probabilities of a model trained on a 50/50 resampled set back to the real prevalence of 1 % and compare raw and corrected probabilities with the observed fault rates.
  • Score five ways of handling the imbalance on one fixed test set with recall, balanced accuracy, MCC and expected cost, rank them by cost and chart the result.

About this course

A pump fails in three of 100 test runs, and a model that never raises an alarm still looks 97 % accurate. This course starts with that trap and works through fictional test-run data. You compare four toy models with scores that respect the rare class and see each one crown a different winner. Given draw tables let you shrink the common class and repeat the rare one, and interpolation between nearby fault points creates new synthetic examples. You weight the loss by class, price every kind of mistake to find the cheapest cut-off and rescale probabilities to the true fault rate. A final comparison ranks five strategies on one fixed test set by recall and expected cost.

Curriculum

Course content

8 lessons · 8 labs · 2.2 h · final exam

  1. Unlocked when you buy the course
  2. Unlocked when you buy the course
  3. Unlocked when you buy the course
  4. Unlocked when you buy the course
  5. Unlocked when you buy the course
  6. Unlocked when you buy the course
  7. Unlocked when you buy the course
  8. Unlocked when you buy the course
  9. Final exam12 questions, 75% to pass, unlimited retries.

Certificate

Finish with a certificate you can verify

Complete every lesson and pass the final exam to receive a certificate of completion for this course, with a unique credential ID and a public verification page.

  • Names the course, your score and the date of issue
  • A verification link for your CV or LinkedIn profile
  • 12 questions, 75% to pass, unlimited retries.

A Tutorvo certificate confirms that you completed a course. It is not an official or professional qualification.

Illustration. Your certificate shows your own name, course and credential ID.

Before you buy

Questions about this course

Is this a subscription?

No. You pay $9.99 once for this course. There is no subscription and nothing renews automatically. Prices are in US dollars; taxes may be added where required.

What exactly do I get?

All lessons and labs of this course, the final exam and the certificate, including later updates to the course, for as long as Tutorvo offers it. Access is personal and tied to your account.

Can I get a refund?

Yes. If you are not satisfied, email hello@tutorvo.com within 14 days of buying and we refund the course in full via Stripe. The guarantee does not apply once a certificate for the course has been issued to you, or where there are signs of abuse.

When can I start?

Right after payment. Access starts immediately at your request; for consumers in the EU/EEA the statutory right of withdrawal therefore ends once access has begun, while our 14-day money-back guarantee applies regardless.

Do I need Excel or other software?

No. The labs run in a spreadsheet inside your browser on a laptop, tablet or phone. Function names and syntax follow Excel.

Is the certificate an official qualification?

No. It confirms that you completed all lessons of the course and passed its final exam. It is not an official, state-recognised or professional qualification. The name is taken from your profile when the certificate is issued.

Full details are in our Terms · hello@tutorvo.com

$9.99one-time payment
Buy course