3

Let's say, I am playing a lotto where, $6$ numbers are chosen from $6$ different urns. Each urn contains the numbers $1, 2, ..., 59$.

I need to pick a set of 6 numbers $(x_1, x_2, x_3, x_4, x_5, x_6)$

If $3$ of the numbers I chose, match $3$ of the numbers drawn from the urn, I win.

e.g. if the numbers chosen from the urn are: $(1,1,2,3,4,5)$

then I win if I chose $(59,1,1,2,10,11)$ but not if I chose $(1,2,10,11,12,13)$

How many sets of $6$ numbers do I need to have: $(x_1, x_2, x_3, x_4, x_5, x_6)_1, (x_1, x_2, x_3, x_4, x_5, x_6)_2, ...$

In order to guarantee a victory?

Edit: a suboptimal solution is to have all $59^6$ possible sets (of 6 numbers); what is the optimal solution?

co9olguy
  • 907
mlguy
  • 61
  • @JMoravitz so for the numbers chosen from the urn there is replacement involved, i.e. the numbers from the urn can be $(1,1,1,1,1,1)$ and I can choose any set of 6 numbers to play with, so how sets (of $6$ numbers) do I need to guarantee $100$% chance of victory; i.e. a suboptimal solution is to have all $59^6$ possible sets; what is the optimal solution? – mlguy Jan 08 '16 at 15:39
  • If you chose $(1,2,3,4,5,6)$ and the numbers drawn are $(1,10,3,10,2,10)$, does that count as a win? – Marcus Andrews Jan 08 '16 at 15:41
  • @MarcusStuhr yes! Order does not matter – mlguy Jan 08 '16 at 15:42
  • I think selecting all numbers between $([1,30] $ makes tge probabilty to win more than $50%$ – Archis Welankar Jan 08 '16 at 15:43
  • I think I understand now, I interpreted it as that you are picking balls from the urn yourself as well and had nonzero probability of picking the exact same set as before. If you are allowing yourself to systematically pick, I would expect the worst case scenario is when all digits in the target are the same, say for example $(1,1,1,1,1,1)$. There are $58^6+6\cdot 58^5+\binom{6}{2}\cdot 58^4$ possible six-digit strings with two or less ones. If you were to pick every arrangement with two or fewer ones first and then pick an arrangement with at least three ones then finally you'd win. – JMoravitz Jan 08 '16 at 15:47
  • 2
    @lottoguy Sorry, I don't get it. In your answer to Marcus' comment you claim that order doesn't matter. On the other hand your formula $59^6$ suggests that order does matter. Furthermore it is not clear to me if the numbers you pick need to be different or not. I assume not but then it is more difficult to define a win (e.g. pick six times 1, chosen from lottery is (1, 2, 3, 4, 5, 6) - a win?!). Could you clarify please? – Dr_Be Jan 08 '16 at 16:26
  • I guess http://math.stackexchange.com/a/208401/290307 could partly help. It is not totally clear from the question, but as far as I understand, @lottoguy https://en.wikipedia.org/w/index.php?title=Combination&oldid=696156264#Number_of_combinations_with_repetition is what we are talking about. – Gyro Gearloose Jan 08 '16 at 18:43
  • @BerndH order doesn't matter (i.e. there are 6 different urns, where 1 to 59 is chosen independently); $59^6$ is a suboptimal solution to the problem (since we unnecessary have different permutations of the essentially the same set of 6 numbers); Gyro's solution is better, to $multichoose(59,6)$ would be better than $59^6$ though still not optimal. – mlguy Jan 09 '16 at 11:22
  • @BerndH if you pick $(1,1,1,1,1,1)$ then the numbers chosen from the lottery urns need to have three ones, so if the numbers chosen from the lottery urns are $(1,2,3,4,5,6)$ you do not win, but if the lottery numbers are $(2,1,1,1,3,4)$ then you do win. – mlguy Jan 09 '16 at 11:25
  • lottoguy please let me know if my answer is ok – Wojciech Karwacki Jan 09 '16 at 11:36

1 Answers1

0

0) Let $@a_1, a_2, a_3, a_4, a_5, a_6@$ denote a sequence of $6$ chosen numbers from the urn of $59$ distinct numbers (with repetitions). There are exactly ${59+6-1 \choose 6} = \frac{64!}{6! \cdot 58!}$ such distinct sequences, see: https://en.wikipedia.org/wiki/Combination#Number_of_combinations_with_repetition

