Fitting a Line in a Scatterplot

Latitude and Temperature

Below is a plot of mean April temperature versus latitude for eight cities.

Click on the graph. In the graph's inspector click on the ruler icon and then the check box to show a movable line in the plot. Drag the line until it is a good fit for the points.

Questions

  1. What is the equation of the line you chose?
  2. Fort Worth is at latitude 33 degrees. What would you predict its mean temperature in April to be?
  3. Suppose you go from a city at 45 degrees latitude to one at 35 degrees latitude. How much would you expect the mean temperature in April to change?

At Bats and Hits or RBI's

The two plots below show data for 1249 baseball players from the 2009 season. In the left plot, each player's number of hits for the season is plotted against his times at bat. In the right plot, each player's runs batted in (RBIs) is plotted against his times at bat.

Click on one of the graphs. In the inspector click on the ruler icon and then the check box to show a movable line. Do this for the other graph as well. Adjust the each line so that it passes through the middle of the cloud of points.

Questions

  1. What equation did you get for H?
  2. What equation did you get for RBI?
  3. Should these equations have non-zero intercepts? Explain.

    BTW, you can force the line to go through the origin using the Lock Intercept at Zero command in the gear menu.

Explore: Click on an axis or legend label to bring up a menu. Choose different variables to graph from the menu to look for interesting relationships in the baseball data.