Categories
BLOG

lottozahlen archiv

Lottozahlen archiv

API for the lotto numbers of the german lottery (1955-2020)

This repo provides the german lotto numbers from 1955 – today in one single file. All people who are interested in data analysis or just to “calculate” their chances to win the lottery are invited to use the data.

Two JSON files are give: Choose the one you can work with 🙂

Data analysis examples

The data provided is a JSON file and readable by all modern software languages. In the following two examples are shown (R and Python).

The package tidyverse is able to analyze the data very quickly with R.

In the next chunk, all data are read, filtered (just taking the lotto numbers) and grouped by the values and counted the number of appearance. We can see, that lotto number 6 is the most frequent number.

Now we want to summarise all numbers from 1-49 and their appearance.

Since 2001 in the german lottery a number called “Zusatzzahl” was introduced. Every Wednesday and Saturday the number chosen. The following graph shows the distribution of the Zusatzzahl.

What were the numbers most chosen in 2020?

In python the module pandas is very handy to analyse data. In the following the same analysis as shown above will be executed.

About

The german lotto number archive (1955-2021)

The german lotto number archive (1955-2021). Contribute to JohannesFriedrich/LottoNumberArchive development by creating an account on GitHub. ]]>