Statistics Formulas Explained!

This is a thread for data science beginners with a fun little twist at the end for the pros!

It will explain the formulas for:
1. the mean
2. the variance
3. and a fun link between both 🧵

Keep reading to find out more! 👇
Let's get warmed up by reviewing the definition of the mean or average of our data.
The variance formula looks a lot like taking an average but it's the average of the distance from the mean squared.
Variance is a mix of two ideas. The first idea is distance according to the Pythagorean formula. The second is the average. The formula for the variance combines these two ideas to make a kind of average distance. We write variance as σ² which is an analogy to c² from Pythagoras.
The fact that we're using the squared distance is important because once we pick the measure of distance, the variance and the mean become linked in a very natural way. I'll explain in the next tweet.
Notice how the minimum of F(y) links both the mean and the variance in a way that makes them stand out as special numbers.
What happens if we change the measure of distance to the absolute value instead of the square? Well, in this case the minimum value happens at the median.
Our choice of distance seems to link our measure of spread of our data to our measure of centrality (e.g. median, mean). It's interesting to ponder if this can be taken further. It can!
You can generalize these ideas to include the formula that the very popular K-means algorithm is minimizing. In that case, you may have already guessed but the "K-means" are "means" because they minimize that variance-like formula...but that's a story for another thread!
This kind of long-form content takes extra work so if you like it and want to show support, like and retweet the thread, and give me a follow! 🙂

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with 🔥 Kareem Carr 🔥

🔥 Kareem Carr 🔥 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @kareem_carr

23 Feb
As a non-American living in America, during a pandemic, I'm both awed and horrified by this country's reverence for work.
When most people around the world talk about work-life balance, they mean *quality* of life vs hours of work. Here in America, the trade off seems to be about years off your actual life.
HALF A MILLION Americans are dead because of this pandemic and as far as I can tell a huge number of Americans are OK with this. They would rather talk about the weather.
Read 13 tweets
22 Feb
I've worked in a lot of different sciences and what I've discovered is that each science is its own slightly bizarre alternate reality where the scientific method turned out differently.
People say you're entitled to your own opinion but not your own facts. But I need you to hear this: every science has its own facts. And I don't want to freak you out but they don't even agree on what a "fact" actually is.
The scientific method relies on the answers to questions like 'what is evidence'? Sciences are free to answer these questions in their own way and to define their own scientific method.
Read 14 tweets
19 Feb
You may have heard "IQ is about 50% heritable". What you need to know is that by the same logic, "Experiencing Racism" is also heritable. A dark-skin man is likely to experience racism and his kids are likely to experience similar levels of racism to him.
If that man had children with someone white, their children's tendency to experience racism would be intermediate between both parents. Identical twins raised apart are likely to experience similar levels of racism.
Fraternal twins would be less likely to experience similar levels of racism than identical twins. Every pattern that we would normally look at to figure out if something is genetic would say "experiencing racism" is inherent and genetic.
Read 5 tweets
17 Feb
Some people follow me for my statistics insights. Other people like me for my social commentary. This thread explains how those things are related. 👇
A lot of people don't understand statistics. Statistics is critical thinking with numbers. In statistics, the goal isn't to use numbers for the sake of using numbers. It's to use numbers in service of revealing the truth.
As a statistician, I believe it is my duty to not blindly follow the numbers but it's also my duty to fairly consider what numbers can tell us about the truth of things. It falls on statisticians to sit in this in-between place and hold space.
Read 9 tweets
17 Feb
I now have 54k followers which is bigger than the population of my home country (The Federation of St. Kitts and Nevis). 🇰🇳

When you leave home, you dream of “making it big”. Well today I have exceeded the theoretical maximum fanbase size of my home country. 😂
FYI. St. Kitts-Nevis is in the Caribbean...
It's very beautiful...
Read 4 tweets
2 Feb
A bit of personal news. I got vaccinated for covid-19!
I feel more than a little embarrassment over this privilege but hopefully this will encourage people who are hesitant about the vaccine to feel a little more confident. I've been working in biotech for years and I felt taking the vaccine was the right decision for me.
I wasn't expecting to be vaccinated anywhere near this early but it happened because the lab I'm in at Harvard is part of an institution that sees patients.
Read 4 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!