• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 19:01
CEST 01:01
KST 08:01
  • 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
Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5TL.net Map Contest #21 - Finalists4Team TLMC #5: Vote to Decide Ladder Maps!0
Community News
5.0.15 Patch Balance Hotfix (2025-10-8)60Weekly Cups (Sept 29-Oct 5): MaxPax triples up3PartinG joins SteamerZone, returns to SC2 competition285.0.15 Balance Patch Notes (Live version)119$2,500 WardiTV TL Map Contest Tournament 154
StarCraft 2
General
PartinG joins SteamerZone, returns to SC2 competition 5.0.15 Patch Balance Hotfix (2025-10-8) Geoff 'iNcontroL' Robinson has passed away Classic Games #3: Rogue vs Serral at BlizzCon Team TLMC #5: Winners Announced!
Tourneys
SC2's Safe House 2 - October 18 & 19 RSL Offline Finals Dates + Ticket Sales! SC4ALL $6,000 Open LAN in Philadelphia Sparkling Tuna Cup - Weekly Open Tournament $2,500 WardiTV TL Map Contest Tournament 15
Strategy
Custom Maps
External Content
Mutation # 494 Unstable Environment Mutation # 493 Quick Killers Mutation # 492 Get Out More Mutation # 491 Night Drive
Brood War
General
Whose hotkey signature is this? Any rep analyzer that shows resources situation? BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ I'm making videos again
Tourneys
[Megathread] Daily Proleagues [ASL20] Ro8 Day 4 Small VOD Thread 2.0 [ASL20] Ro8 Day 3
Strategy
BW - ajfirecracker Strategy & Training Siegecraft - a new perspective TvZ Theorycraft - Improving on State of the Art Current Meta
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread ZeroSpace Megathread Dawn of War IV Path of Exile
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
SPIRED by.ASL Mafia {211640} TL Mafia Community Thread
Community
General
US Politics Mega-thread The Games Industry And ATVI Stop the Construction YouTube Thread Things Aren’t Peaceful in Palestine
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Inbreeding: Why Do We Do It…
Peanutsc
From Tilt to Ragequit:The Ps…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1158 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
Braavos36379 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
Safe House 2
18:00
Qualifier #2
ZombieGrub389
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ZombieGrub389
PiGStarcraft268
Nathanias 121
StarCraft: Brood War
Larva 274
ZZZero.O 85
910 8
Dota 2
capcasts146
Super Smash Bros
Mew2King51
Heroes of the Storm
Khaldor256
Other Games
summit1g5599
FrodaN3505
Grubby2610
fl0m877
Skadoodle97
Trikslyr94
ViBE56
Organizations
Other Games
gamesdonequick1039
BasetradeTV134
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Hupsaiya 60
• RyuSc2 51
• musti20045 44
• IndyKCrew
• Migwel
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• LaughNgamezSOOP
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• Ler83
League of Legends
• Doublelift3509
Other Games
• imaqtpie1292
• Scarra567
• Shiphtur312
Upcoming Events
Sparkling Tuna Cup
10h 59m
Map Test Tournament
11h 59m
Zoun vs Spirit
Reynor vs herO
Clem vs MaxPax
OSC
12h 59m
IPSL
19h 59m
Bonyth vs Art_Of_Turtle
Razz vs rasowy
Afreeca Starleague
1d 10h
Barracks vs Snow
Afreeca Starleague
2 days
Soma vs Bisu
OSC
2 days
OSC
2 days
The PondCast
4 days
OSC
4 days
[ Show More ]
CranKy Ducklings
6 days
Safe House 2
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
Maestros of the Game
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
WardiTV TLMC #15
EC S1
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 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.