What is the harmonic mean?

preview_player
Показать описание
The harmonic mean has been causing a stir in the r/datascience subreddit recently. In this video I explain what the harmonic mean is and when it is appropriate to use it. I then work through the job interview question from Reddit, solving it first with a numeric approach, then with the harmonic mean.

Question: "You travelled half of the distance with a speed 30km/h, and the other half - 50km/h. What is the average speed?

My SkillShare courses: (includes a 1 month free trial)

Connect with me:

Рекомендации по теме
Комментарии
Автор

Really useful! Helped with my CFA level 1 exam

therandomizedassasin
Автор

Harmonic mean is how mathematicians do diss tracks.

Madosatoshist
Автор

There is another useful case for it.
You can compute the 'virtual' musical perfect 4th of two notes. If i take the HM of C3 and C4 for example, i get F3. Coincidentally (maybe not?), i get G3 (the perfect 5th) if i take the HM of C3 and C5. 🤔

Gtr
Автор

Another useful case for it is an evaluation metric in machine learning called f1_score

aaryankatoch
Автор

Very clear video! I do have one question though: why exactly does this work? Is the harmonic mean always equal to the arithmetic mean after factoring in ratios? And does that work for any ratios or is this a specific case where it happens to give the same answer?

NilsKimman