Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

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

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]

Prof. Fzal Rehman Shamil
Instructor, Researcher, Blogger, SEO Expert, Poet and Publisher of International Journal Of Software, Technology & Science ISSN : 2616 - 5325