In Part I (here), we discussed what are Piecewise-Linear Functions (PLFs). In Part II, this document, we are going to discuss how to estimate the coefficients. As it was mentioned in Part I, if we do not need to guarantee the continuity, all you need to do is to just fit a line to each…

# Category: Mathematics

## Piecewise-Linear Functions: Part I

We are going to divide this document in two parts. The first part, this document, we are going to discuss piecewise linear functions (PLFs) and how to implement one in Python. The second part, Part II, we will discuss how to fit the coefficients, detect the break-points locations, and even optimize the number of the…

## The shepherd who cried wolf!

How do you understand mathematics? I like to connect them to real world situations, real applications, physics, even stories. This helps me not just learning how to use mathematical techniques, but understanding them. Once an undergrad student who was working on classifying some aerial imagery reached out to me for some help. He wanted to…

## Solving System of Linear Equations

The problem This post is inspired by a mathematic problem posted in Mathematical Olympiads group on LinkedIn here. It is rather a simple question. Consider the image below: The question is, find $ x $! Of course, instead of “here it is!”, we are interested in the numeric value of $ x $. Other than…