Skip to content

Instantly share code, notes, and snippets.

@chezbgone
Created October 6, 2016 03:42
Show Gist options
  • Select an option

  • Save chezbgone/5a17601384900f01aaea0182dfdb0f8d to your computer and use it in GitHub Desktop.

Select an option

Save chezbgone/5a17601384900f01aaea0182dfdb0f8d to your computer and use it in GitHub Desktop.
data={1,2,2,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,8,8,9,10,4}
Labeled[Labeled[
Show[Histogram[data, 10, PlotTheme -> "Monochrome",
AspectRatio -> 1/2, Axes -> {True, False}, Frame -> False,
ImageSize -> Large],
ContourPlot[{0 == (x - 0.0331028 - 1/2) (x - 10.3169 - 1/2),
0 == (x - 1.03743 - 1/2) (x - 9.31257 - 1/2),
0 == (x - 3.27893 - 1/2) (x - 7.07107 - 1/2),
y ==
40 PDF[NormalDistribution[Mean[data], StandardDeviation[data]],
x - 1/2]}, {x, 0, 11}, {y, 0, 40 0.26}, MaxRecursion -> 3],
PlotRange -> All], "Number of Heads"],
Text[Style["Distribution of Number of Heads", FontSize -> 18]], Top]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment