52 TI-Nspire™ Reference Guide
LinRegMx
Catalog
>
LinRegMx X,Y[,[Freq][,Category,Include]]
Computes the linear regression y = m·x+b on lists X and Y with
frequency Freq. A summary of results is stored in the stat.results
variable. (See page 97.)
All the lists must have equal dimension except for Include.
X and Y are lists of independent and dependent variables.
Freq is an optional list of frequency values. Each element in Freq
specifies the frequency of occurrence for each corresponding X and Y
data point. The default value is 1. All elements must be integers | 0.
Category is a list of numeric or string category codes for the
corresponding X and Y data.
Include is a list of one or more of the category codes. Only those data
items whose category code is included in this list are included in the
calculation.
For information on the effect of empty elements in a list, see “Empty
(void) elements” on page 131.
Output variable Description
stat.RegEqn Regression Equation: y = m·x+b
stat.m, stat.b Regression coefficients
stat.r
2
Coefficient of determination
stat.r Correlation coefficient
stat.Resid Residuals from the regression
stat.XReg List of data points in the modified X List actually used in the regression based on restrictions of Freq,
Category List, and Include Categories
stat.YReg List of data points in the modified Y List actually used in the regression based on restrictions of Freq,
Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
LinRegtIntervals
Catalog
>
LinRegtIntervals X,Y[,F[,0[,CLev]]]
For Slope. Computes a level C confidence interval for the slope.
LinRegtIntervals X,Y[,F[,1,Xval[,CLev]]]
For Response. Computes a predicted y-value, a level C prediction
interval for a single observation, and a level C confidence interval for
the mean response.
A summary of results is stored in the stat.results variable. (See page
97.)
All the lists must have equal dimension.
X and Y are lists of independent and dependent variables.
F is an optional list of frequency values. Each element in F specifies
the frequency of occurrence for each corresponding X and Y data
point. The default value is 1. All elements must be integers | 0.
For information on the effect of empty elements in a list, see “Empty
(void) elements” on page 131.