File:100 prisoners problem.svg

Summary

Description
English: 100 prisoners problem: Probabilities of success
Date
Source Own work
Author HilberTraum
SVG development
InfoField

R source:

N <- 200
H <- cumsum(1/(1:N))
n <- 1:(N/2)
p <- 1-H[2*n]+H[n]

svg(point=16)
old.par <- par(mar=c(5.1,4.1,1.1,1.1), bg="transparent")
plot(2*n, p, pch=20, col="red", ylim=c(0.25,0.5), xlab="Zahl der Gefangenen", ylab="Überlebenswahrscheinlichkeit")
abline(h=1-log(2), lwd=2, lty=2)
par(old.par)
dev.off()

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-3.0#100%20prisoners%20problem.svg
Category:Self-published work Category:Probability paradoxes
Category:CC-BY-SA-3.0 Category:Probability paradoxes Category:SVG created also with Inkscape Category:Self-published work Category:Valid SVG created with R