Below is a Python program that calculates and from the data set used in the interactive linear regression: