back to Command Reference
STAT
[FX-870P/VX-4]
Purpose
Enter statistical data.
STAT X_data [, Y_data] [; Frequency]
Example
STAT 1, 3; 10
STAT 5.2
STAT 2, 7
Parameters
- X_data: Numeric expression for the X data value.
- Y_data: Numeric expression for the Y data value (optional, for paired data).
- Frequency: Numeric expression specifying how many times this data point
is entered (optional, default is 1).
Explanation
- Enters data for statistical processing.
- When only X_data is specified, single-variable statistics are performed.
- When both X_data and Y_data are specified, paired-variable statistics
are performed (required for correlation and regression functions).
- The frequency parameter after the semicolon allows entering the same data
point multiple times. For example,
STAT 1, 3; 10 enters the data point
(1, 3) ten times.
- Use STAT CLEAR to initialize the statistical data before
entering new data.
See
Sample Program
10 STAT CLEAR
20 FOR I = 1 TO 5
30 READ X, Y
40 STAT X, Y
50 NEXT I
60 DATA 1,2,3,4,5,6,7,8,9,10
70 PRINT "MEAN X="; MEANX
80 PRINT "MEAN Y="; MEANY
Enters five paired data points and displays the means.