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.

Where β0…βn are parameters that need to be calculated.<br />

The steps are:<br />

1. Put natural logarithmic operation on both sides:<br />

ln(y) = ln(β0 × exp(β1 × x1 + β2 × x2 + … + βn × xn))<br />

2. Transform it into: ln(y) = ln(β0) + β1 × x1 + β2 × x2 + … + βn × xn<br />

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

y’ = β0’ + β1 × x1 + β2 × x2 + … + βn × xn<br />

Thus, y’ and x1…xn is a linear relationship and can be solved using 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 />

●<br />

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

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

Given the structure as Y and X1...Xn, there are more than n+1 records available for analysis.<br />

EXPREGRESSION<br />

This is an exponential regression function.<br />

Procedure Generation<br />

CALL SYS.AFLLANG_WRAPPER_PROCEDURE_CREATE (‘AFL<strong>PAL</strong>’, ‘EXPREGRESSION’,<br />

‘’, '', );<br />

The signature table should contain the following records:<br />

Table 192:<br />

Position Schema Name Table Type Name Parameter Type<br />

1 IN<br />

2 IN<br />

3 <br />

4 <br />

5 <br />

6 <br />

OUT<br />

OUT<br />

OUT<br />

OUT<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 257

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

Saved successfully!

Ooh no, something went wrong!