In the two videos below Simon writes a JavaScript program using Linear Regression in Atom and gives a whiteboard lecture on the Linear Regression algorithm, both following a tutorial on Linear Regression by Daniel Shiffman.
Simon made a mistake in the formula using the sigma operator. He corrected it later. It should be i=1 (not i=0).