https://github.com/dizzydroid/earth-day-quiz
A 15-Question Quiz for Earth Day 2023!
https://github.com/dizzydroid/earth-day-quiz
css3 html5 javascript open-source quiz webapp
Last synced: 11 months ago
JSON representation
A 15-Question Quiz for Earth Day 2023!
- Host: GitHub
- URL: https://github.com/dizzydroid/earth-day-quiz
- Owner: dizzydroid
- Created: 2023-04-22T14:09:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-27T11:52:41.000Z (almost 3 years ago)
- Last Synced: 2025-01-17T18:32:44.232Z (over 1 year ago)
- Topics: css3, html5, javascript, open-source, quiz, webapp
- Language: JavaScript
- Homepage: https://dizzydroid.github.io/blog.html
- Size: 1.05 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Earth Day Quiz đąī¸
## Celebrating Earth Day 2023 đī¸
### Can you ace this 15 - question quiz? Take it now and find out đī¸
#### The Quiz generates 15 random questions every time so you can test yourself over and over đĨ¸ī¸
Take The Quiz!
_____________________________
#### Source Code is available in this repo, feel free to make your OWN quiz and share it with us đ¤Šī¸
_____________________________
Some Math đĸ
Suppose you want to go over all the questions (50 questions), if you get ZERO questions repeated it would take you about 4 runs to complete it. But that's an extreme case, you will have questions repeated probably.. we could use a formula based on the expected number of runs for a given probability of repetition. This formula is derived from the Wald-Wolfowitz runs test, which is a statistical test for randomness in a sequence of binary outcomes.
The formula is:
$$N = \frac{(1 - p)p}{\epsilon^2}(\Phi^{-1}(1 + \gamma/2))^2$$
where $N$ is the number of runs, $p$ is the probability of repetition, $\epsilon$ is the desired accuracy, $\gamma$ is the confidence level, and $\Phi^{-1}$ is the inverse cumulative distribution function of the standard normal distribution.
For example, if you want to approximate the number of runs with 95% confidence and 5% accuracy, and you assume that each question has a 10% chance of being repeated, then the formula gives:
$$N = \frac{(0.9)(0.1)}{(0.05)^2}(\Phi^{-1}(0.975))^2 \approx 34.5$$
So, you would need about 35 runs to cover all the questions with these assumptions.
_____________________________
This web-app is part of the DizzyBlog Š dizzydroid. All rights reserved