Comprehensive Guide to Statistics
Comprehensive Guide to Statistics
Table of Contents
Descriptive............................................................................................................................................2
Inferancial stats.....................................................................................................................................2
Population & Samples.....................................................................................................................2
Sampling Techniques..................................................................................................................2
Varialbe:................................................................................................................................................3
Quantative...................................................................................................................................3
Qualitative/Categorical...............................................................................................................3
variale measurement scale...............................................................................................................3
Nominal.......................................................................................................................................3
ordinal.........................................................................................................................................3
Interval........................................................................................................................................3
Ratio............................................................................................................................................3
Descriptive Statistics............................................................................................................................3
Measure of central tendency............................................................................................................3
Mean............................................................................................................................................3
Median........................................................................................................................................3
Mode...........................................................................................................................................4
Measure f Spread (Variaility)...........................................................................................................4
Range..........................................................................................................................................4
Variance.......................................................................................................................................4
Standard Deviation......................................................................................................................4
Measures of Shape...........................................................................................................................4
Symmetry....................................................................................................................................4
Modality......................................................................................................................................4
Inferantial Statistics..............................................................................................................................5
Confidence Interval..........................................................................................................................5
Point Estimate.............................................................................................................................5
Interval Estimate.........................................................................................................................5
Hypothesis testing............................................................................................................................5
Null Hypothesis:.........................................................................................................................5
Alternate Hypothesis...................................................................................................................5
Regression Analysis.........................................................................................................................5
Statistics is a branch of mathamatis that involvs the colelction, aalsis, interpretation,
presentaion and organization fo data.
Types of Statistics
Descriptive
Organizing and summarizing data in a meaningful way. Ex: what si the everage marks of students in
a calss? What is the percentae of students passin out of the exam
Inferancial stats
Data is measured to form inferences/conclusions based on samples of data collected. Ex: are the
ages of the students of thsi calls ssimilar tot e age of the Maths class in the college?
Sampling Techniques
1. Simple Random sampling: Every member of the populatio has equal chance of bei selected for
your sample n. ex: go and pick rando people for survay for exit poll
2. Stratified Samplig: Where the population is split into non-overlapping groups(strata). Ex:
gender/age group/continent/profession/earning groups/etc based survey. : RBI’s housin sruvey.
Drug sampling for testing
3. Systematic Sampling: ex: pick every Nth population(or regular interval) as sample.
4. Convenience/cluster Sampling: divindin the populaton into smaller sections or clusters hen
randomly slecting one or more of the clusters and using lal of its members as members of the
sample. Tsi techniques is used when the population is large spread across geographic area. : small
business owners sampling based on random zip code
Varialbe:
A variable is a property that can take any value. Their are two typoes of avriable
Quantative
Measured numerically. Can add, subtract, multiply ad device. Two types: Descrete and continuous
Qualitative/Categorical
Based on characteristics we can derive some categorical variale. Doesnot support arithemetic
operation. Ex: gender(male/Femele), IQ(0-50, 51-100), lood group(0+, 0-)
ordinal
Order(rank) of the data matters but value doesnot
Interval
Order matters,value also atters, natural zero not present s
Ratio
Frequency Destribution
Comulative frequency
Descriptive Statistics
Measure of central tendency
Refers to the measure used to deterine the centre of the distriution of data. Mean, median and mode.
Mean
Also called the averae, calculated as
sum of total elements / number of elements
Median
Formula: (N+1)/2
If number of values is ODD, the median is the middle value when arranged in ascending
order
If the number of values is EVEN, the median is the average of the two middle value when
arranged ascending order.
Median works well with outliers.
Mode
Most frequently occuring value in a given dataset
used to fill the missing elements of the dataset
works well with categorical elements
Variance
Standard Deviation
Formula = Variance
Percentile
A percentile is a value elow which a certain percentage fo observations lie.
Quartile
Distribution
Normal Distribution
Z score
Formula = (Xi - mean)/standard deviation
1.50minutes fo video
Log Normal Disytriution
erailis Distribution
Binomial Distriution
Measures of Shape
Symmetry
Postive skew: when the tail in the graph is longer and flatter on the right side
Negativer skew: when the tail in the graph is longer ad flatter on the left side
Modality
Determined by the number of peaks it has.
Unimodal: 1 peak
Bimodal: 2 peak
Multimodal: multiple peaks
Inferantial Statistics
Confidence Interval
Estimate: is specific observed numerical value used to estimate an uknown population paramater.
Two types:
Point Estimate
Single numerical value used to estimate an unknown population parameter. Sample ea is a point
estimate fo a population mean.
Interval Estimate
Range of values used to estimate an known population parameter.
Hypothesis testing
Hypothesis testing is a statistical method used to make inferences or draw conclusions about a
population based on a sample of data. In the context of AI, hypothesis testing plays an important
role in model evaluation, model selection, and decision-making processes. Here’s how it is applied:
1. Model Evaluation
When developing AI models, particularly in machine learning, hypothesis testing can be used to
evaluate the effectiveness of the model on a given dataset. For example, one might want to test if a
new model performs significantly better than a baseline model.
Example:
Null hypothesis (H₀): The new model's performance is the same as the baseline model.
Alternative hypothesis (H₁): The new model's performance is different (or better) than the
baseline model.
Using statistical tests like the t-test, we can decide whether to accept or reject the null hypothesis
based on model performance metrics (such as accuracy, precision, or F1 score).
3. Feature Selection
In machine learning, hypothesis testing can help in selecting relevant features. By testing whether
the correlation between features and the target variable is statistically significant, one can decide
which features should be retained.
Example:
Null hypothesis (H₀): There is no significant relationship between a feature and the target
variable.
Alternative hypothesis (H₁): The feature has a significant relationship with the target
variable.
Hypothesis tests such as the chi-square test or correlation tests can be used to evaluate these
relationships.
The null hypothesis serves as a starting point for statistical testing, establishing a baseline
assumption of no effect or no relationship. Its role is critical in determining whether observed
patterns or differences in data are statistically significant or if they occurred by random chance.
Null Hypothesis:
The null hypothesis (denoted as H₀) is a fundamental concept in statistical hypothesis testing. It
represents a statement or assumption that there is no effect, no difference, or no relationship
between variables in a given context. In other words, it suggests that any observed effect or
relationship in the data is due to random chance, rather than being a result of a specific factor or
intervention.
States there is no signficant difference between the populatio mean and the sample mean.
Key Characteristics of the Null Hypothesis:
1. Assumes no effect or no relationship: It suggests that whatever you are testing does not
cause a change or relationship. For example, if you're testing whether a new drug works, the
null hypothesis would state that the drug has no effect.
2. Tested against alternative hypothesis (H₁): The null hypothesis is typically tested against
an alternative hypothesis, which posits that there is an effect or relationship.
3. Basis for statistical tests: Statistical tests, such as the t-test, chi-square test, or ANOVA, are
used to determine whether the null hypothesis can be rejected in favor of the alternative
hypothesis. This is done by analyzing sample data and calculating the likelihood of
obtaining the observed results if the null hypothesis were true.
4. Reject or fail to reject: Based on the test results, we either:
Reject the null hypothesis if the data provides sufficient evidence that the null
hypothesis is unlikely to be true.
Fail to reject the null hypothesis if there is not enough evidence to support the
alternative hypothesis. Importantly, failing to reject the null hypothesis does not
prove it is true, just that there is insufficient evidence to conclude otherwise.
Alternate Hypothesis
The alternative hypothesis (denoted as H₁ or Ha) is a statement in statistical hypothesis testing
that suggests there is an effect, a difference, or a relationship between variables. It is the opposite of
the null hypothesis (H₀), and it reflects the researcher's expectation or the theory being tested.
In simple terms, the alternative hypothesis proposes that something meaningful is happening in the
data—whether it's a relationship, a change, or an effect that is not due to random chance.
Key Characteristics of the Alternative Hypothesis:
1. Contrasts with the null hypothesis (H₀): The alternative hypothesis is essentially the claim
that challenges the null hypothesis. While the null hypothesis asserts that there is no effect or
relationship, the alternative hypothesis asserts that there is an effect or relationship.
2. Non-zero effect or relationship: It suggests that any observed difference or effect in the
data is real, not just a result of random variation.
3. Supports evidence against H₀: If the data shows strong evidence against the null
hypothesis (i.e., if the test statistic is sufficiently extreme), we reject the null hypothesis in
favor of the alternative hypothesis.
4. Can be one-tailed or two-tailed:
One-tailed alternative hypothesis: The alternative hypothesis specifies the
direction of the effect. For example, the mean of a new treatment is greater than the
mean of an old treatment.
Two-tailed alternative hypothesis: The alternative hypothesis does not specify the
direction of the effect, only that there is a difference. For example, the mean of a new
treatment is different from the mean of an old treatment (it could be either higher or
lower).
T-test
The t-test is a statistical test used to determine if there is a significant difference between the means
of two groups or samples. It is commonly used when the sample size is small (typically less than
30) and the population standard deviation is unknown. The t-test helps to assess whether the
difference observed in the sample data is likely to be genuine or if it could have occurred by random
chance.
Types of t-Tests:
1. One-Sample t-test: Used to compare the mean of a single sample to a known value or
population mean.
Example: Testing whether the average height of a sample of students is different
from the national average height.
2. Independent Two-Sample t-test: Used to compare the means of two independent groups
(i.e., two different samples or populations).
Example: Testing whether the average test scores differ between two classes of
students.
3. Paired Sample t-test (Dependent t-test): Used to compare the means of two related or
matched groups (i.e., when the data consists of paired observations).
Example: Testing whether a new teaching method improves students' scores by
comparing their scores before and after the method is applied.
t-test Formula:
The formula for the t-statistic depends on the type of t-test you are conducting. Here's the general
formula for the independent two-sample t-test:
Where:
X1ˉ,X2ˉ are the sample means of the two groups.
s12,s22 are the sample variances of the two groups.
n1,n2 are the sample sizes of the two groups.
For a paired t-test, the formula would involve the differences between the paired observations:
Where:
dˉ is the mean of the differences between paired observations.
sd is the standard deviation of those differences.
n is the number of pairs.
Chi-square test
he Chi-square test (often denoted as χ2) is a statistical test used to determine whether there is a
significant association or difference between categorical variables. It is commonly used in cases
where you want to compare observed data with expected data, or to check the independence of two
categorical variables. There are two primary types of Chi-square tests:
1. Chi-square Test of Independence
2. Chi-square Goodness-of-Fit Test
Where:
Oij is the observed frequency for category i,j.
Eij is the expected frequency for category i,j under the assumption that the variables are
independent.
The expected frequency Eij is calculated as:
Where:
Oi is the observed frequency for category i.
Ei is the expected frequency for category i, based on the hypothesis (e.g., if the die is fair,
each face should have an expected frequency of 60/6=10).
ANOVA is commonly used when you have more than two groups or conditions to compare, and it
helps you avoid performing multiple t-tests (which would increase the risk of Type I errors).
Instead, ANOVA evaluates the overall differences among group means in a single test.
Types of ANOVA
1. One-Way ANOVA: Used when you have one independent variable (factor) with more than
two levels (groups), and you're interested in testing if the means of these groups are
significantly different from each other.
Example: Testing the average test scores of students taught with three different
teaching methods (Method A, Method B, Method C).
2. Two-Way ANOVA: Used when you have two independent variables (factors), and you want
to assess:
The main effect of each factor (independent variable).
The interaction effect between the two factors.
Example: Investigating how both teaching method (Method A, Method B, Method
C) and gender (Male, Female) affect test scores.
3. Repeated Measures ANOVA: Used when the same subjects are measured multiple times,
such as when each participant undergoes several treatments or assessments.
Example: Measuring the effect of three different diets on weight loss over three
months in the same group of individuals.
4. Multivariate Analysis of Variance (MANOVA): A generalization of ANOVA that allows
for more than one dependent variable.
Example: Testing how different teaching methods affect both test scores and
student satisfaction.
Z-test
Z-Test: Definition and Overview
A Z-test is a statistical test used to determine whether there is a significant difference between the
sample mean and the population mean, or between two sample means, under the assumption that
the data follows a normal distribution. It is called a Z-test because it uses the Z-score (a standard
score) to calculate the probability of observing the data.
Z-tests are most commonly used when the sample size is large (typically n>30) or when the
population standard deviation (σ) is known.
Types of Z-Tests
There are different variations of the Z-test, depending on the specific situation:
1. One-Sample Z-Test: Used to compare the sample mean to the known population mean.
2. Two-Sample Z-Test: Used to compare the means of two independent samples.
3. Z-Test for Proportions: Used to compare the observed proportion in a sample to a known
population proportion.
Where:
X = sample mean (for a one-sample test) or difference in means (for a two-sample test)
μ = population mean (for a one-sample test) or the hypothesized population mean (for a two-
sample test)
σ = population standard deviation (for a one-sample test) or pooled standard deviation (for a
two-sample test)
n = sample size
One-Sample Z-Test
This test is used when you want to compare the mean of a single sample to a known population
mean.
Hypotheses:
Null hypothesis (H₀): The sample mean is equal to the population mean (μ).
Alternative hypothesis (H₁): The sample mean is not equal to the population mean.
Steps:
1. State the Hypotheses:
H₀: μ=μ0 (the population mean is equal to a known value).
H₁: μ=μ0 (the population mean is different from the known value).
2. Set the Significance Level (α): Typically, α=0.05 (5%), though other values can be used
depending on the situation.
3. Calculate the Z-Score:
Where X is the sample mean, μ0 is the population mean, σ is the population standard deviation, and
n is the sample size.
Find the P-value: Using the Z-score, find the corresponding p-value from the standard
normal distribution. If the test is two-tailed, you’ll look for the probability of getting a Z-
score as extreme or more extreme than the observed one.
Decision Rule:
If the p-value is less than or equal to the significance level α, reject the null hypothesis.
If the p-value is greater than α, fail to reject the null hypothesis.
Example:
Suppose you want to test if the average height of a group of people differs from the known
population mean of 170 cm. You collect a sample of 100 people with a sample mean height of 172
cm and a population standard deviation of 10 cm.
Using the Z-test formula:
Where:
Xˉ1 and Xˉ2 are the sample means,
σ1 and σ2 are the population standard deviations of the two samples,
n1 and n2 are the sample sizes of the two groups.
Steps for Two-Sample Z-Test:
1. State the Hypotheses:
H₀: μ1=μ2 (the means of the two populations are equal).
H₁: μ1=μ2 (the means of the two populations are different).
2. Set the Significance Level: Typically, α=0.05.
3. Calculate the Z-Score using the formula above.
4. Find the P-value from the Z-distribution.
5. Decision Rule: Reject the null hypothesis if the p-value is less than or equal to the
significance level α.
Where:
p is the sample proportion,
P is the population proportion,
n is the sample size.
Steps for Z-Test for Proportions:
1. State the Hypotheses:
H₀: p=P (the sample proportion is equal to the population proportion).
H₁: p=P (the sample proportion is not equal to the population proportion).
2. Set the Significance Level: Typically, α=0.05.
3. Calculate the Z-Score using the formula.
4. Find the P-value from the Z-distribution.
5. Decision Rule: Reject the null hypothesis if the p-value is less than or equal to α.
Example (Proportion):
Suppose a company claims that 80% of their products pass quality control. You sample 200
products and find that 170 pass the test. The sample proportion is p=200170=0.85.
Now, calculate the Z-score to see if this proportion significantly differs from the claimed 80%
(0.80):
For a two-tailed test with α=0.05, the critical Z-value is approximately ±1.96. Since 1.77 <
1.96, you fail to reject the null hypothesis, meaning there is no significant difference between
the sample proportion and the claimed population proportion.
Conclusion
The Z-test is a powerful statistical tool used to test hypotheses about population parameters (mean
or proportions) based on sample data. It is commonly used when the sample size is large and the
population standard deviation is known. Z-tests are used for:
One-sample Z-test (comparing a sample mean to a population mean),
Two-sample Z-test (comparing two independent sample means),
Z-test for proportions (comparing observed proportions to known population proportions).
By calculating the Z-score and comparing it to the critical value (or finding the p-value), you can
make inferences about the population based on the sample data.
Mann-Whitney U test
Bootstrap methods test
P-Vaqlues
A p-value (short for probability value) is a fundamental concept in statistical hypothesis testing. It
helps you assess the strength of the evidence against the null hypothesis (H₀). In simple terms, the
p-value tells you how likely it is that the observed data (or something more extreme) would occur if
the null hypothesis were true.
Definition:
P-value is the probability of obtaining results at least as extreme as the observed results,
assuming that the null hypothesis is true.
A small p-value suggests that the observed data is unlikely under the null hypothesis, and
you might reject the null hypothesis.
A large p-value suggests that the observed data is consistent with the null hypothesis, and
you may fail to reject it.
Key Points:
1. Interpretation:
The p-value is a measure of how compatible your data is with the null hypothesis.
A small p-value (typically ≤ 0.05) indicates strong evidence against the null
hypothesis, leading you to reject the null hypothesis.
A large p-value (> 0.05) suggests that the data is consistent with the null hypothesis,
leading you to fail to reject the null hypothesis.
2. Threshold/Significance Level (α):
The p-value is compared to a pre-determined threshold known as the significance
level, often denoted by α. The most commonly used value for α is 0.05 (5%
significance level).
If p ≤ α (e.g., 0.05), you reject the null hypothesis (indicating a statistically
significant result).
If p > α, you fail to reject the null hypothesis (indicating no statistically
significant result).
3. Not "Proof" of the Hypothesis:
A p-value does not prove that the null hypothesis is true or false. It simply provides
evidence to support or undermine the null hypothesis.
A p-value is not the probability that the null hypothesis is true or false. Instead, it’s
the probability of observing your data (or something more extreme) assuming the
null hypothesis is true.
Example:
Suppose you're conducting a hypothesis test to determine if a new drug affects blood pressure more
than a placebo.
Null hypothesis (H₀): The new drug has no effect on blood pressure (i.e., the mean
difference in blood pressure between the drug and placebo groups is zero).
Alternative hypothesis (H₁): The new drug has an effect on blood pressure (i.e., the mean
difference in blood pressure between the drug and placebo groups is not zero).
After conducting the statistical test, you get a p-value of 0.03.
If you use a significance level of α=0.05, since p = 0.03 ≤ 0.05, you would reject the null
hypothesis, concluding that there is significant evidence to suggest that the drug does affect
blood pressure.
If the p-value had been 0.08, you would fail to reject the null hypothesis, because 0.08 is greater
than 0.05, suggesting that there is not enough evidence to support the claim that the drug affects
blood pressure.
Limitations of p-values:
1. Arbitrary Thresholds: The threshold of 0.05 for statistical significance is somewhat
arbitrary and can lead to over-interpretation. A p-value just below 0.05 is not necessarily
strong evidence, and a p-value just above 0.05 is not necessarily weak evidence.
2. Doesn't Measure Effect Size: A small p-value doesn’t tell you anything about the
magnitude of the effect (e.g., how large or important the difference between groups is). For
that, you need to look at the effect size.
3. Multiple Comparisons: When conducting multiple hypothesis tests, the probability of
obtaining at least one significant result due to random chance increases. This is called the
multiple comparisons problem, and adjustments (like the Bonferroni correction) are
often needed to account for this.
4. Not the Probability of the Null Hypothesis: A common misconception is that the p-value
tells you the probability that the null hypothesis is true. In reality, the p-value is a measure of
the likelihood of the observed data given the null hypothesis, not the probability that the null
hypothesis is true.
Example Scenarios:
1. Medical Testing:
Type I error: A medical test incorrectly identifies a healthy person as sick (false
positive), leading to unnecessary treatment.
Type II error: The test fails to identify a sick person, leading to no treatment or
diagnosis (false negative).
2. Drug Testing:
Type I error: Approving a drug as effective when it actually has no effect, leading to
potentially harmful or ineffective treatment being sold.
Type II error: Failing to approve a drug that is actually effective, causing a delay in
patient care or lost opportunity for effective treatment.
3. Quality Control in Manufacturing:
Type I error: Rejecting a batch of products that is actually of good quality (false
positive).
Type II error: Accepting a batch of products that is defective (false negative).
Conclusion:
Type I Error: Rejecting a true null hypothesis (false positive).
Type II Error: Failing to reject a false null hypothesis (false negative).
Understanding and balancing Type I and Type II errors is critical in designing experiments and
making informed decisions based on statistical tests. Researchers aim to control both errors through
appropriate study design, sample size, significance level, and power analysis to ensure reliable and
meaningful results.
Level of Significance
Level of Significance (α\alpha)
The level of significance (denoted as α\alpha) is a key concept in hypothesis testing. It represents
the threshold for deciding whether the results of a statistical test are statistically significant or not.
In other words, it is the probability of rejecting the null hypothesis (H₀) when it is actually true
(i.e., the probability of making a Type I error).
Example:
Imagine you are testing whether a new drug has a statistically significant effect on blood pressure,
compared to a placebo.
Null hypothesis (H₀): The new drug has no effect on blood pressure (the mean difference
between the drug and placebo groups is zero).
Alternative hypothesis (H₁): The new drug does have an effect on blood pressure (the mean
difference is not zero).
Suppose you choose a significance level of α=0.05\alpha = 0.05.
After conducting the statistical test (e.g., a t-test), you get a p-value of 0.03.
Since p-value (0.03) < α\alpha (0.05), you reject the null hypothesis and conclude
that the drug has a statistically significant effect on blood pressure.
Alternatively, if you get a p-value of 0.08:
Since p-value (0.08) > α\alpha (0.05), you fail to reject the null hypothesis, meaning
there is not enough evidence to support the claim that the drug has an effect on blood
pressure.
Summary:
Level of Significance (α\alpha): The threshold probability for rejecting the null hypothesis.
It is the probability of making a Type I error (false positive).
Common Values: 0.05, 0.01, 0.10, depending on the field of study and consequences of
errors.
Decision Rule: Compare the p-value with α\alpha:
If p ≤ α\alpha, reject the null hypothesis.
If p > α\alpha, fail to reject the null hypothesis.
Choosing α\alpha: Depends on the desired balance between Type I and Type II errors and
the consequences of making those errors in the context of the research.
The level of significance plays a crucial role in the hypothesis testing framework and helps
determine whether the observed data provides sufficient evidence to reject the null hypothesis.
Regression Analysis
Use Case: The F1 score is useful when you need a balance between precision and recall and
there is an uneven class distribution.
ROC Curve and AUC (Area Under the Curve):
ROC Curve: A graphical representation of the trade-off between true positive rate
(sensitivity) and false positive rate (1 - specificity) at various thresholds.
AUC: The area under the ROC curve. AUC ranges from 0 to 1, with 1 indicating a perfect
model and 0.5 indicating a random model.
Use Case: AUC is a good metric when you want to compare classifiers and their ability to
distinguish between classes.
Specificity (True Negative Rate):
Definition: The proportion of actual negatives that are correctly identified.
Formula:
1. Use Case: Specificity is important in cases where the focus is on avoiding false positives.
2. Regression Metrics
In regression tasks (e.g., predicting house prices, stock prices, etc.), the goal is to predict continuous
numeric values. Some common metrics include:
1. Mean Absolute Error (MAE):
Definition: The average of the absolute differences between predicted and actual
values.
Formula:
Use Case: MAE is interpretable and gives a clear measure of the average error.
Mean Squared Error (MSE):
Definition: The average of the squared differences between predicted and actual values.
Formula:
Use Case: MSE penalizes larger errors more significantly than MAE due to the squaring of
the error terms.
Root Mean Squared Error (RMSE):
Definition: The square root of the mean squared error.
Formula:
Use Case: RMSE is sensitive to large errors and provides an interpretable error measure in
the same units as the target variable.
R-squared (R2):
Definition: The proportion of variance in the dependent variable that is predictable from the
independent variables. R-squared is a measure of how well the model fits the data.
Formula:
Use Case: A higher R-squared value indicates that the model explains a larger proportion of
the variance in the target variable.
Adjusted R-squared:
Definition: A modification of R2 that adjusts for the number of predictors in the model,
preventing overfitting.
Formula:
1. Where:
n is the number of observations,
p is the number of independent variables.
Use Case: Adjusted R2 is particularly useful when comparing models with different
numbers of predictors.
3. Cross-Validation
Cross-validation is a technique used to assess the generalization ability of a model. It involves
splitting the data into multiple subsets (folds), training the model on some subsets, and testing it on
others. The most common method is k-fold cross-validation, where the data is split into k subsets,
and the model is trained and tested k times, each time using a different fold for testing.
Benefits: Cross-validation helps mitigate the bias that might arise from a single train-test
split, giving a more reliable estimate of model performance.
Other Considerations
Bias-Variance Trade-off: Model evaluation helps identify whether the model is suffering
from bias (underfitting) or variance (overfitting).
Learning Curves: Plotting the model’s training and validation errors as the number of
training samples increases can provide insights into how the model is learning and whether
it needs more data or hyperparameter tuning.
Hyperparameter Tuning: Evaluation metrics can guide you in tuning model
hyperparameters (e.g., regularization strength, number of trees in a random forest, etc.) to
improve performance.