The Math and Stats Center
Regression for the TI-89, TI-92, and Voyage 200
You can enter this program yourself or download it for use with TI Connect.
Note: for -> use the Store key.
Syntax: regress( {list of x coordinates separated by commas}, {list of y coordinates separated by commas} )
Program
regress(t,u)
Prgm
ClrIO
t->L1
u->L2
ClrDraw
PlotsOff
FnOff
NewPlot 1,1,L1,L2
ZoomData
Pause
Dialog
Title "CHOOSE REGRESSION TYPE"
DropDown "Fit a",{"line","quad","cubic","quart","power","exp","ln","sin"},w
EndDlog
If w=1 Then
LinReg L1,L2
EndIf
If w=2 Then
QuadReg L1,L2
EndIf
If w=3 Then
CubicReg L1,L2
EndIf
If w=4 Then
QuartReg L1,L2
EndIf
If w=5 Then
PowerReg L1,L2
EndIf
If w=6 Then
ExpReg L1,L2
EndIf
If w=7 Then
LnReg L1,L2
EndIf
If w=8 Then
SinReg L1,L2
EndIf
ShowStat
regeq(x)->y1(x)
DispG
EndPrgm
Page last modified September 23, 2011
