Covariance  Excel
In order to do this section, download this Excel file called
Temperature.
To download Excel files, you must configure your browser (Netscape) to recognize these files. If your browser has not been set up for Excel files yet, click here to learn how.
Recall in the introduction of this lesson, the question of how temperatures changes with latitude and longitude. The Excel file you downloaded contains the temperatures, latitudes and longitudes for thirty U.S. cities. The data gives the normal average January minimum temperature in degrees Fahrenheit with the city's latitude and longitude.
We will use this data to help us explore how temperature changes from north to south and from east to west..
 Intuitively, we would expect that the further south the city is, the temperature will be greater. Look at the graph in the spreadsheet to answer the following questions.
 Does the graph support this intuition? Explain.
 What would the sign of the slope of the bestfitting line be?
 Which cities would you consider outliers?

 Find the sum and mean of the temperature data (COLUMN A).
 List at least two cities who have "average" temperatures.

 Find the sum and mean of the latitude data (COLUMN B).
 List at least two cities that are close to the "average" latitude.
 List three cities whose temperature and latitude are close to the mean data point. Recall, that this is the point formed from the x (or temperature) mean and the y (or latitude) mean.
 Calculate the deviations for the temperature (COLUMN D) and latitude (COLUMN E) data.
 Without doing any calculations, what is the mean of both deviation lists?
 Fill in the blanks to the following sentences with either greater than or less than.
 Miami, Florida's temperature is ______ than average and its latitude is ______ than average. Therefore, the sign of Miami's contribution to the covariance is _________.
 Seattle, Washington's temperature is ______ than average and its latitude is ______ than average. Therefore, the sign of Seattle's contribution to the covariance is _________.
 St. Louis, Missouri's temperature is ______ than average and its latitude is ______ than average. Therefore, the sign of St. Louis' contribution to the covariance is _________.
 List the cities from smallest to largest, in terms of its relative influence on the covariance.

 Calculate the product of deviations (COLUMN F).
 What type of cities have the most influence on the covariance?
 Calculate the covariance. (The mean of the product of deviations.)
 Recall, that the sign of the covariance and the sign of the slope of the bestfitting line are the same.
 Look at your answer to part 1b.) , does the sign of the covariance you calculated support your answer?
The following questions relate to the temperature and longitude data located to the right of the latitude data in the spreadsheet.
 Look at the graph of temperature versus longitude.
 Do you see a relationship between the two? If so, what is it?
 Would the sign of the slope of the bestfitting line be positive, negative or close to 0?
 For the temperature versus longitude data,
 Find the sum and mean for the temperature and longitude data. (COLUMNS H and I)
 Calculate the temperature and longitude deviations. (COLUMNS J and K)
 Calculate the product of deviations. (COLUMN L)
 Find the covariance. (CELL L35)
 Use question 5 as a guide to explain the connection between temperature, longitude and covariance for the following cities.
 Portland, ME
 Denver, CO
 Cincinnati, OH
 Does your answer for the covariance support your answer to 8a) and 8b).
 Compare the two covariances you calculated for the longitude and the latitude.
 If you had to predict the temperatures for cities not listed in the spreadsheet, would you use the city's latitude or longitude to get a more accurate prediction? Explain.
Return to Variance Title Page.
Return to Covariance Title Page.