Arcsin_density.svg


Summary

Description A plot of the density function of the arcsine distribution .
Date
Source Self-made using python, numpy, and matplotlib.
Author user:Arthena
SVG development
InfoField
W3C grn
The SVG code is valid .
Created with Matplotlib-logo
This plot was created with Matplotlib .
Source code
InfoField

Python code

import numpy as np
import matplotlib.pyplot as plt

N_POINTS = 10**5;  #number of points where the function will be evaluated

plt.figure(1)   
domain = map(lambda t:(float(t)+1)/(float(N_POINTS)+1), range(N_POINTS))
values = map(lambda t:1/(np.pi*np.sqrt(t*(1-t))), domain)
myplot = plt.plot(domain, values)
plt.axis([0,1,0,3])
plt.grid(True)
plt.setp(myplot, 'color', 'b', 'linewidth', 3.0)
plt.xlabel('x', fontsize=16, style='italic')
plt.ylabel('f(x)', fontsize=16, style='italic')
plt.show()

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License , Version 1.2 or any later version published by the Free Software Foundation ; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License .
w:en:Creative Commons
attribution share alike
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.
You may select the license of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

9 July 2011

image/svg+xml

7fbb87c395de6e7ce07d6ad94a7574bac6d8b7f6

27,687 byte

553 pixel

733 pixel