25.10.2016 Views

SAP HANA Predictive Analysis Library (PAL)

sap_hana_predictive_analysis_library_pal_en

sap_hana_predictive_analysis_library_pal_en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Related Information<br />

<strong>SAP</strong> <strong>HANA</strong> Smart Data Streaming: Developer Guide<br />

3.3 Regression Algorithms<br />

This section describes the regression algorithms that are provided by the <strong>Predictive</strong> <strong>Analysis</strong> <strong>Library</strong>.<br />

3.3.1 Bi-Variate Geometric Regression<br />

Geometric regression is an approach used to model the relationship between a scalar variable y and a variable<br />

denoted X. In geometric regression, data is modeled using geometric functions, and unknown model<br />

parameters are estimated from the data. Such models are called geometric models.<br />

In <strong>PAL</strong>, the implementation of geometric regression is to transform to linear regression and solve it:<br />

y = β 0 × x β 1<br />

Where β 0 and β 1 are parameters that need to be calculated.<br />

The steps are:<br />

1. Put natural logarithmic operation on both sides: ln(y) = ln(β 0 × x β 1 )<br />

2. Transform it into: ln(y) = ln( β 0 ) + β 1 × ln(x)<br />

3. Let y' = ln(y), x' = ln(x), β 0 ' = ln(β 0 )<br />

y' = β 0 ' + β 1 × x'<br />

Thus, y’ and x’ is a linear relationship and can be solved with the linear regression method.<br />

The implementation also supports calculating the F value and R^2 to determine statistical significance.<br />

Prerequisites<br />

●<br />

●<br />

No missing or null data in the inputs.<br />

The data is numeric, not categorical.<br />

GEOREGRESSION<br />

This is a geometric regression function.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Predictive</strong> <strong>Analysis</strong> <strong>Library</strong> (<strong>PAL</strong>)<br />

<strong>PAL</strong> Functions P U B L I C 241

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!