Statistics for Machine Learning A-Z
Last Updated on January 6, 2023 by Editorial Team
Last Updated on June 12, 2022 by Editorial Team
Author(s): Gencay I.
Originally published on Towards AI the World’s Leading AI and Technology News and Media Company. If you are building an AI-related product or service, we invite you to consider becoming an AI sponsor. At Towards AI, we help scale AI and technology startups. Let us help you unleash your technology to the masses.
Briefly Explained
Contents
Β· Introduction
Β· Terms
β Numerical Variable
β Categorical Variable
β Continuous Variable
β Discrete Variables
β Dependent Variable:
β Independent Variable
β Observational Studies
β Experimental Studies
β Simple Random Sample
β Stratified Sample
β Placebo Effect
β Generalizability
β Histogram
β Dot plot
β Boxplot
β IQR
β Q3
β Q1
β Left skewed
β Right skewed
β Symmetric
β Mean
β Median
β Average
β Variance
β Standard deviation
β Mode
β Null Hypothesis
β Alternative Hypothesis
β P-Value
β Law of Large Numbers
β Mutually Exclusive ( Disjoint)
β Non-disjoint
β Probability Trees
β Normal Distribution
β Binomial Distribution
β Bernoulli Distribution
β PDF (Probability Density Function)
β Z Score
β Percentiles
β Sampling Variability
β Central Limit Theorem
β Confidence Interval
β Significance Level
β Power
β Accuracy
β Precision
β Statistical Inference
β Type 1 Error
β Type 2 Error
β T Distribution
β Degrees of Freedom
Β· Conclusion
Introduction
Programming, Statistics, Calculus.
These are 3 things that you should be familiar with if you would like to be involved in Machine Learning.
Image ByΒ Author
While there are too many courses that existed in the market, I love creating that kind of article to remind myself of theseΒ terms.
That helps me refresh my memories and make repetition.
Repetition is the mother of learning, the father of action, which makes it the architect of accomplishment.β ZigΒ Ziglar
Whether you are at the beginning of your Data Science or Machine Learning career or experienced one, that article will serve you to create a neural path in your mind about Statistics.
Letβs dive into these terms from beginning to intermediate.
Terms
Numerical Variable
The value that contains anΒ integer.
Categorical Variable
Contains categories instead of numbers, such as human body shapes such as; skinny, fat, or muscular.
Continuous Variable
1, 2, 3,4, 5,6, 7Β β¦ Take a number of values in a givenΒ range.
Discrete Variables
1, 5, 8, 11, 35Β . The specific set ofΒ values.
Dependent Variable:
The two variables, when one changes if the other will change will be dependent variables.
Independent Variable
If others won't change, independent.
Observational Studies
The methods won't be specified by researchers. For example, when they asked you about the method of losing weight, they do not offer you the method such as diet or sport, you could say whatever youΒ like.
Experimental Studies
Now there are limited options, choose one, diet orΒ sport.
Simple RandomΒ Sample
You could choose anything.
Stratified Sample
Split populations into the clusters, then randomly sample from eachΒ cluster.
Placebo Effect
You will use fakeΒ care.
Generalizability
Could we draw a conclusion as a result of our data on the population?
Histogram
It provides a useful view of dataΒ density.
Dot plot
If your sample size is small and you want to view individual dataΒ points.
Boxplot
It is good to see statistical values such as IQR andΒ median.
IQR
Interquartile range,Range of thee middle 50 %,Β Q3-Q1.
Q3
75th percentile.
Q1
25th percentile.
Left skewed
The tail will be on the right side and the density, mean<Β median.
Right skewed
The tail will be on the right, mean >Β median.
Symmetric
The mean and median are close together.
Mean
Arithmetic average.
Median
is the number that exists in theΒ middle.
1,5,7Β , medianΒ :Β 5
Average
Sum and divide by the number of integers,
a+b/2, a+b+c/3
Variance
The average squared deviation of theΒ mean.
n: number of sample
Variance = (Number1-mean)**2 + (number2 -mean) ** 2 β¦. + (number n-mean) **2 / (n-1)
Standard deviation
The square root of the variance.
Standard deviation : (Variance) ** 1/2
Mode
Most frequentΒ number.
1,4,4, 7Β , modeΒ :Β 4
Null Hypothesis
Nothing going on, everything should be theΒ same.
Alternative Hypothesis
Something going on, something should beΒ changed.
P-Value
The possibility of your null hypothesis isΒ true.
If the p-value < 0.05, you would reject the null hypothesis, and accept the alternative:
If the p-value >0.05, you would reject the alternative hypothesis.
Law of LargeΒ Numbers
As the sample size increases, the mean would be closer to the population means.
Mutually Exclusive ( Disjoint)
Cases that can not happen at identical times.
Non-disjoint
Cases that could happen at an identical time.
Probability Trees
The trees of continuous possibilities.
Normal Distribution
It is a probability distribution, that shape is symmetric around theΒ mean.
Binomial Distribution
Probability of success or failure ( 2 possible outcomes, like heads or tail.Β )
Bernoulli Distribution
It is a discrete distribution, and we have still 2 possible outcomes, 0 orΒ 1.
PDF (Probability Density Function)
The function provides the possibility of the value of a random variable will be in the predefined range.
Z Score
(observation-mean) /Β SD
Z score of the mean isΒ zero.
Percentiles
Sometimes images are stronger than words for describing.
Sampling Variability
It is impossible to gather data from the whole population, we will gather information from different samples and sampling them together viaΒ this.
Central LimitΒ Theorem
Describes shapes centers and spreads of sampling distributions when certain conditions are matched. (nearly normal population)(center-mean)(spread-SE)
Confidence Interval
A reasonable range of values for the population parameter is called a confidence interval.
%90 confident of the β Estimate Β±1.65βSE(Estimate)β
%95 confident that the β Estimate Β±1.96βSE(Estimate) = (xβ1.96Ο/βn, x+1.96Ο/βn)
% 99 confident that the β βEstimate Β±2.58βSE(Estimate)β
Significance Level
The probability of rejecting Ho when you shouldn't do.
Power
the likelihood of rejecting the null hypothesis when it should be rejected.
Accuracy
How close is your estimation to the trueΒ value?
Precision
It is a quality measurement, how close will your two measurements be to eachΒ other.
Statistical Inference
Finding a conclusion from your data by using statistics.
Type 1Β Error
It occurs when rejecting a null hypothesis but it should not have to be rejected.
Type 2Β Error
It occurs when the null hypotheses should be rejected but youΒ don't.
T Distribution
Comparing means while standard deviation isΒ unknown.
Degrees ofΒ Freedom
Determines thickness ofΒ tails.
As the degrees of freedom increase, the shape of the t-distribution approaches the normal distribution.
Conclusion
There are too many terms that existed which I maybe write another article in nearΒ future.
That depends both on the statistics of that article and myΒ path.
If you want a follow-up article to that one, do not forget βthumbs upβ and followΒ me.
Thanks again.
βMachine learning is the last invention that humanity will ever need to make.β NickΒ Bostrom
Statistics for Machine Learning A-Z was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.
Join thousands of data leaders on the AI newsletter. Itβs free, we donβt spam, and we never share your email address. Keep up to date with the latest work in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming aΒ sponsor.
Published via Towards AI