Goals:
This activity will cover the materials in section 1.7 of Stewart's Calculus and Concepts textbook. The skills you should acquire are:
Shown below are two plots of data of the form (xk, yk). From a graphical perspective, data is linear if you can draw a straight line which comes close to "going through" all the data points. If no straight line does a good job of "going through" all the data, the data is not linear.
Here are the two data sets above in tabular format:

Linear functions are characterized by the property that they have a constant slope. Slopes can be quickly calculated from a table of values, since both X and Y values appear in the table. Normally, the X values in a table are "equally spaced", so D X, the change in X, is always the same (for consecutive data points in the table). In the table above, as we move from row to row, the value of X increases by D X = 0.3 each time. This means that the denominators in slope calculations, D Y / D X, will always be 0.3 (again, as long as we compute slopes for consecutive data pairs in the table). What we might call the "first slope" for Y1 above, is thus (2.41 - 2.98) / 0.3 = -1.9. The "second slope" is (1.76 - 2.41) / 0.3 = -2.17 (which isn't too different from the first slope).

The test for determining whether or not a tabular function will satisfy a linear formula is simply to compute several (usually all "consecutive") slopes. If the slopes are all about the same, the data is roughly linear. If the slopes are not all about the same, the data is not linear. When the slopes are all about the same, select some reasonable value (maybe the average slope, perhaps the slope from the first data point to the last data point, etc.) for this constant slope and call it m. You now know f(x) = m*x + b, and you know the value of m, just plug in any data point (or several and take an average) and solve for b. You will then have a formula, and you should use the table features of your calculator to check that your formula does a decent job of reproducing the values in the table. Don't expect perfection, you simply want a formula that "comes close".

We've already seen that exponential functions of the form f(x) =
k*b^X have "magic ratios". That is,
.
Normally, X values in a table all differ by the same amount (so D
X, for consecutive entries, is usually the same). If D
X is constant, bDX
will also be constant. Thus, instead of constant slopes, which indicates
linear data, we check for "constant ratios".
An Example:

The "first ratio" is Y1(2) / Y1(1.3) = 22.50 / 16.94 = 1.328. The next
is 29.88 / 22.50 = 1.328. The last consecutive ratio is 39.69 / 29.88 =
1.328. They're all the same! We will be able to find an exponential formula
that fits this data well. The key is to compute these ratios algebraically
using the general exponential formula f(x) = k*b^X. All of the ratios
will simplify to b^0.7. For example,
=
1.328. Raising both sides to the 1 / 0.7 power gives b = 1.328^(1/0.7)
= 1.5. Now, pick any of the data points, plug it into f(x) = k*1.5^X, and
solve for k.

The calculator can also find formulas (of many different kinds). This is called regression, and in most cases the calculator uses statistics and calculus (which we'll learn later) to find these "least squares" formulas. The basic scheme is this (details will be given below):
I'll walk through problem 3, for the fourth-degree polynomial fit, to illustrate running a regression. The only thing that changes is the command you use from the [STAT] [CALC] menu, but each command has similar syntax, namely commandname Y1. You should try to reproduce all my steps (so you can do the other problems that require a regression). In general, linear and exponential curve fits, can (and should, since it is usually faster) be done "by hand", as detailed above. For other regressions, you will normally be told what type of formula to look for, and using the calculator to find this regression formula is the suggested manner to proceed.


If you press the down cursor, you'll see an R^2 value very close to 1, indicating an excellent fit. The answer to part (b) is simply Y1(2) = 183.97 (for 1972) and Y1(12) = 43.52 (for 1982). To set up a stat-plot of the data and the regression formula, press [2nd][STAT PLOT] [ENTER] to select the options for stat-plot 1. Using the cursor keys to move and the [ENTER] key to select options, get your screen to look like the one below on the left. Set your window to that of the middle screen below (normally, you set the x range from the data values in L1, and then press [ZOOM][9: ZoomStat] ). A graph like the one shown on the right should appear by pressing [GRAPH] (turn off all functions other than Y1 first).



You can compare the regression function values, namely Y1(L1) to the data values (i.e. L2) by "attaching a formula" to L3 as follows:
Press [STAT] [ENTER] to load the statistical editor. Move the cursor into the top "name row" and move over to the third column (it should be blank). At the name prompt type [2nd] [L3] [ENTER]. If you had data in L3, it will appear, so press [CLEAR]. If L3 was empty, you do not need to press [CLEAR]. In either case, the TI-83 should now be waiting for a definition of L3.
See the bottom line of the screen below. The regression function values should appear in the third column (see the screen below). The Lock symbol also appears in the third column (indicating that L3 has a formula attached to it). If you never modify L3, this attached formula will remain set in your calculator. You can change Y1 or L1, and L3 will automatically update itself. Thus, you can start future regressions by adding L3 to the end of the SetUpEditor command (actually you need "comma L3") , and the regression function values will automatically be displayed in the statistical editor. To remove this attached formula (leaving it hurts nothing however), either clear the values of L3 with [STAT] [4:ClrList] [2nd] [L3], or store a new value to some element of L3 from the home screen, like 0 [STO>] L3(1). Again, the regression function values (in L3) are very close to the actual data displayed in L2. Like the table of the TI-83, you see more digits of the data by moving the cursor over a data entry and viewing the "full version" at the bottom of the editor's window.
