Mathematics for Artificial Intelligence

Mourya Sashank
3 min readJan 11, 2022

Part 1

Since childhood, we have been learning these creepy mathematical concepts like Algebra, Calculus, Statistics, and Probability. Have you ever asked yourself why? And How will these things help you in the future? Today I am going to help you out with that.

These mathematical concepts play a very crucial role in the field of Artificial Intelligence and Data Science. Mainly, statistics are concerned with collecting, organizing, analyzing, and interpreting data.

Statistics

Statistics is a branch of applied mathematics that involves collecting, describing, analyzing, and inferring conclusions from quantitative data. We need statistics to help transform observations into information and answer questions about statements' samples.

The statistics are mainly divided into two major areas:

  1. Descriptive Statistics
  • Here it can be population data or sample data.
  • Analyzing data, Summarizing data, Organizing data in the form of numbers and graphs.
  • Measure of Central Tendency, Measure of Variance
  • e.g., Bar plot, Pie chart, Histogram.

2. Inferential Statistics

  • Here it deals only with sample data.
  • It allows you to make predictions or inferences from the data.
  • Point Estimation, Interval Estimation.
  • eg., Z-test, T-test, Chi-square test, Annova test.

Now the question is:

How are these old statistical models used in Artificial Intelligence?

Measure of Central Tendency

  1. Mean: It is the average of the set of values considered.
  2. Median: It separates the higher half and lower half of the data.
  3. Mode: It is the most frequently appearing value.

Measure of Dispersion

  1. Range: Difference between the highest and lowest value.
  2. Interquartile Range: Quartiles divide a rank-ordered data set into four equal parts.
  3. Variance: Measures how far each number in the set is from the mean and therefore from every other group.
  4. Standard deviation: measures the variation or dispersion of a set of values from the mean.

Application of Machine Learning

Handling Missing Values in the Data Set

Mean/ Median/ Mode Imputation has the assumption that the data are missing completely at random (MCAR). We solve this by replacing the NAN with the most frequent occurrence of the variables.

Here is the code:

Advantages And Disadvantages of Mean/Median Imputation

Advantages

  1. Easy to implement(Robust to outliers)
  2. A faster way to obtain the complete dataset

Disadvantages

  1. Change or Distortion in the original variance
  2. Impacts Correlation

--

--