<< Chapter < Page Chapter >> Page >
This module introduces the concept of modeling data using regression lines on a calculator.

Regression on the calculator

What Kepler did is an example of“regression”: finding an equation that models a particular set of data.

Kepler became famous because regression is hard. Who would have thought to look for T 2 = k a 3 ? Especially when you consider all the other equations that would still have a“this goes up, that goes up”relationship, such as T = 2 a + 7 , or T = 1 10 - a , or maybe T = 3 log 5 a ?

Fortunately, we have a tool that Kepler did not have: the modern computer. Mathematical programs and graphing calculators can take a set of points, and find the line or curve of“best fit”to model the data.

As an example of this process, suppose that you have run an experiment and generated three data points: (2,1), (4,3), and (5,8). What function might model those data?

Note: the directions below are given for a TI-83 or compatible calculator. Many other calculators can perform the same functions, but the implementation details may look quite different.

Entering the data

  • Hit STAT to go into the Statistics menu.
  • Choose Edit... This brings you to a screen where you enter a bunch of L1 and L2 values.
FIXME: A LIST CAN NOT BE A TABLE ENTRY. Enter the L1 and L2 values as follows: for each data point, the x-coordinate is in the L1 list, and the y-coordinate is in the L2 list.The screen to the right shows the points (2,1), (4,3), and (5,8).
  • Hit 2nd QUIT return to the main screen.

Viewing the data, and guessing at the shape

Once you have entered your points into the L1 and L2 lists, your calculator can show you a“scatterplot”—which is a pointlessly fancy word for“a graph of a bunch of points,”like you used to make when you were first learning what graphing was.

  • Hit WINDOW (near the upper-left-hand corner of the calculator).
  • Set the variables Xmin, Xmax, Ymin, and Ymax appropriately. For instance, for the three points shown above, the x-values are 2, 4, and 5, and the y-values are 1, 3, and 8. So it might make sense to set Xmin=0, XMax=10, Ymin=0, and Ymax=10—and that is how I did it in the drawing below. Of course, there are many other settings you could use. But if you go through the whole process and don’t see any points, it’s a reasonable guess that your window is not set properly.
  • Hit Y= (upper-left-hand corner of the calculator).
  • Then, hit the up-arrow key, so the focus moves to Plot1 (which will start blinking).
  • Hit ENTER . It’s actually impossible, at this point, to see that anything has happened. But if you down-arrow away from Plot1 , you should see that it remains darkened (white letters on a black background, instead of the other way around). This indicates that it has been selected.
FIXME: A LIST CAN NOT BE A TABLE ENTRY. Hit GRAPH (upper-right-hand corner of the calculator). The calculator now displays the points. From the image, you can see that a quadratic (parabolic) or exponential function might be a reasonable guess, whereas a line or logarithmic function would be unlikely to fit.

At this point, looking at the data, it is often useful to categorize it in two ways.

First: is it increasing or decreasing? In our example, of course, the points are increasing. (Some data, of course, may be doing both at different times: consider, for instance, a parabola.)

Now, in the case of an increasing function, you can categorize it as one of the following.

If it is increasing steadily, that suggests a line. (Remember that what makes a linear function linear is that it always goes up at the same rate, or slope!)
If it is increasing more and more slowly, that suggests a logarithmic function. (A square root would also have this basic shape, but you cannot do a square-root-regression.)
If it is increasing more and more quickly, that suggests an exponential function, or possibly the right side of a quadratic function (a parabola).

Decreasing functions can be categorized similarly, of course. If a function decreases and then increases, a parabola is probably the best fit. Functions that go up, then down, then up again, are most likely to be higher-order polynomials.

Finding the formula

Once you have decided on the right shape, the hard work is done: the calculator takes care of the rest.

  • Hit STAT to return again to the Statistics menu.
  • Hit the right-arrow key to go to CALC .
  • At this point, you have several choices. LinReg will give you a line that best fits your points. QuadReg will give you a quadratic function, aka a second-order polynomial. There are also options for "cubic" (third-order polynomial), "quartic" (fourth-order polynomial), logarithmic, or exponential curves. Choose the one you want and hit ENTER .

The calculator does not graph your curve for you, but it does tell you what the curve is. For instance, if I run a QuadReg on the data above, the calculator gives me:

This tells me that the best quadratic fit for my data is the curve y = 1.33 x 2 - 7 x + 9.67 . One way to double-check this, of course, is to enter Y 1 = 1.33 x 2 - 7 x + 9.67 and then graph it, and see how closely it approximates the points!

