Testing ‘randomness’ [General Statistics]
Hi BE-proff,
Welcome.
See also there for further information.
❝ Many thanks for clarification
Welcome.
runs <- 25L
n <- 1e6
res <- data.frame(run = 1:runs, p = NA_real_, sign = "")
for (j in 1:nrow(res)) {
if (j == 1) set.seed(123456) else set.seed(j)
res$p[j] <- ks.test(rnorm(n = n), "pnorm", alternative = "two.sided")$p.value
if (res$p[j] < 0.05) res$sign[j] <- "*"
}
print(res, row.names = FALSE)
See also there for further information.
—
Dif-tor heh smusma 🖖🏼 Довге життя Україна!
Helmut Schütz
The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Dif-tor heh smusma 🖖🏼 Довге життя Україна!
Helmut Schütz
The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Complete thread:
- Normal distribution assessment BE-proff 2022-02-20 19:07 [General Statistics]
- Normal distribution assessment Helmut 2022-02-20 22:59
- Normal distribution assessment BE-proff 2022-02-21 14:42
- Testing ‘randomness’Helmut 2022-02-22 15:11
- Normal distribution assessment BE-proff 2022-02-21 14:42
- Normal distribution assessment Obinoscopy 2022-02-27 18:49
- Normal distribution assessment Helmut 2022-02-20 22:59