- Podcasts
- CyberSecurity Summary
- Statistics for Machine Learning: Implement Statistical methods used in Machine Learning using Python
Statistics for Machine Learning: Implement Statistical methods used in Machine Learning using Python
CyberSecurity Summary
- December 15, 2025
- 15 min
About this episodeAn educational resource detailing statistical concepts foundational to machine learning, including descriptive statistics (mean, median…
You can listen and download our episodes for free on more than 10 different platforms:
https://linktr.ee/cyber_security_summary
Get the Book now from Amazon:
https://www.amazon.com/Statistics-Machine-Learning-Implement-Statistical/dp/9388511972?&linkCode=ll1&tag=cvthunderx-20&linkId=334106a284fd7b6360bf1aa51ed5b699&language=en_US&ref_=as_li_ss_tl
Discover our free courses in tech and cybersecurity, Start learning today:
https://linktr.ee/cybercode_academy
Transcript
From the publisherThis transcript comes from the podcast’s own feed, shown as the publisher wrote it.
Statistics for Machine Learning: Implement Statistical methods used in Machine Learning using Python
It matters quite a bit, actually, mostly because it impacts how you encode that data before feeding it to a model. If the categories have absolutely no inherent rank or order, we call them nominal variables. Okay, think gender like male female, or maybe types of fruit apple, banana, orange. You can't really rank one above the other. Logically, they're just distinct groups.
There exactly, And knowing this difference is key before you start your future engineering phenomenal variables. The algorithm often needs to treat each category as totally separate, maybe using something called one hot encoding. But for ordinal variables you might be able to use encoding methods that preserve that ranking, which can sometimes make the model simpler or even more accurate. So yeah, knowing this distinction is pretty fundamental.
Well, mathematically, the mean is the center of balance for your data. But what's really interesting is how it connects directly to prediction. How So, when you build, say a simple linear regression model, what you're essentially doing is trying to draw a line that minimizes the square distance between that line and all your data points. Yeah, the mean turns out to be the single value that inherent only minimizes that scored error.
Couple interesting ones. It's the only measure of center that might not actually be present in your data, which sounds weird but can happen. And you can also have more than one mode, like bimodal exactly by moodal if there are two peaks, or even multimodal that can be a clue that your data might actually be composed of a couple of different underlying groups or clusters.
Okay, so mathematically, the standard deviation is just the square root of the variance. The absolute key difference is the units units. Yeah, variance is calculated using square differences, so it's units are the square of the original data's units. If you measure at height in meters, the variance is in meters squared, which is kind of awkward to interpret directly.
Perfect example, flip a coin just ten times, you might easily get say seven heads and three tails. That's pretty far from the expected fifty to fifty, right, But flip that same coin a million times or ten million times, the ratio of heads to tails is going to get incredibly close to exactly one to one. It converges on the true probability.
Always it's the statement of no effect, no difference, or no relation. For example, this new drug has no effect on recovery time compared to the place ebo. It's the status quo assumption, and we test that against against the alternative hypothesis. This is the statement that contradicts the null. It's what you, as the researcher, might actually suspect or hope to prove, like, no, this new drug does reduce recovery time.
Right, which leads to the provocative question. If the law of large numbers only guarantees truth over immense scale, how often are our everyday decisions, maybe in business, launching a new feature, or even interpreting a political poll, actually based on what could be called the fallacy of small.
So the question for you, the listener, is what level of statistical certainty that ninety five percent, that ninety nine percent are you willing to accept, Especially when you're moving from analyzing a potentially small, expensive sample to making a big assumption about the entire population, an assumption that could have major consequences, maybe cost millions.
