.. _ols: Ordinary Least Squares (OLS) ==================================================================================== Ordinary Least Squares (OLS) 선형 회귀분석을 수행합니다. **Syntax** OrdinaryLeastSquares (SimpleFeatureCollection inputFeatures, String dependentVariable, String explanatoryVariables) : SimpleFeatureCollection, SpatialOLSResult **Input Parameters** .. list-table:: :widths: 10 50 20 10 10 * - **Identifier** - **Description** - **Type** - **Default** - **Required** * - inputFeatures - 종속변수와 독립변수를 포함하고 있는 입력 레이어입니다. - SimpleFeatureCollection - - ✓ * - dependentVariable - 종속변수값을 가진 숫자 필드입니다. - String - - ✓ * - explanatoryVariables - 회귀 분석에 사용할 쉼표로 구분된 설명 변수 숫자 필드의 목록입니다. - String - - ✓ **Process Outputs** .. list-table:: :widths: 10 50 20 10 10 * - **Identifier** - **Description** - **Type** - **Default** - **Required** * - olsFeatures - 종속 변수 추정치와 잔차를 포함한 출력 레이어입니다. - SimpleFeatureCollection - - * - report - OLS 분석 결과입니다. - SpatialOLSResult - - ✓ **Constraints** - olsFeatures 레이어는 inputFeatures의 모든 필드를 포함해서 Estimated, Residual, StdResid, StdResid2 필드가 추가된다. - report 결과는 XML로 반환된다. **Examples** a1_2000 필드를 종속변수로, a2_2000, a3_2000, a4_2000 필드를 설명변수로 분석한 결과는 다음의 XML 포맷으로 반환됩니다. .. code-block:: XML Ordinary Least Squares(OLS) Regression seoul_series a1_2000 25 4 21 18229.716524000003 5222.973372203831 0.2524024367985146 0.14560278491258805 4.8945722348412424E8 2.3307486832577344E7 4827.782807104866 1.957828893936497E7 4424.736030472888 2.363326399800135 0.10015684828181148 -245.3476108684226 498.6952217368452 503.8531164736873 503.57072503631804 CONSTANT -89839.01661165891 45251.64301979817 -1.9853205456507557 0.060320415845298396 a2_2000 1015.5016202521613 459.27386712849943 2.2111025532572612 0.03825397847242593 a3_2000 657.585445515956 687.1537990129104 0.9569698173255696 0.3494719862156815 a4_2000 74.91087027691356 575.0254410828144 0.13027401037396014 0.8975891001920921 a2_2000 1.0512492909076563 a3_2000 1.219785000060916 a4_2000 1.178277144719415 124.00930330161376 Test on Normality of Errors Jarque-Bera 2.0 0.7273519517018467 0.6951163927538146 Diagnostics for Heteroskedasticity Random Coefficients Breusch-Pagan 3.0 5.083212261808894 0.16580435989410658 Diagnostics for Heteroskedasticity Random Coefficients Koenker-Bassett 3.0 6.588607922676707 0.08623276842110539 잔차를 이용한 시각화 결과입니다. .. image:: images/ols.png