Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

decide outliers by Z-Score method

PAN KEVINSep 10 2019 — edited Sep 11 2019

I have table with outliers, and I want to decide outliers by Z-Score method,

The table is

   col1  col2

0     1    12

1   120    17

2     3    31

3     5    53

4     2    22

5    12    32

6    13    43

At first, compute the Z-Score by each column

Then, if the absolute value of computed Z-Score > 2.2 ,consider it as outlier and set it NULL.

My expected result is

   col1  col2

0     1    12

1   NULL   17

2     3    31

3     5    53

4     2    22

5    12    32

6    13    43

Many thanks

This post has been answered by Frank Kulash on Sep 10 2019
Jump to Answer
Comments
Post Details
Added on Sep 10 2019
7 comments
272 views