SQL-MapReduce Call - Aster Analytics

Teradata Aster Analytics Foundation User Guide

Product
Aster Analytics
Release Number
6.21
Published
November 2016
Language
English (United States)
Last Update
2018-04-14
dita:mapPath
kiu1466024880662.ditamap
dita:ditavalPath
AA-notempfilter_pdf_output.ditaval
dita:id
B700-1021
lifecycle
previous
Product Category
Software

Apply all four fit tests to the data, evaluating four possible distributions (normal, gamma, Weibull, and uniform).

SELECT * FROM DistnmatchReduce (
  ON DistnmatchMultipleInput (
    ON (SELECT RANK() OVER (PARTITION BY factory, product ORDER BY mttf)
        AS rank, * FROM factory7 WHERE mttf IS NOT NULL) AS input
        PARTITION BY ANY
    ON (SELECT factory, product, COUNT(*) AS group_size FROM
        factory7 WHERE mttf IS NOT NULL GROUP BY factory,
        product) AS groupstats DIMENSION
    ValueColumn ('mttf')
    Tests ('KS', 'CvM', 'AD', 'CHISQ')
    Distributions ('NORMAL:10000,150', 'GAMMA:1,10000',
                   'WEIBULL:100,10000','UNIFORMCONTINUOUS:9500,10500')
    GroupingColumns ('factory', 'product')
    MinGroupSize ('50')
    NumCell ('10')
  ) PARTITION BY factory, product
);