I'm trying to learn Linear Regression and I'd like someone to look at my notebook to see if I miss out anything at all. How how else I can tune my model better. Here's my notebook.I get the dataset from here which is really simple. http://college.cengage.com/mathematics/brase/understandable_statistics/7e/students/datasets/slr/frames/frame.html%matplotlib inlineimport pandas as pdimport numpy as npfrom scipy import statsimport matplotlib.pyplot as pltdf = pd.read_csv('slr12.csv', names=['annual', 'cost'], header=0)df.describe()df.plot(kind='scatter', x='X', y='Y');slope, intercept, r_value, p_value, std_err = stats.linregress(df['X'], df['Y'])plt.plot(df['X'], df['Y'], 'o', label='Original data', markersize=2)plt.plot(df['X'], slope*df['X'] + intercept, 'r', label='Fitted line')plt.legend()plt.show()So from this trend we can predict that if you annual fee is high then you need your startup cost will be high as well.
Can I conclude my finding with just one linear regression result?
python;pandas;linear regression