'jaar', 'onderdelen' => 'onderdeel', 'geslachten' => 'geslacht', 'leeftijden' => 'leeftijd' ); $db = mdb2_open($dsn); html_start(); foreach (array('sprint', 'hoogspringen', 'verspringen', 'speerwerpen', 'kogelstoten', 'discuswerpen') as $onderdeel) { $prestaties = mdb2_col($db, 0, << $max) $max = $prestatie; $count++; } $mean = $sum/$count; $step = ($max - $min)/7; $log = floor(log($step, 10)-1); $cleanstep = ceil($step/10**$log)*10**$log; $counts = array(); $index = 0; for ($i = $min; $i < $max+0.001; $i += $cleanstep) { $counts[$index++] = 0; } $sumsquaredist = 0; foreach ($prestaties as $prestatie) { $sumsquaredist += ($mean - $prestatie)**2; $counts[floor(($prestatie-$min)/$cleanstep)]++; } $sd = (($sumsquaredist/$count)**.5); ?>

frequentietabel van van leeftijd bij onderdeel

startwaarde=, stapgrootte=, mean=, sd=

\n"); $index++; } $chis[$onderdeel] = $chisquared; ?>
klassefrequentiecumulatieve frequentierelatieve frequentie (%)relatieve cumulatieve frequentie (%)normal (%)
$i <- ".($i+$cleanstep)."$freq".$cumfreq."".round($relfreq, 1)."".round($relcumfreq, 1)."".round($relcumnormal, 1)."

Chi-squared comparison to normal distribution .

De laagste chikwadraat wint. Of een ander argument met plaatjes etcetera.

terug naar de antwoorden