I'm programming a code that gets information for a data set of a lottery that looks like this:
The columns are: ball1, ball2, ball3, ball4, ball5, ball6, number of winners, prize per winner. If there is no winner, the prize rolls over to the next lottery draw.
3 5 14 22 30 44 7 839254
6 12 15 16 31 44 4 1760966
11 17 21 29 30 40 0 0
26 35 38 43 47 49 1 17880003
3 5 9 13 14 38 2 3403310
...
I have to do the following exercise:
A theory suggests that the more consecutive numbers are part of a combination, the less likely it is to win a prize. Analyze the probability of someone winning a prize in relation to the number of consecutive numbers. Represent this relationship in a graph and interpret the data, confirming or refuting the theory.
My code is in the txt file.
Looking in to the image of the graph I sent, the question I have is how can I remove the 1 from the x-axis and the blank space that exists between 0 and 2. I want to remove it because it doesn't make sense saying 1 consecutive number. Either there's 0 consecutive numbers or 2 or more.
How can I fix that