In this post, I explain what machine learning is and why linear algebra is important for it. I also briefly introduce EDA (Exploratory Data Analysis) and summarize common data-cleaning methods.
For English readers, a small note about terminology: in Korean math education, what English calls a linear equation is usually taught as a first‑order equation. Because of this mismatch, I did not initially connect the word “linear” with degree‑1 equations or with a linear system. In addition, the Korean translation of “linear algebra” can sound like “algebra about the shape of lines,” which further obscures the meaning. This explains why explanations that seem obvious in English texts (almost like A = A) needed to be spelled out in detail for me.
I looked for linear algebra books used as university textbooks, but most of them started chapter 1 with what a vector is and how to solve problems. I couldn’t find a clear definition. Even in the introductions that appear occasionally, there was a lack of a clear explanation about the definition of linear algebra.
However, what these documents commonly explain is that linear algebra is the discipline that deals with linear equations.
While digging through more linear algebra books, I found a book that explains linear systems. In the first chapter of Jim Hefferon, Linear Algebra (4th ed.), it begins with “Systems of linear equations are common in science and mathematics.” and it explains how linear equations are used in mathematics and science by giving examples such as how to balance two different objects on a lever and how to find the ratio of ingredients and products in the synthesis method of TNT (bomb raw material).


(Source): Jim Hefferon. Linear Algebra (4th ed.). chapter 1
Even looking at it like this, it doesn’t really click. What’s the difference between a linear equation and a general equation?
Personally, I think the name “linear algebra” is ambiguous, so it doesn’t click at once. So I searched “linear” in the Oxford dictionary.
(mathematics) able to be represented by a straight line on a graph
linear equations
Found it. A linear equation is a (straight-)line equation.
If an equation whose degree is greater than 1 is represented as a graph, the resulting graphs are no longer (straight-)linear.
Additionally, in Korea we refer to them as the “first-degree graph,” “second-degree graph,” and “third-degree graph,” but in English these are literally called the linear equation graph, quadratic equation graph, and cubic equation graph.
Because the expressions and their nuance differ, I had not connected that a “first-degree system of equations” corresponds to a linear system.
Quadratic equation graph (y = x^2)

Cubic equation graph (y = x^3)

Now I think I understand Wikipedia’s definition of linear algebra. Linear algebra is the branch of mathematics concerning linear equations
Machine learning is the discipline that studies methods of improving the system itself by using experience as a tool called a computer. In computer systems, experience generally exists in the form of data, and therefore the main content that machine learning studies can be said to be learning algorithms, that is, algorithms that create a model from data by using a computer.[^1]
But the shape of data can vary widely. Why do we specifically use the shapes of linear equations—matrices—vectors?
| 구 | 동 | 계약일 | 거래금액(만원) | 전용면적(㎡) | 층 | 건축년도 | 건물유형 |
|---|---|---|---|---|---|---|---|
| 동작구 | 신대방동 | 2025-12-31 | 73,000 | 59.76 | 4 | 1997 | 아파트 |
| 송파구 | 문정동 | 2025-12-31 | 17,050 | 19.74 | 7 | 2016 | 오피스텔 |
| 양천구 | 신정동 | 2025-12-31 | 122,800 | 113.91 | 16 | 2000 | 아파트 |
Isn’t it okay to just store each feature as individual data points like this?
WHEN two or more populations have been measured in several characters, xl, ... , x8, special interest attaches to certain linear functions of the measurements by which the populations are best discriminated.(Fisher, 1936, p. 179)
If we just compare data feature by feature, we might get a good look at things on a column level, but it’s really hard to relate the row context of that specific observation. Once we use linear combinations, though, we can finally compare those measurements while keeping the entire context in view.
When we are working to improve a system through experience, we need two things: the data itself and a clear criterion to classify that data correctly. My conclusion is that linear algebra is essential for machine learning because these linearly combined data sets are the perfect fit for those criteria
All in all, I have come to feel that my central interest is in data analysis, which I take to include, among other things: procedures for analyzing data, techniques for interpreting the results of such procedures, ways of planning the gathering of data to make its analysis easier, more precise or more accurate, and all the machinery and results of (mathematical) statistics which apply to analyzing data.(Tukey, 1962, p. 2)
The author breaks down what’s actually packed into 'data analysis':
But here’s the catch: if your data quality is poor, your analysis results are bound to be inaccurate. Raw data from the real world is messy—full of missing values, outliers, and duplicates. To bump up that data quality, we have to go through various preprocessing (data cleaning) steps first.
Missing Value. When data points are missing or simply not recorded.
| 구분 | MCAR | MAR | MNAR |
|---|---|---|---|
| Term | Missing Completely At Random | Missing At Random | Missing Not At Random |
| Definition | The missingness has absolutely nothing to do with any variables. | The missingness depends on other observed data, but not the missing value itself. | The missingness directly depends on the missing value itself. |
| Predictable | Impassible | Predictable using other variables | Can't predict without knowing the actual missing value. |
| Example | System glitch randomly drops transaction amounts. | March was packed with contracts, causing manual data entry skips. (Contract date explains it). | High-rollers dodging taxes deliberately skip reporting big transaction amounts. |
Here is how you handle missing values:
| Address1 | Address2 | Contract Date | Price(만원) | Floor Area(㎡) | Floor | Year Built | Building Type |
|---|---|---|---|---|---|---|---|
| 동작구 | 신대방동 | 2025-03-17 | NA | 59.76 | 4 | 1997 | 아파트 |
| 송파구 | 문정동 | 2025-12-31 | 17,050 | 19.74 | 7 | 2016 | 오피스텔 |
| 양천구 | 신정동 | 2025-12-31 | 122,800 | 113.91 | 16 | 2000 | 아파트 |
For example, delete first row because price of first row is missing value.
| Address1 | Address2 | Contract Date | Price(만원) | Floor Area(㎡) | Floor | Year Built | Building Type |
|---|---|---|---|---|---|---|---|
| 송파구 | 문정동 | 2025-12-31 | 17,050 | 19.74 | 7 | 2016 | 오피스텔 |
| 양천구 | 신정동 | 2025-12-31 | 122,800 | 113.91 | 16 | 2000 | 아파트 |
Running simulation tests to put the models above through the wringer. (Heads up: needs a quick fact-check & more details).
Data points that sit far away from expected observation baseline. These are anomalies that rarely pop up in normal datasets.
anomaly : A broader term for patterns that fail to follow expected behavior. It actually includes outliers under its umbrella. (Note: saving this for a deep dive later, skipping for this post).