{"id":20697278,"url":"https://github.com/dizzydroid/earth-day-quiz","last_synced_at":"2025-07-24T22:15:51.896Z","repository":{"id":168695267,"uuid":"631277826","full_name":"dizzydroid/earth-day-quiz","owner":"dizzydroid","description":"A 15-Question Quiz for Earth Day 2023!","archived":false,"fork":false,"pushed_at":"2023-08-27T11:52:41.000Z","size":1099,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T18:32:44.232Z","etag":null,"topics":["css3","html5","javascript","open-source","quiz","webapp"],"latest_commit_sha":null,"homepage":"https://dizzydroid.github.io/blog.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dizzydroid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-22T14:09:50.000Z","updated_at":"2023-05-30T09:30:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"08bdab24-3502-4a0f-82ab-bba9acd4d5af","html_url":"https://github.com/dizzydroid/earth-day-quiz","commit_stats":null,"previous_names":["dizzydroid/earth-day-quiz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizzydroid%2Fearth-day-quiz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizzydroid%2Fearth-day-quiz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizzydroid%2Fearth-day-quiz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizzydroid%2Fearth-day-quiz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dizzydroid","download_url":"https://codeload.github.com/dizzydroid/earth-day-quiz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242961747,"owners_count":20213315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css3","html5","javascript","open-source","quiz","webapp"],"created_at":"2024-11-17T00:17:23.835Z","updated_at":"2025-03-11T02:49:54.966Z","avatar_url":"https://github.com/dizzydroid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Earth Day Quiz 🌱️ \n\u003cdiv id=\"header\" align=\"left\"\u003e\n \u003cimg src=\"earth.png?raw=true\"\u003e\n\u003c/div\u003e\n\n## Celebrating Earth Day 2023 🌍️\n\n### Can you ace this 15 - question quiz? Take it now and find out 😎️\n#### The Quiz generates 15 random questions every time so you can test yourself over and over 🥸️\n\n\u003cpre align = \"center\"\u003e \u003cb\u003e \n\u003ca href=\"https://dizzydroid.github.io/earth-day-quiz\"\u003eTake The Quiz!\u003c/a\u003e \u003c/b\u003e\n\u003c/pre\u003e\n\n_____________________________\n\n#### Source Code is available in this repo, feel free to make your OWN quiz and share it with us 🤩️\n\n_____________________________\n\n\u003cdetails\u003e\n  \u003csummary\u003eSome Math 🔢 \u003c/summary\u003e\n  \u003cbr\u003e\nSuppose you want to go over all the questions (50 questions), if you get ZERO questions repeated it would take you about \u003cb\u003e4 runs\u003c/b\u003e 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. \n\nThe formula is:\n\n$$N = \\frac{(1 - p)p}{\\epsilon^2}(\\Phi^{-1}(1 + \\gamma/2))^2$$\n\nwhere $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. \n\nFor 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\n$$N = \\frac{(0.9)(0.1)}{(0.05)^2}(\\Phi^{-1}(0.975))^2 \\approx 34.5$$\n\n So, you would need about \u003cb\u003e35 runs\u003c/b\u003e to cover all the questions with these assumptions.\n\n\u003c/details\u003e\n\n_____________________________\n\n\u003cp align=\"center\"\u003e This web-app is part of the \u003ca href = \"https://dizzydroid.github.io/blog.html\"\u003eDizzyBlog\u003c/a\u003e © dizzydroid. All rights reserved \u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdizzydroid%2Fearth-day-quiz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdizzydroid%2Fearth-day-quiz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdizzydroid%2Fearth-day-quiz/lists"}