• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 20:32
CEST 02:32
KST 09:32
  • 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 E [Megathread] Daily Proleagues [ASL20] Ro24 Group D [ASL20] Ro24 Group B
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: 5936 users

Rapists math problem

Blogs > jtan
Post a Reply
1 2 Next All
jtan
Profile Blog Joined April 2003
Sweden5891 Posts
February 19 2008 16:31 GMT
#1
I just read Slithe's blog and solved one of his problems and they are all quite fun so I thought I'd try this too!

Ok, I think this is a pretty classic problem, and since I don't want you to cheat I'll reformulate it

So a large number of rapists are sitting in prison while waiting for the DNA-evidence against them to come in. They have all given bloodsamples, and the lab is soon about to compare it with fluids from the respective victims. One of the rapists has some contacts inside the prison administration and manages to get into the evidence room. Here he soon discovers a large box labeled "RAPIST BLOOD" and he eagerly opens it. Inside he finds all the blood samples in test tubes labeled with long numbers.

He hears a guard coming, and in desperation he rips of all the labels, quickly mixes the test tubes, and puts labels back on randomly. He then sneaks back to his cell.

What is the probability that all rapists are found innocent?

Good luck! I hope it's not too hard! If you are confused, just read the text again.

And please don't post solutions you didn't do yourself!

*****
Enter a Uh
Hot_Bid
Profile Blog Joined October 2003
Braavos36375 Posts
February 19 2008 16:35 GMT
#2
lol... rape.
@Hot_Bid on Twitter - ESPORTS life since 2010 - http://i.imgur.com/U2psw.png
fanatacist
Profile Blog Joined August 2007
10319 Posts
February 19 2008 16:39 GMT
#3
Wtf? Wouldn't one of the tainted blood samples still be in the bunch? So one would still be guilty? Can you please clarify.
Peace~
indecision
Profile Blog Joined November 2004
Germany818 Posts
February 19 2008 16:54 GMT
#4
I think they're only testing if you raped your victim, i.e. if your DNA would only be found on another victim you'll be considered innocent.
jtan
Profile Blog Joined April 2003
Sweden5891 Posts
Last Edited: 2008-02-19 16:55:36
February 19 2008 16:54 GMT
#5
Like I said in the post, they only compare a rapists blood with his supposed victim.
edit: yeah like indecision said.

And yeah, since I called them rapists, you may assume they are all in fact guilty.
Enter a Uh
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
February 19 2008 17:39 GMT
#6
Umm I think it depends on the number of rapists >_<
Assuming that each rapist in fact did rape their victims
for n # of rapists
[(n-1)/n]^n chance? :S
Official Entusman #21
Cascade
Profile Blog Joined March 2006
Australia5405 Posts
Last Edited: 2008-02-19 17:50:47
February 19 2008 17:42 GMT
#7
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.
BluzMan
Profile Blog Joined April 2006
Russian Federation4235 Posts
Last Edited: 2008-02-19 17:57:09
February 19 2008 17:50 GMT
#8
I'll randomly say that it's + Show Spoiler +
1/2
without calculations.

EDIT: whoo, no, this is quite different. However, the answer is dependent on N then which you didn't provide, thus the task was formulated incorrectly ^^
You want 20 good men, but you need a bad pussy.
clazziquai
Profile Blog Joined October 2007
6685 Posts
February 19 2008 17:52 GMT
#9
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?
#1 Sea.Really Fan / #1 Nesh Fan / Terran Forever~
Caller
Profile Blog Joined September 2007
Poland8075 Posts
February 19 2008 17:52 GMT
#10
100% they all raped the same girl duhhhhh
Watch me fail at Paradox: http://www.teamliquid.net/forum/viewmessage.php?topic_id=397564
jtan
Profile Blog Joined April 2003
Sweden5891 Posts
February 19 2008 17:52 GMT
#11
Nope.

Try again!
Enter a Uh
joohyunee
Profile Blog Joined May 2005
Korea (South)1087 Posts
February 19 2008 17:56 GMT
#12
he should've just mixed all the blood samples --;;

