

Now in the ‘Format Trendline’ pane on the right, select ‘Linear Trendline’ and ‘Display Equation on Chart’.To do this, right-click on any data point and select ‘Add Trendline.’ Now a scatter plot will appear, and we would draw the regression line on this.Click on ‘Insert’ and expand the dropdown for ‘Scatter Chart’ and select ‘Scatter’ thumbnail (first one).Select the two columns of the dataset (x and y), including headers.Let us first see how only age affects medical expenses.

Now with an insight into the individuals’ characteristics like age and BMI, we wish to find how these variables affect the medical expenses, and hence use these to carry out regression and estimate/predict the average medical expenses for some specific individuals. Let us say we have a dataset of some individuals with their age, bio-mass index (BMI), and the amount spent by them on medical expenses in a month. You can download this Linear Regression Excel Template here – Linear Regression Excel Template Method #1 – Scatter Chart with a Trendline