Remember that whatever option you choose, it will operate on the points you have entered in the L1 and L2 lists, so make sure your data is correctly entered there!

Starting over

There's just one more thing you have to know: once you've done this once, how do you clear out the lists to enter new ones? Here is one way to do it.

  • Hit MEM (you do this by hitting the yellow 2nd key, and then hitting + ).
  • This brings up a menu. Choose ClrAllLists .
  • Then—after you return to the main screen—hit ENTER and the lists are emptied out.

Questions & Answers

what does the ideal gas law states
Joy Reply
Three charges q_{1}=+3\mu C, q_{2}=+6\mu C and q_{3}=+8\mu C are located at (2,0)m (0,0)m and (0,3) coordinates respectively. Find the magnitude and direction acted upon q_{2} by the two other charges.Draw the correct graphical illustration of the problem above showing the direction of all forces.
Kate Reply
To solve this problem, we need to first find the net force acting on charge q_{2}. The magnitude of the force exerted by q_{1} on q_{2} is given by F=\frac{kq_{1}q_{2}}{r^{2}} where k is the Coulomb constant, q_{1} and q_{2} are the charges of the particles, and r is the distance between them.
Muhammed
What is the direction and net electric force on q_{1}= 5µC located at (0,4)r due to charges q_{2}=7mu located at (0,0)m and q_{3}=3\mu C located at (4,0)m?
Kate Reply
what is the change in momentum of a body?
Eunice Reply
what is a capacitor?
Raymond Reply
Capacitor is a separation of opposite charges using an insulator of very small dimension between them. Capacitor is used for allowing an AC (alternating current) to pass while a DC (direct current) is blocked.
Gautam
A motor travelling at 72km/m on sighting a stop sign applying the breaks such that under constant deaccelerate in the meters of 50 metres what is the magnitude of the accelerate
Maria Reply
please solve
Sharon
8m/s²
Aishat
What is Thermodynamics
Muordit
velocity can be 72 km/h in question. 72 km/h=20 m/s, v^2=2.a.x , 20^2=2.a.50, a=4 m/s^2.
Mehmet
A boat travels due east at a speed of 40meter per seconds across a river flowing due south at 30meter per seconds. what is the resultant speed of the boat
Saheed Reply
50 m/s due south east
Someone
which has a higher temperature, 1cup of boiling water or 1teapot of boiling water which can transfer more heat 1cup of boiling water or 1 teapot of boiling water explain your . answer
Ramon Reply
I believe temperature being an intensive property does not change for any amount of boiling water whereas heat being an extensive property changes with amount/size of the system.
Someone
Scratch that
Someone
temperature for any amount of water to boil at ntp is 100⁰C (it is a state function and and intensive property) and it depends both will give same amount of heat because the surface available for heat transfer is greater in case of the kettle as well as the heat stored in it but if you talk.....
Someone
about the amount of heat stored in the system then in that case since the mass of water in the kettle is greater so more energy is required to raise the temperature b/c more molecules of water are present in the kettle
Someone
definitely of physics
Haryormhidey Reply
how many start and codon
Esrael Reply
what is field
Felix Reply
physics, biology and chemistry this is my Field
ALIYU
field is a region of space under the influence of some physical properties
Collete
what is ogarnic chemistry
WISDOM Reply
determine the slope giving that 3y+ 2x-14=0
WISDOM
Another formula for Acceleration
Belty Reply
a=v/t. a=f/m a
IHUMA
innocent
Adah
pratica A on solution of hydro chloric acid,B is a solution containing 0.5000 mole ofsodium chlorid per dm³,put A in the burret and titrate 20.00 or 25.00cm³ portion of B using melting orange as the indicator. record the deside of your burret tabulate the burret reading and calculate the average volume of acid used?
Nassze Reply
how do lnternal energy measures
Esrael
Two bodies attract each other electrically. Do they both have to be charged? Answer the same question if the bodies repel one another.
JALLAH Reply
No. According to Isac Newtons law. this two bodies maybe you and the wall beside you. Attracting depends on the mass och each body and distance between them.
Dlovan
Are you really asking if two bodies have to be charged to be influenced by Coulombs Law?
Robert
like charges repel while unlike charges atttact
Raymond
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Advanced algebra ii: conceptual explanations. OpenStax CNX. May 04, 2010 Download for free at http://cnx.org/content/col10624/1.15
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Advanced algebra ii: conceptual explanations' conversation and receive update notifications?

Ask