• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:12
CEST 07:12
KST 14:12
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL20] Ro24 Preview Pt2: Take-Off6[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18
Community News
Weekly Cups (Aug 18-24): herO dethrones MaxPax5Maestros of The Game—$20k event w/ live finals in Paris30Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195
StarCraft 2
General
Weekly Cups (Aug 18-24): herO dethrones MaxPax What mix of new and old maps do you want in the next 1v1 ladder pool? (SC2) : A Eulogy for the Six Pool Geoff 'iNcontroL' Robinson has passed away 2v2 & SC: Evo Complete: Weekend Double Feature
Tourneys
WardiTV Mondays Maestros of The Game—$20k event w/ live finals in Paris RSL: Revival, a new crowdfunded tournament series Sparkling Tuna Cup - Weekly Open Tournament Monday Nights Weeklies
Strategy
Custom Maps
External Content
Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below
Brood War
General
No Rain in ASL20? BW General Discussion Flash On His 2010 "God" Form, Mind Games, vs JD BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ro24 Preview Pt2: Take-Off
Tourneys
[ASL20] Ro24 Group F [ASL20] Ro24 Group E [Megathread] Daily Proleagues [IPSL] CSLAN Review and CSLPRO Reimagined!
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting Muta micro map competition
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread General RTS Discussion Thread Dawn of War IV Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine The year 2050 European Politico-economics QA Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
High temperatures on bridge(s) Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment"
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
Evil Gacha Games and the…
ffswowsucks
Breaking the Meta: Non-Stand…
TrAiDoS
INDEPENDIENTE LA CTM
XenOsky
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
ASL S20 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2122 users

Rapists math problem - Page 2

Blogs > jtan
Post a Reply
Prev 1 2 All
jtan
Profile Blog Joined April 2003
Sweden5891 Posts
February 19 2008 19:35 GMT
#21
Correct~~!

But using that formula asta posted is almost cheating-.,-

Also, the formula doesn't at all require large n since the taylor expansion for 1/e converges amazingly fast. In the problem I said "a large number of rapists". You get 2 correct decimals already at n=5, and with n=20 you get 18 correct decimals.
Enter a Uh
FirstBorn
Profile Blog Joined March 2007
Romania3955 Posts
February 19 2008 21:27 GMT
#22
On February 20 2008 04:25 Cascade wrote:
Show nested quote +
On February 20 2008 02:52 clazziquai wrote:
On February 20 2008 02:42 Cascade wrote:
Solution.

+ Show Spoiler +
Let n be the number of rapists. That random guy can relabel the samples in n! different ways. n choices for where to put hte first label, n-1 for the second label, etc.

-----------------flawed------------
In how many ways can he label them such that he doesnt place the right name on any sample?
For the first label, he has n-1 alternatives. Lets say he places the first label on sample number i. Then the label i can go n-1 samples still, since the only one occupied is his own. So label i goes on sample j. Label j now can go n-2 samples, since i is occupied, and j is both occupied and forbidden. etc. Total number of possible "all innocent" labelings becomes
------------------flawed------------

(n-1)(n-1)(n-2)(n-3)...3*2*1 = n! / n <-- wrong

Now we see that the number of "all innocent" labelings is 1/n times as many as the total number of labels from which we can say that the probability of all the rapists going free is 1/n. Seems to fit with brute force for n=2 and n=3.


EDIT: found a flaw. And a misscalcualtion. sorry, just disregard.


You sound so smart lol. Didn't you solve another really hard math problem earlier? >_>

Is this statistics?


haha, thanks I guess. I've been posting in a few other threads like these yes...


What he means is that he solved all the problems in threads like these.
SonuvBob: Yes, the majority of TL is college-aged, and thus clearly stupid.
gwho
Profile Blog Joined January 2008
United States632 Posts
Last Edited: 2008-02-19 21:33:30
February 19 2008 21:30 GMT
#23
+ Show Spoiler +
0%, because now his fingerprints are all over the samples. they probably set up "connections" for every suspect. and anyone innocent wouldn't touch them.

too easy.

one giveaway is the fact that it's a "large number" of rapists. you should give a number of rapists like 100 or something.
jtan
Profile Blog Joined April 2003
Sweden5891 Posts
February 19 2008 22:21 GMT
#24
........

The fact that the actual number of rapists doesn't matter is what makes it interesting -_-
Enter a Uh
Slithe
Profile Blog Joined February 2007
United States985 Posts
February 19 2008 22:31 GMT
#25
It makes me happy to see that my blog has inspired other people to post up cool math problems. We should create a TL math ring :D
thoraxe
Profile Blog Joined March 2007
United States1449 Posts
February 19 2008 23:55 GMT
#26
man this is waaaaaaay harder than what i thought. I hate these theoretical probablility problems.
Obama singing "Kick Ass" Song: http://www.youtube.com/watch?v=yghFBt-fXmw&feature=player_embedde
imDerek
Profile Blog Joined August 2007
United States1944 Posts
February 20 2008 02:24 GMT
#27
this is called derangement
Least favorite progamers: Leta, Zero, Mind, Shine, free, really <-- newly added
dinmsab
Profile Blog Joined January 2008
Malaysia2246 Posts
February 21 2008 11:54 GMT
#28
Last time it was prisoners, now its rapist...

I like using prisoners moar.
..
jtan
Profile Blog Joined April 2003
Sweden5891 Posts
February 23 2008 17:16 GMT
#29
On February 21 2008 20:54 dinmsab wrote:
Last time it was prisoners, now its rapist...

I like using prisoners moar.

haha, next time slithe and I will construct a prison rape math problem!
Enter a Uh
jtan
Profile Blog Joined April 2003
Sweden5891 Posts
February 23 2008 18:09 GMT
#30
And yeah by request, here is a complete solution, pretty carefully explained. If you are not really into math but would like to know a little-> hit the spoiler buttons!


Ok, let's say there are n rapists, although this won't really matter.

The blood samples are can be labeled in N0:=n! ways.

In how many of these cases does atleast 1 label get the right bloodsample?

N1:=n*(n-1)! = n!

+ Show Spoiler +
first pick 1 of the rapists. Can do that in n ways, Say he got connected with his own bloodsample. Then randomly map the others names into samples in (n-1)! ways


And more generally. In how many cases does atleast i rapists get connected with the right sample?

Ni:=(n over i)*(n-i)!=n!/i!

+ Show Spoiler +
choosing first i from the rapists and giving them the right sample connection. Then randomly distributing the others. So this is the number of ways that could be done.


Now simply by the principle of inclusion/exclusion, N:=number of ways that nobody is connected with his own sample is:

N=N0-N1+N2-N3+...(-1)^i*Ni+...Nn

+ Show Spoiler +
This might be hard to grasp if you havn't seen it before, but it's a fun concept so I'll explain it briefly.

There are totally N0 ways. But then we counted too many, so we remove those cases where 1 guy (or more) got the right sample -> -N1. But then we counted too too few, because we took away some cases twice or more. So we have to add N2 and so on. Well might still be hard to see. Let's have a quick example.
+ Show Spoiler [example] +

25 people on tl.net:
12 plays starcraft
8 plays wc3
9 plays wow

4 plays sc and wc3
3 plays wc3 and wow
3 plays sc and wow

1 plays sc wc3 and wow

So of the 25, how many doesn't play?
One way of calculating this would be 25-(12+8+9)+(4+3+3)-1=5

Simple to understand if you think about it. Or draw venn diagrams.



Ok, if you convinced yourself, let's draw calculate the probability in the original question. p:=probability that no rapist is matched with his own sample=

N/N0=N/n!=1-1+1/2!-1/3!+1/4!-...+(-1)^n *1/n!

If you had kept going forever without stopping at the n:th term you have the taylor expansion for e^-1 exactly.

+ Show Spoiler +
In case you are not familiar with taylor expansions, this is a way to express (almost) any function as a infinite polynomial. This is done by constructing the polynomial so that it's function value and all power-derivatives have the same value for some point.
Taylor expansion for e can be calculated to

e^x=1+x/1!+x^2/2!+...+x^i/i!+...

using the point zero.

(wiki for taylor expansion)

Now take x=-1 to get the exact formula we were stuck with above!


so p=~1/e. The more terms we have in the expansion the closer we will get. Since the sum is alternating with decreasing terms it's simple to show that error=|p-1/x|<1/(n+1)!

So 20 rapists would give a smaller error from 1/e than 1/21!=extremy little.


Wow, this looks a lot more complex then it really is, hope I don't scare away some hs students from math If you take math at university it all comes step by step, and it's not really hard at all.

Cheers!
Enter a Uh
Prev 1 2 All
Please log in or register to reply.
Live Events Refresh
Next event in 4h 48m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 123
StarCraft: Brood War
Sea 779
ggaemo 238
PianO 227
Tasteless 122
Icarus 13
Dota 2
monkeys_forever767
capcasts175
LuMiX0
Counter-Strike
m0e_tv1550
Stewie2K424
semphis_49
Other Games
summit1g9442
tarik_tv7025
shahzam548
WinterStarcraft526
C9.Mang0343
hungrybox309
NeuroSwarm102
Maynarde98
RuFF_SC237
SortOf4
Organizations
Other Games
gamesdonequick726
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH167
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Diggity6
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1026
• Lourlo926
• Stunt506
Other Games
• Scarra1022
Upcoming Events
Afreeca Starleague
4h 48m
hero vs Alone
Royal vs Barracks
Replay Cast
18h 48m
The PondCast
1d 4h
WardiTV Summer Champion…
1d 5h
Clem vs Classic
herO vs MaxPax
Replay Cast
1d 18h
LiuLi Cup
2 days
MaxPax vs TriGGeR
ByuN vs herO
Cure vs Rogue
Classic vs HeRoMaRinE
Cosmonarchy
2 days
OyAji vs Sziky
Sziky vs WolFix
WolFix vs OyAji
BSL Team Wars
2 days
Team Hawk vs Team Dewalt
BSL Team Wars
2 days
Team Hawk vs Team Bonyth
SC Evo League
3 days
TaeJa vs Cure
Rogue vs threepoint
ByuN vs Creator
MaNa vs Classic
[ Show More ]
Maestros of the Game
3 days
ShoWTimE vs Cham
GuMiho vs Ryung
Zoun vs Spirit
Rogue vs MaNa
[BSL 2025] Weekly
3 days
SC Evo League
4 days
Maestros of the Game
4 days
SHIN vs Creator
Astrea vs Lambo
Bunny vs SKillous
HeRoMaRinE vs TriGGeR
BSL Team Wars
4 days
Team Bonyth vs Team Sziky
BSL Team Wars
4 days
Team Dewalt vs Team Sziky
Monday Night Weeklies
5 days
Replay Cast
5 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

CSLAN 3
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL Season 18: Qualifier 1
Acropolis #4 - TS1
CSL Season 18: Qualifier 2
SEL Season 2 Championship
WardiTV Summer 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
Sisters' Call Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.