Examples of Z-Score Normalization with calculator (DATA-MINING)

Last modified on December 9th, 2018 at 9:18 pm

Examples of Z-Score Normalization with calculator in (DATA-MINING).

 

First Number:


Second Number:

Third Number:

Fourth Number:

[insert_php] if(isset($_POST[‘submit’]))
{
$a=$_POST[‘value1’];
$b=$_POST[‘value2’];
$c=$_POST[‘value3’];
$d=$_POST[‘value4’]; //posted user’s values to varriables

$mean=($a+$b+$c+$d)/4;
$varienceA=($a-$mean);
$sqrA=$varienceA*$varienceA;
$varienceB=($b-$mean);
$sqrB=$varienceB*$varienceB;
$varienceC=($c-$mean);
$sqrC=$varienceC*$varienceC;
$varienceD=($d-$mean);
$sqrD=$varienceD*$varienceD;
$sum=$sqrA+$sqrB+$sqrC+$sqrD;
$finalvarience=$sum/4;
$standarddeviation= sqrt($finalvarience); //ALL calculations completed

//formula for zero score normalization
$zscore1=($a-$mean)/$standarddeviation;
$zscore2=($b-$mean)/$standarddeviation;
$zscore3=($c-$mean)/$standarddeviation;
$zscore4=($d-$mean)/$standarddeviation;
//formula completed

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo “the result is here “;
echo ”;echo “”;echo””;
echo””;echo””;
echo””;
echo””;echo “”;echo “”;echo””;echo””;
echo””;echo””;
echo””;echo “”;echo “”;echo””;
echo””;
echo “”;echo “”;echo””;
echo””;
echo “”;echo “”;echo””;
echo””;
echo “”;echo ‘

DATA YOU ENTEREDAFTER Z-SCORE NORMALIZATIONMEAN CALCULATED FOR DATAVARIANCE CALCULATED FOR DATASTANDARD DEVIATION CALCULATED FOR DATA
” .$a.”” .$zscore1.”” .$mean.”” .$finalvarience.”” .$standarddeviation.”
” .$b.”” .$zscore2.”
” .$c.”” .$zscore3.”
” .$d.”” .$zscore4.”

‘;
echo ‘

‘;

}
[/insert_php]

Pr. Fazal Rehman Shamil
Publisher of Internatonal Journal of Software Technology & Science ISSN: 2616- 5325
Instructor, Researcher,SEO expert, Web Master, Article Writer and Poet. Feel free to contact.