Jump to content

File:Cauchy cdf.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 360 × 288 pixels, file size: 36 KB)

Summary

Description
English: Plots of the cumulative distribution functions for several members of the Cauchy family of probability distributions.
Source Own work
Author Skbkekas
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

import numpy as np
import matplotlib.pyplot as plt
import scipy.special as sp

col = ['orange', 'purple', 'deepskyblue', 'mediumseagreen']

X = np.arange(-5, 5, 0.01)

plt.clf()
plt.figure(figsize=(4,3.2))
plt.axes([0.14,0.12,0.83,0.82])

X = np.arange(-5, 5, 0.01)

A = []
for k,(x,g) in enumerate([(0,0.5),(0,1),(0,2),(-2,1)]):
    Y = np.arctan((X-x)/g)/np.pi + 0.5
    a = plt.plot(X, Y, '-', color=col[k], lw=1.7)
    A.append(a)

plt.xlabel("$x$")
plt.ylabel(r"$P(X\le x)$")
plt.ylim([0,1.0])
plt.tick_params(direction='in', top=True, right=True)

plt.legend(("$x_0=0,\\, \\gamma=0.5$", "$x_0=0,\\,\\gamma=1$",\
                    "$x_0=0,\\, \\gamma=2$", "$x_0=-2,\\, \\gamma=1$"),
                numpoints=1, handlelength=0.75, handletextpad=0.5,\
                loc="lower right", frameon=False)

plt.xlim(-5,5)

plt.savefig("cauchy_cdf.pdf")
plt.savefig("cauchy_cdf.svg")

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

image/svg+xml

caebee8afd1bf5dc6579eac446fc9133460ff77f

36,545 byte

288 pixel

360 pixel

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current02:45, 21 November 2020Thumbnail for version as of 02:45, 21 November 2020360 × 288 (36 KB)AkanoToEMade all text LaTeX, improved legend spacing
15:24, 4 March 2010Thumbnail for version as of 15:24, 4 March 2010360 × 288 (37 KB)Skbkekas{{Information |Description={{en|1=Plots of the cumulative distribution functions for several members of the Cauchy family of probability distributions.}} |Source={{own}} |Author=Skbkekas |Date= |Permission= |other_versions= }} [[Categor

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata