Anda di halaman 1dari 3

\\

\text{Inputs:}
\\N : \text{Total number of tests}
\\
n : \text{Number of tests considered for analysis}
\\
w_{tilde{x}} : \text{Median Window size}
\\
\\threshold \binom{0}{100}
\\
\\
\forall (i\;{ > p1});p1=5
\\
\\
\\ \text{Running mean}
\\
\bar{x}_{[i]} = \frac{\sum_{j=1}^{i} X_{N-n+j}}{i}
{\\}
\\
\\
\\ \text{Current x} : Cx_{i}
\\ = X_{N-n+i}
\\
\\
\\ \text{Median of values in window 'w'}\\
C\tilde{x}_i = \tilde{x\, }_{i-1}^{i-w}\textrm{}
\\
\\
\\
\\ \text{Deviation of each x from the median}
\\
d_{i} = \left | Cx_{i} - C\tilde{x}_i \right |
\\
\\
\\ \text{Score}\\
S_{i} = \frac{d_{i}*threshold}{\bar{x}_{[i]}}
\\
\\
\\
\\ \text{Limit for each iteration based on prevailing median and threshold}
\\
limit_i :\frac{threshold^2}{C\tilde{x}_i+(3*threshold)}
\\
limit_i
\begin{cases}
& > 100 \; \;\; : \;limit_i = \frac{limit_i}{1000}\\
& < 100 \; \;\; : \;\\
\end{cases}
\\
\\
\\ \text{Median prevailing during the during the regression point (median past t
hree points)}\\
\\
RP\tilde{x}_r = \tilde{x\, }_{i-1}^{i-3}\textrm{}
\\
////////////////////////////////////////////////////////////////////////////////
///////////////////////////
\\ \text{Median prevailing during the absence of outliers (median past ci consis

tent points)}\\
\\
Cons\tilde{x}_i = \tilde{x\, }_{i}^{i-ci} \textrm{}
\\
\\
\\
\\ \text{Upper and lower limits}
\\
\\
\\
\\
\\
S_i
\begin{cases}
& > limit \wedge \;LL_i < Cx_{i} < UL_i\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; : \;V_i
= 1\\
& \leq limit \vee \;LL_i > Cx_{i} \;\vee\; Cx_{i} > UL_i\; \;\; : \;V_i = 0\\
\end{cases}
\\
\\
V_i
\begin{cases}
& =1 \; \;\; : \;Vs_i = V_i + V_{i-1} + V_{i-2}\\
& =0 \; \;\; : \;Vs_i = 0\\
\end{cases}
\\
\\
\\
////////////////////////////////////////////////////////////////////////////////
//////////
\text{First pass on vector Vs}\\
{Vs_i}'
\begin{cases}
& =3 \wedge (Vs_{i-1}=3 \vee Vs_{i-2}=3 ) \; \;\; : Vs_i = 1\\
& =1 \wedge (Vs_{i-1}=1 \vee Vs_{i-2}=1 ) \; \;\; : Vs_i = Vs_i + Vs_i-1\\
\end{cases}
\\
\\
\\
\text{Second pass on vector Vs}\\
{Vs_i}''
\begin{cases}
& =0 \;\;\;\;\;\; \; \;\; : = NO\;Regression(+/-)\\
&\;\;\;\;\;\;\;\;\;\;\;\;\; \; \;\;LL_i = Cons\tilde{x}_i - (Cons\tilde{x}_i*\
frac{threshold}{100})
\\
&\;\;\;\;\;\;\;\;\;\;\;\;\; \; \;\;UL_i = Cons\tilde{x}_i + (Cons\tilde{x}_i*\
frac{threshold}{100})
\\
\\
& =1 \vee 2 \; \;\; : = Outlier
\\
& >2 \;\;\;\;\;\; \; \;\; : \text{Potential Regression}\\
&\;\;\;\;\;\;\;\;\;\;\;\;\; \; \;\; LL_i = RP\tilde{x}_i - (RP\tilde{x}_i*\fra
c{threshold}{100})
\\
&\;\;\;\;\;\;\;\;\;\;\;\;\; \; \;\; UL_i = RP\tilde{x}_i + (RP\tilde{x}_i*\fra
c{threshold}{100})

\\
\\
&\;\;\;\;\;\;\;\;\;\;\;\;\; \; \;\; fluctuation = \frac{\left | \bar{x\, }_{i
-1}^{i-2} - Cx_{i} \right | *100 }{ \bar{x\, }_{i-1}^{i-2}}
\\
&\;\;\;\;\;\;\;\;\;\;\;\;\; \; \;\; {fluctuation}'
\begin{cases}
& \; \;\; > 3 \;\;\;\;\;\;\;\;: = Outlier\\
& \; \;\;\;\;\; \;\;\;\;\;\; \;\;\;\;\;\;\;\;Vs_i = 2 \\
\\
& \; \;\; <=\;3 \;\;\;\; : = Regression(+/-)\\
&\;\;\;\;\;\;\;\;\;\;\;\;\; \; \;\;\; \;\; RP\tilde{x}_r = \tilde{x\, }_{i-1}^
{i-3}\textrm{}
\end{cases}
\\
\end{cases}
\\
\\

Anda mungkin juga menyukai