Variables | |
function [pval, chisq] | |
endif | A = [4529.4, 9044.9, 13568, 18091, 22615, 27892 |
b = [1/6 | |
n = rows (x) | |
r = run_count (x, 6) - n * b * ones (1, columns(x)) | |
chisq = diag (r' * A * r)' / n | |
pval = chisquare_cdf (chisq, 6) |
endif A = [4529.4, 9044.9, 13568, 18091, 22615, 27892 |
b = [1/6 |
chisq = diag (r' * A * r)' / n |
n = rows (x) |
r = run_count (x, 6) - n * b * ones (1, columns(x)) |