bernoulli_pdf.svg 6.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <svg width="750" height ="400" version="1.1"
  3. xmlns:svg ="http://www.w3.org/2000/svg"
  4. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  5. xmlns:cc="http://web.resource.org/cc/"
  6. xmlns:dc="http://purl.org/dc/elements/1.1/"
  7. xmlns ="http://www.w3.org/2000/svg"
  8. >
  9. <!-- SVG plot written using Boost.Plot program (Creator Jacob Voytko) -->
  10. <!-- Use, modification and distribution of Boost.Plot subject to the -->
  11. <!-- Boost Software License, Version 1.0.-->
  12. <!-- (See accompanying file LICENSE_1_0.txt -->
  13. <!-- or copy at http://www.boost.org/LICENSE_1_0.txt) -->
  14. <clipPath id="plot_window"><rect x="85.2" y="59" width="512.8" height="281"/></clipPath>
  15. <g id="imageBackground" stroke="rgb(119,136,153)" fill="rgb(255,255,255)" stroke-width="2"><rect x="0" y="0" width="750" height="400"/></g>
  16. <g id="plotBackground" stroke="rgb(119,136,153)" fill="rgb(255,255,255)" stroke-width="2"><rect x="84.2" y="58" width="514.8" height="283"/></g>
  17. <g id="yMinorGrid" stroke="rgb(200,220,255)" stroke-width="0.5"></g>
  18. <g id="yMajorGrid" stroke="rgb(200,220,255)" stroke-width="1"></g>
  19. <g id="xMinorGrid" stroke="rgb(200,220,255)" stroke-width="0.5"></g>
  20. <g id="xMajorGrid" stroke="rgb(200,220,255)" stroke-width="1"></g>
  21. <g id="yAxis" stroke="rgb(0,0,0)" stroke-width="1"><line x1="212.9" y1="58" x2="212.9" y2="346"/><line x1="84.2" y1="58" x2="84.2" y2="341"/></g>
  22. <g id="xAxis" stroke="rgb(0,0,0)" stroke-width="1"><line x1="79.2" y1="341" x2="599" y2="341"/><line x1="79.2" y1="341" x2="599" y2="341"/></g>
  23. <g id="yMinorTicks" stroke="rgb(0,0,0)" stroke-width="1"><path d="M82.2,334.1 L84.2,334.1 M82.2,327.3 L84.2,327.3 M82.2,320.4 L84.2,320.4 M82.2,313.6 L84.2,313.6 M82.2,299.8 L84.2,299.8 M82.2,293 L84.2,293 M82.2,286.1 L84.2,286.1 M82.2,279.3 L84.2,279.3 M82.2,265.5 L84.2,265.5 M82.2,258.7 L84.2,258.7 M82.2,251.8 L84.2,251.8 M82.2,245 L84.2,245 M82.2,231.2 L84.2,231.2 M82.2,224.4 L84.2,224.4 M82.2,217.5 L84.2,217.5 M82.2,210.6 L84.2,210.6 M82.2,196.9 L84.2,196.9 M82.2,190.1 L84.2,190.1 M82.2,183.2 L84.2,183.2 M82.2,176.3 L84.2,176.3 M82.2,162.6 L84.2,162.6 M82.2,155.8 L84.2,155.8 M82.2,148.9 L84.2,148.9 M82.2,142 L84.2,142 M82.2,128.3 L84.2,128.3 M82.2,121.5 L84.2,121.5 M82.2,114.6 L84.2,114.6 M82.2,107.7 L84.2,107.7 M82.2,94.02 L84.2,94.02 M82.2,87.16 L84.2,87.16 M82.2,80.3 L84.2,80.3 M82.2,73.44 L84.2,73.44 M82.2,59.72 L84.2,59.72 M82.2,341 L84.2,341 " fill="none"/></g>
  24. <g id="xMinorTicks" stroke="rgb(0,0,0)" stroke-width="1"></g>
  25. <g id="yMajorTicks" stroke="rgb(0,0,0)" stroke-width="2"><path d="M79.2,341 L84.2,341 M79.2,306.7 L84.2,306.7 M79.2,272.4 L84.2,272.4 M79.2,238.1 L84.2,238.1 M79.2,203.8 L84.2,203.8 M79.2,169.5 L84.2,169.5 M79.2,135.2 L84.2,135.2 M79.2,100.9 L84.2,100.9 M79.2,66.58 L84.2,66.58 M79.2,341 L84.2,341 " fill="none"/></g>
  26. <g id="xMajorTicks" stroke="rgb(0,0,0)" stroke-width="2"><path d="M212.9,341 L212.9,346 M470.3,341 L470.3,346 M212.9,341 L212.9,346 " fill="none"/></g>
  27. <g id="xTicksValues">
  28. <text x="212.9" y="361.6" text-anchor="middle" font-size="12" font-family="Verdana">0</text>
  29. <text x="470.3" y="361.6" text-anchor="middle" font-size="12" font-family="Verdana">1</text>
  30. <text x="212.9" y="361.6" text-anchor="middle" font-size="12" font-family="Verdana">0</text></g>
  31. <g id="yTicksValues">
  32. <text x="73.2" y="343.4" text-anchor="end" font-size="12" font-family="Verdana">0</text>
  33. <text x="73.2" y="309.1" text-anchor="end" font-size="12" font-family="Verdana">0.1</text>
  34. <text x="73.2" y="274.8" text-anchor="end" font-size="12" font-family="Verdana">0.2</text>
  35. <text x="73.2" y="240.5" text-anchor="end" font-size="12" font-family="Verdana">0.3</text>
  36. <text x="73.2" y="206.2" text-anchor="end" font-size="12" font-family="Verdana">0.4</text>
  37. <text x="73.2" y="171.9" text-anchor="end" font-size="12" font-family="Verdana">0.5</text>
  38. <text x="73.2" y="137.6" text-anchor="end" font-size="12" font-family="Verdana">0.6</text>
  39. <text x="73.2" y="103.3" text-anchor="end" font-size="12" font-family="Verdana">0.7</text>
  40. <text x="73.2" y="68.98" text-anchor="end" font-size="12" font-family="Verdana">0.8</text>
  41. <text x="73.2" y="343.4" text-anchor="end" font-size="12" font-family="Verdana">0</text></g>
  42. <g id="yLabel">
  43. <text x="42.9" y="199.5" text-anchor="middle" transform = "rotate(-90 42.9 199.5 )" font-size="14" font-family="Verdana">Probability</text></g>
  44. <g id="xLabel">
  45. <text x="341.6" y="376.7" text-anchor="middle" font-size="14" font-family="Verdana">Random Variable</text></g>
  46. <g id="plotLines" stroke-width="2"><g clip-path="url(#plot_window)" stroke="rgb(0,0,139)" fill="rgb(0,0,139)" stroke-width="1"><path d="M116.4,341 L116.4,341 L116.4,83.73 L180.7,83.73 L180.7,341 L373.8,341 L373.8,255.2 L438.1,255.2 L438.1,341 L438.1,341 Z" fill="rgb(0,0,139)"/></g>
  47. <g clip-path="url(#plot_window)" stroke="rgb(139,0,0)" fill="rgb(139,0,0)" stroke-width="1"><path d="M180.7,341 L180.7,341 L180.7,169.5 L245.1,169.5 L245.1,341 L438.1,341 L438.1,169.5 L502.4,169.5 L502.4,341 L502.4,341 Z" fill="rgb(139,0,0)"/></g>
  48. <g clip-path="url(#plot_window)" stroke="rgb(0,100,0)" fill="rgb(0,100,0)" stroke-width="1"><path d="M245.1,341 L245.1,341 L245.1,255.2 L309.4,255.2 L309.4,341 L502.4,341 L502.4,83.73 L566.8,83.73 L566.8,341 L566.8,341 Z" fill="rgb(0,100,0)"/></g>
  49. </g>
  50. <g id="plotPoints" clip-path="url(#plot_window)"></g>
  51. <g id="legendBackground" stroke="rgb(119,136,153)" fill="rgb(255,255,255)" stroke-width="1"><rect x="613" y="58" width="111" height="105"/><rect x="613" y="58" width="111" height="105"/></g>
  52. <g id="legendPoints"><g stroke="rgb(0,0,139)" fill="rgb(255,255,255)" stroke-width="1"><line x1="628" y1="88" x2="643" y2="88"/></g>
  53. <g stroke="rgb(139,0,0)" fill="rgb(255,255,255)" stroke-width="1"><line x1="628" y1="118" x2="643" y2="118"/></g>
  54. <g stroke="rgb(0,100,0)" fill="rgb(255,255,255)" stroke-width="1"><line x1="628" y1="148" x2="643" y2="148"/></g>
  55. </g>
  56. <g id="legendText">
  57. <text x="650.5" y="88" font-size="15" font-family="Verdana">p=0.25</text>
  58. <text x="650.5" y="118" font-size="15" font-family="Verdana">p=0.5</text>
  59. <text x="650.5" y="148" font-size="15" font-family="Verdana">p=0.75</text></g>
  60. <g id="title">
  61. <text x="375" y="40" text-anchor="middle" font-size="20" font-family="Verdana">Bernoulli Distribution PDF</text></g>
  62. <g id="plotXValues"></g>
  63. <g id="plotYValues"></g>
  64. </svg>