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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

"STRINGARGS" VARCHAR (100)<br />

);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('RESULT_TYPE',0,null,null); //default value<br />

is 0, it can be {0,1}<br />

DROP TABLE <strong>PAL</strong>_MULTIVARSTAT_RESULT_TBL;<br />

CREATE COLUMN TABLE <strong>PAL</strong>_MULTIVARSTAT_RESULT_TBL LIKE <strong>PAL</strong>_MULTIVARSTAT_RESULT_T;<br />

CALL DM_<strong>PAL</strong>.<strong>PAL</strong>_MULTIVARIATESTAT_PROC(<strong>PAL</strong>_MULTIVARSTAT_DATA_TBL,<br />

#<strong>PAL</strong>_CONTROL_TBL, <strong>PAL</strong>_MULTIVARSTAT_RESULT_TBL) WITH OVERVIEW;<br />

SELECT * FROM <strong>PAL</strong>_MULTIVARSTAT_RESULT_TBL;<br />

Expected Result<br />

3.7.8 Quantile Function<br />

This algorithm evaluates the inverse of the cumulative distribution function (CDF) or the inverse<br />

of the complementary cumulative distribution function (CCDF) for a given probability p and probability<br />

distribution.<br />

The CDF F(x) of a real-valued random variable X is given by<br />

F(x)=P[X≤x]<br />

The CCDF<br />

of a real-valued random variable X is given by<br />

=P[X>x]=1-F(x)<br />

Prerequisites<br />

●<br />

●<br />

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

The input data and distribution parameters do not contain null data. The algorithm will issue errors when<br />

encountering null values.<br />

DISTRQUANTILE<br />

This function calculates quantiles for a given distribution.<br />

Procedure Generation<br />

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

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

528 P U B L I C<br />

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

<strong>PAL</strong> Functions

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

Saved successfully!

Ooh no, something went wrong!