Created
July 9, 2015 16:00
-
-
Save johanrhodin/2147e3df9fdddc9525e7 to your computer and use it in GitHub Desktop.
Plot improvement suggestion for "Error and Dimensionality" draft article by Nassim Nicholas Taleb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(*See Figure 1 in https://dl.dropboxusercontent.com/u/50282823/Propagation.pdf*) | |
With[{a = 10, b = 20}, | |
Plot[{PDF[UniformDistribution[{0, 1}], f], | |
PDF[BetaDistribution[a, b], f]}, | |
{f, 0, 1}, | |
Filling -> Axis, | |
AxesLabel -> {Text[Style["f", Italic]], "Pr"}, | |
PlotRange -> All, | |
Ticks -> {Automatic, None}, | |
PlotLegends -> | |
Placed[SwatchLegend[{"Uniform", "Beta"}, LegendMarkers -> "Line", | |
LegendFunction -> "Frame", | |
LegendLayout -> "Column"], {{0.8, Top}, {Center, Top}}]]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment