Classical Least Squares
[10/100%]Hooke's law says that the displacement of an ideal spring is proportional to the force that is applied — i.e., for some constant . Consider a spring in which is unknown. Various masses are attached, and the resulting displacements shown below are observed. Using these observations, determine the least squares estimate for .
Figure 4.6.6
Show that the slope of the line that passes through the origin in and comes closest in the least squares sense to passing through the points is given by .
A small company has been in business for three years and has recorded annual profits (in thousands of dollars) as follows.
Assuming that there is a linear trend in the declining profits, predict the year and the month in which the company begins to lose money.
An economist hypothesizes that the change (in dollars) in the price of a loaf of bread is primarily a linear combination of the change in the price of a bushel of wheat and the change in the minimum wage. That is, if is the change in bread prices, is the change in wheat prices, and is the change in the minimum wage, then . Suppose that for three consecutive years the change in bread prices, wheat prices, and the minimum wage are as shown below.
Use the theory of least squares to estimate the change in the price of bread in Year 4 if wheat prices and the minimum wage each fall by $1.
Suppose that a researcher hypothesizes that the weight loss of a pint of ice cream during storage is primarily a linear function of time. That is,
where the weight loss in grams, the storage time in weeks, and is a random error function whose mean value is . Suppose that an experiment is conducted, and the following data is obtained.
Determine the least squares estimates for the parameters and .
Predict the mean weight loss for a pint of ice cream that is stored for 20 weeks.
After studying a certain type of cancer, a researcher hypothesizes that in the short run the number () of malignant cells in a particular tissue grows exponentially with time (). That is, . Determine least squares estimates for the parameters and from the researcher's observed data given below.
Using least squares techniques, fit the following data
with a line and then fit the data with a quadratic . Determine which of these two curves best fits the data by computing the sum of the squares of the errors in each case.
Consider the time () it takes for a runner to complete a marathon (26 miles and 385 yards). Many factors such as height, weight, age, previous training, etc.can influence an athlete's performance, but experience has shown that the following three factors are particularly important:
A linear model hypothesizes that the time (in minutes) is given by , where is a random function accounting for all other factors and whose mean value is assumed to be zero. On the basis of the five observations given below, estimate the expected marathon time for a 43-year-old runner of height 74 in., weight 180 lbs., who has run 450 miles during the previous eight weeks.
What is your personal predicted mean marathon time?
For and , prove that is a least squares solution for if and only if is part of a solution to the larger system
It is not uncommon to encounter least squares problems in which is extremely large but very sparse (mostly zero entries). For these situations, the system above will usually contain significantly fewer nonzero entries than the system of normal equations, thereby helping to overcome the memory requirements that plague these problems. Using this system also eliminates the undesirable need to explicitly form the product — recall from Example 4.5.1 that forming can cause loss of significant information.
In many least squares applications, the underlying data matrix does not have independent columns — i.e., — so the corresponding system of normal equations will fail to have a unique solution. This means that in an associated linear estimation problem of the form
there will be infinitely many least squares estimates for the parameters , and hence there will be infinitely many estimates for the mean value of at any given point — which is clearly undesirable. In order to remedy this problem, we restrict ourselves to making estimates only at those points that are in the row space of . If
is any least squares solution (i.e., ), prove that the estimate defined by
is unique in the sense that is independent of which least squares solution is used.