Skip to content

15.17 REGRESSION ​

The REGRESSION procedure fits linear models to data via least-squares estimation. The procedure is appropriate for data which satisfy those assumptions typical in linear regression:

  • The data set contains n observations of a dependent variable, say Y_1,…,Y_n , and n observations of one or more explanatory variables. Let X{11}, X_{12}_ , …, X{1n}_ denote the n observations of the first explanatory variable; X{21}_ ,…,X{2n}_ denote the n observations of the second explanatory variable; X{k1}_ ,…,X{kn}_ denote the n observations of the k th explanatory variable.
  • The dependent variable Y has the following relationship to the explanatory variables: Y_i = b_0 + b_1 X{1i} + ... + b_k X_{ki} + Z_i_ where b_0, b_1, …, b_k are unknown coefficients, and Z_1,…,Z_n are independent, normally distributed noise terms with mean zero and common variance. The noise, or error terms are unobserved. This relationship is called the linear model.

The REGRESSION procedure estimates the coefficients b_0,…,b_k and produces output relevant to inferences for the linear model.

• SyntaxSyntax definition.
• ExamplesUsing the REGRESSION procedure.

基于 GNU PSPP 2.0.1 手册与入门教程整理