Board 8 > Another probability question

Topic List
Page List: 1
Moonroof
05/16/20 11:16:55 PM
#1:


A random seven digit number is written down. On average, how many unique digits will appear within it? Provide the probabilities for 1-7.


So for this one, Im assuming itll be four, but it might be five. I have no idea what the probabilities are though.
... Copied to Clipboard!
SuperNiceDog
05/16/20 11:20:18 PM
#2:


5

I just took a guess

---
Azuarc is the 2020 Guru GOTD 2 Contest Champion!
... Copied to Clipboard!
Moonroof
05/16/20 11:20:52 PM
#3:


... Copied to Clipboard!
ninkendo
05/16/20 11:21:06 PM
#4:


... Copied to Clipboard!
Moonroof
05/16/20 11:22:29 PM
#5:


... Copied to Clipboard!
Moonroof
05/16/20 11:25:04 PM
#6:


... Copied to Clipboard!
azuarc
05/16/20 11:37:37 PM
#7:


There are 9,000,000 seven digit numbers, assuming that starting with 0 is not allowed.

7 unique) 9*9P6=544320 of them with all unique digits. (About 6%.)
6 unique) 9C1*7C2*9P5 to pick your double, to place the double, and then select the other digits = 2857680, or 31.7% [This actually excludes having double zeroes, so it's technically higher.]
1 unique) There are a total of 9 of them (.0001%) that have a single digit.

After that it gets much trickier because if you have 4 unique, is that because you have one quadruplicate, or three duplicates, or a triplicate and a duplicate? So those cases require a little more thought than I have time for right now.

---
Congratulations to all the gurus, past and present, participating in the contest.
Video Game Music Contest 14: Now in progress. Come join us!
... Copied to Clipboard!
tyder21
05/17/20 12:07:14 AM
#8:


Wrote a program to do this one for me. Thankfully far easier than the previous problem.

1 Unique: 9 (0.0001%)
2 Unique: 5,103 (0.0567%)
3 Unique: 195,048 (2.1672%)
4 Unique: 1,587,600 (17.64%)
5 Unique: 3,810,240 (42.336%)
6 Unique: 2,857,680 (31.752%)
7 Unique: 544,320 (6.048%)

Average: 5.217031 unique digits

---
http://letterboxd.com/tyder21/
Ain't no party like an azuarc party.
... Copied to Clipboard!
azuarc
05/17/20 12:09:59 AM
#9:


I think it's uncanny that your numbers agree with mine, yet my calculations for 6 unique explicitly ignore numbers like 1234500.

---
Congratulations to all the gurus, past and present, participating in the contest.
Video Game Music Contest 14: Now in progress. Come join us!
... Copied to Clipboard!
tyder21
05/17/20 12:14:17 AM
#10:


I was just staring at your solution for 6 unique digits for the same reason. I'm honestly too tired right now to figure out why your solution accidentally fell into the right value.

The program is as naive as can be though, so I don't think it has a flaw just goes one-by-one from 1,000,000 to 9,999,999 and counts unique digits for each.

---
http://letterboxd.com/tyder21/
Ain't no party like an azuarc party.
... Copied to Clipboard!
tyder21
05/17/20 12:25:08 AM
#11:


I said that, but continued to stare at it anyway.

It's because your solution accidentally introduces a bunch of 0-leading numbers (e.g. 0112345). This perfectly offsets for the double-0's that you weren't contemplating because you can take any of these 0-leading numbers and map them to valid double-0 numbers. 0112345 -> 1002345.

Accidentally very clever.

---
http://letterboxd.com/tyder21/
Ain't no party like an azuarc party.
... Copied to Clipboard!
azuarc
05/17/20 12:26:12 AM
#12:


Oh, duh. Just because I chose the double first doesn't preclude the number starting with a unique 0.

And also, it's awesome that somehow works out the same. Very nice catch.

---
Congratulations to all the gurus, past and present, participating in the contest.
Video Game Music Contest 14: Now in progress. Come join us!
... Copied to Clipboard!
Moonroof
05/17/20 4:29:09 AM
#13:


Amazing work, fellas!
... Copied to Clipboard!
Cavedweller2000
05/17/20 11:13:02 AM
#14:


I'm really dumb when it comes to figuring this stuff out, but I'm always interested in reading how you work it out etc

Good work guys.

And keep asking these questions Moon

---
Well done to azuarc for finishing 67 places above me in the 2020 GOTD Guru Contest!
... Copied to Clipboard!
davidponte
05/17/20 4:36:56 PM
#15:


tyder21 posted...
I'm honestly too tired right now to figure out why your solution accidentally fell into the right value.

I have always been bad at math and most of this is a foreign language to me, but I feel like this perfectly describes my incredibly mediocre high school math career and I laughed out loud when I read it.


---
I was the final Undisputed Champion in UCA history,
but azuarc was our Guru Champion!
... Copied to Clipboard!
Topic List
Page List: 1