mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 13:24:56 +01:00
MDL-16951 "kurtosis and skewness equations were wrong" See changes to equations here : http://docs.moodle.org/en/index.php?title=Development%3AQuiz_item_analysis_calculations&diff=45585&oldid=39752
This commit is contained in:
parent
03043a3313
commit
67710da492
@ -547,13 +547,13 @@ class quiz_statistics_report extends quiz_default_report {
|
||||
$k2= $s*$m2/($s-1);
|
||||
$k3= $s*$s*$m3/(($s-1)*($s-2));
|
||||
if ($k2){
|
||||
$quizstats->skewness = $k3 / (pow($k2, 2/3));
|
||||
$quizstats->skewness = $k3 / (pow($k2, 3/2));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($s>3){
|
||||
$k4= (($s*$s*$s)/(($s-1)*($s-2)*($s-3)))*((($s+1)*$m4)-(3*($s-1)*$m2*$m2));
|
||||
$k4= $s*$s*((($s+1)*$m4)-(3*($s-1)*$m2*$m2))/(($s-1)*($s-2)*($s-3));
|
||||
if ($k2){
|
||||
$quizstats->kurtosis = $k4 / ($k2*$k2);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user