Cost function linear regression python. For example consider the linear equation y=2x+3.

Cost function linear regression python. The cost function is also represented by J.