would've been gg.
jtan
Profile Blog Joined April 2003
Sweden5891 Posts
February 19 2008 18:00 GMT
#13
ok caller just assume they did not gang rape the same girl...

clazzi: no this isn't really statistic, it's more of a simple number theoretic problem. And then you just divide (some cases) with (all cases) to get a probability.
Enter a Uh
Cascade
Profile Blog Joined March 2006
Australia5405 Posts
Last Edited: 2008-02-19 18:38:17
February 19 2008 18:29 GMT
#14
ok, I've found a neat method to prove that the answer is correct by induction. Just have to find the right formula now....

Or if answer by a recursive formula is ok, then the answer is:

+ Show Spoiler +
let P(n) be the probability of getting n prisoners innocent. Then:

P(n) = 1 - 1/n! - Sum(i goes from 1 to n-1)P(i)/(i!(n-i)!)


Feels like there should be a smarter way to go though.
Asta
Profile Joined October 2002
Germany3491 Posts
February 19 2008 18:41 GMT
#15
+ Show Spoiler +
[image loading]
is the number of fixed-point-free permutations of n elements (test tubes). Divided by n! (the total number of permutations) that is the probability of 0 fixed points. Guess looking up that number ruined the fun for me.
Muirhead
Profile Blog Joined October 2007
United States556 Posts
February 19 2008 19:05 GMT
#16
This is a very famous/known result of Euler.
starleague.mit.edu
jtan
Profile Blog Joined April 2003
Sweden5891 Posts
February 19 2008 19:06 GMT
#17
I want a numeric value, not a function of n as an answer. So recursive functions would probably just complicate things.
Enter a Uh
jtan
Profile Blog Joined April 2003
Sweden5891 Posts
February 19 2008 19:09 GMT
#18
On February 20 2008 04:05 Muirhead wrote:
This is a very famous/known result of Euler.

Yes, Euler was also a rapists who got away with it
Enter a Uh
Cascade
Profile Blog Joined March 2006
Australia5405 Posts
February 19 2008 19:20 GMT
#19
+ Show Spoiler +
Hmm, I realised I was looking for the number of fix point free permutaions, but I wouldnt have found that formula of Asta in a while yet. It agrees with my recursive formula up to 5 anyway, so I'll assume for now that it was correct.

For large n, the probability is

Sum(i from 0 to n)(-1)^i / i! = e^(-1) = 0.367879

as it is exactly the taylor expansion of the exponential function.
Cascade
Profile Blog Joined March 2006
Australia5405 Posts
February 19 2008 19:25 GMT
#20
On February 20 2008 02:52 clazziquai wrote:
Show nested quote +
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...
1 2 Next All
Please log in or register to reply.
Live Events Refresh
PiGosaur Monday
00:00
#46
PiGStarcraft236
SteadfastSC38
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft236
NeuroSwarm 147
Nina 136
ProTech85
CosmosSc2 43
Nathanias 41
SteadfastSC 38
StarCraft: Brood War
Artosis 781
Hyuk 470
NaDa 54
Sharp 36
Dota 2
monkeys_forever368
Counter-Strike
fl0m1044
taco 101
Super Smash Bros
hungrybox316
AZ_Axe83
PPMD44
Liquid`Ken8
Other Games
summit1g7182
shahzam1616
Day[9].tv847
C9.Mang0352
WinterStarcraft245
ViBE244
Maynarde150
ToD130
Organizations
Other Games
gamesdonequick833
BasetradeTV16
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• RyuSc2 43
• rockletztv 11
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota22476
League of Legends
• Stunt236
Other Games
• Day9tv847
Upcoming Events
Afreeca Starleague
9h 29m
hero vs Alone
Royal vs Barracks
Replay Cast
23h 29m
The PondCast
1d 9h
WardiTV Summer Champion…
1d 10h
Clem vs Classic
herO vs MaxPax
Replay Cast
1d 23h
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
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
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
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.