Skip to content

Commit 827a324

Browse files
committed
continue intro
1 parent b9f1aee commit 827a324

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

_data/navigation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# main links
22
main:
3+
- title: "Home"
34
- title: "About"
45
url: /about/
56
- title: "All Posts"

_posts/2025-02-20-intro.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
---
22
layout: single
3-
title: "Intro"
3+
title: "What is a data model?"
4+
excerpt: "An introduction to my notation and perspective of data science"
45
categories:
56
- Intro Data Science
67
tags:
78
- classification
89
toc: true
910
toc_label: "Table of Contents"
11+
# toc_icon:
12+
# header:
13+
# image:
14+
# teaser:
1015
---
1116

12-
# What is a data model?
13-
1417
*An introduction to my notation and perspective of data science*
1518

1619
I have studied data science at Georgia Tech for five years, tutored for four, and now decided to start a blog series. I start my introduction to data science from a mathematical approach. If you understand math fundamentals and machine learning terminology before looking at Python, models will make much more sense. Code is not the important part to understand, and unless you are practicing, you should never code without documentation, open-source searches, and LLMs (Cursor AI).
@@ -56,13 +59,13 @@ $$
5659

5760
Now $x = (x_1, x_2)$ represents two input variables that can be changed to change the value of $f$. To find the optimal solution for $x$, let's graph the feasible region.
5861

59-
<img src="images/intro-graph0.png" alt="alt" width="300">
62+
<img src="assets/post-images/intro-graph0.png" alt="alt" width="300">
6063

6164
The optimal solution for $x$ must lie in the first quadrant below the line $y = 2x$. The region is **unbounded** since the boundary region allows for $x_1$ and $x_2$ to approach infinity. Is there still an optimal solution? If $a_1$ and $a_2$ are positive, $x_1$ and $x_2$ have to be as small as possible to minimize $f$. So the problem does have a single optimal solution $x = (0,0)$. If $a_1$ is negative, then $x_1$ is pushed to be as large as possible and approaches infinity. So the problem is unbounded and has no solution. What if $a_1$ is zero and $a_2$ is positive? Then $x_1$ can be any value and $x_2$ must be as small as possible. So every value on the half-line $x_1 > 0$, $x_2 = 0$ (the positive $x$-axis) is an optimal solution. In any linear program, one of these three cases must occur: exactly one optimal solution, no optimal solution, or infinitely many optimal solutions.
6265

6366
The boundary region can become bounded by adding a third constraint, say $x_1 = 2$.
6467

65-
<img src="images/intro-graph1.png" alt="alt" width="300">
68+
<img src="assets/post-images/intro-graph1.png" alt="alt" width="300">
6669

6770
Now the problem will always have at least one optimal solution. If $a_1$ and $a_2$ are positive, the optimal solution is still $(0,0)$. If $a_1$ and $a_2$ are negative, then $x_1$ and $x_2$ are as large as possible and the optimal solution is $(2,4)$. More formally, you could think about comparing the objective value at the three boundary points, $f(0,0)$, $f(2,0)$, $f(2,4)$, and the minimum equals the optimal value.
6871

0 commit comments

Comments
 (0)