I understand that:

1) there is some previously chosen sequence $@x_1, x_2, x_3, x_4, x_5, x_6@$ (I will call this sequence WT - Winning Ticket) of numbers from the set $\{1,2, \dots, 59\}$ such that the condition of winning the lottery is that at least $3$ numbers from one of our sequences need to match WT;

2) by buying each lottery ticket we can create sequence such that is distinct from all other previously created sequences (if we had not such opportunity there were no question - because only by buying infinite number of tickets the probability of winning would be equal to $1$);

3) after choosing each sequence we return the numbers we picked to the urns - otherwise we would need only $59$ tickets until all the numbers run out.

4) The worst case scenario is when WT is a sequence $@x, x, x, x, x, x@$ for some $x \in \{1,2, \dots, 59\}$. This is because the number of sequences we can match is equal to $1$. It is the sequence $@x,x,x@$. For example, suppose there are $3$ urns each with $4$ numbers from $1$ to $4$ and winning condition is that at least two numbers from the sequences we choose need to match. If WT $= @1,1,1@$ then there is only one sequence we can match, it is $@1,1@$. If WT $=@1,1,2@$ we can match either $@1,2@$ or $@1,1@$.

We will then assume the worst case scenario. By 0) it is clear that if the winning condition was to match ALL the numbers from WT we would need to create all the possible sequences, i.e. $\frac{64!}{6! \cdot 58!}$. But we need only $3$ numbers to match. That means, that (in the worst case scenario) in order to win we have to create sequence $@a_1, a_2, a_3, x, x, x@$, where each $a_1, a_2, a_3$ are arbitrary numbers from the set $\{1,2, \dots, 59\}$.

Because order does not matter, $@a_1, a_2, a_3, x, ,x ,x@ = @a_2, a_3, x, x, a_1, x@$ e.t.c. But there are exactly ${59+3-1 \choose 3} = \frac{61!}{3! \cdot 58!}$ combinations with repetitions of the sequences $@a_1, a_2, a_3, x, x, x@$, where $x$ is fixed (which we need to match) and each $a_1, a_2, a_3$ belongs to $\{1,2, \dots, 59\}$ (which are arbitrary). That means there are $\frac{61!}{3! \cdot 58!}$ sequences we can pick that match WT at at least $3$ numbers. That means we need to buy $\frac{64!}{6! \cdot 58!} - \frac{61!}{3! \cdot 58!} +1$ tickets to be 100% sure to win the lottery.

  • Firstly I misunderstood the question. Secondly I wrote the wrong answer. I'm pretty sure that the above is the correct one. – Wojciech Karwacki Jan 09 '16 at 11:00
  • 1
    Couldn't we save tickets by choosing @1,1,1,2,2,2@ instead of @1,1,1,x,x,x@ and @2,2,2,x,x,x@? I feel the problem is more complicated. – Gyro Gearloose Jan 09 '16 at 12:44
  • 1
    You are right, I haven't thought about that. My first guess is that the problem is actually easier then. As soon as I will have some time I will come back to this question and will try to think about a solution. – Wojciech Karwacki Jan 09 '16 at 13:03
  • 2
    http://math.stackexchange.com/questions/66498/in-lotto-what-is-the-minimum-number-of-tickets-you-would-need-to-buy-to-guarante?rq=1 – Wojciech Karwacki Jan 10 '16 at 10:49