Final answer:
To obtain the equation Excel fits to data, enter the data into columns, create a scatter plot, add a trendline, and select 'Display Equation on chart' to show the least-squares regression line.
Step-by-step explanation:
To find the equation that Excel fits to data using least-squares regression, you must first enter your data set into Excel. Then, you create a scatter plot. After plotting the data, you can use Excel's built-in functions to calculate the best-fit line or least-squares regression line.
Here is a step-by-step method:
- Enter your data into two columns in Excel to represent the x (independent variable) and y (dependent variable).
- Select the data and insert a scatter plot via the Charts section in the Insert tab.
- Click on the scatter plot, then select the 'Add Trendline' option from the Chart Tools menu.
- Choose 'Linear' as the trendline option.
- To display the equation on the chart, check the 'Display Equation on chart' box within the trendline options.
- The equation will be in the form y = mx + b, where m is the slope and b is the y-intercept, rounded to four decimal places.
If you are using a graphing calculator, such as a TI-83 or TI-84, after entering your data, you can use the 'STAT' then 'CALC' functions to find the 'LinReg(ax+b)' which will give you the slope and y-intercept values for the least-squares regression line equation.