Member-only story
Linear, Exponential vs. Quadratic Functions: What’s the difference?
A guide on 3 common algebra functions used in data science and data analysis, with worked examples using cats 😺
1. Linear Functions
Linear functions are those whose graph is a straight line in the coordinate plane. It has the following form where x
is the independent variable (also called the input) and y
is the dependent variable (i.e. the output) :
a
is the slope (also known as gradient, coefficient) of the independent variablex
. It decides how quickly a change inx
impacts a change iny
b
is the intercept (also known as the constant). It is the value ofy
whenx
= 0 and can be visualised as the y-axis intercept
A simple example of linear functions
You adopted a kitten, 3-month-old Mr. Whiskers from the local animal shelter and he weighed 500g when you picked him up. During the following period, you notice that he gains ~ 200g per month. How much can you expect Mr. Whiskers to weigh when he turns 12 months old?