Source: Wikipedia, the free encyclopedia.
Original file (SVG file, nominally 720 × 288 pixels, file size: 33 KB)
Summary
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication .
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.en CC0 Creative Commons Zero, Public Domain Dedication false false
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
N = 1000000
orig = stats . reciprocal . rvs ( a = 0.1 , b = 100 , size = N )
fig , ax = plt . subplots ( 1 , 2 , figsize = ( 8 , 3.2 ))
hist , bins , _ = plt . hist ( orig , bins = 8 )
plt . cla ()
ax [ 0 ] . hist ( orig , rwidth = 0.8 )
ax [ 0 ] . set_xlabel ( "x" )
ax [ 0 ] . set_ylabel ( "C(x)" )
ax [ 0 ] . set_ylim ( 0 , 1e6 )
logbins = np . logspace ( np . log10 ( bins [ 0 ]), np . log10 ( bins [ - 1 ]), len ( bins ))
ax [ 1 ] . hist ( orig , bins = logbins , rwidth = 0.8 )
ax [ 1 ] . set_xscale ( 'log' )
ax [ 1 ] . set_xlabel ( "x" )
ax [ 1 ] . set_ylabel ( "C(x)" )
ax [ 1 ] . set_ylim ( 0 , 5e5 )
plt . tight_layout ()
plt . savefig ( "/dbfs/FileStore/Wikipedia/reciprocal_hist.svg" )
display ()
English Histogram and log-histogram of random deviates from the reciprocal distribution
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time Thumbnail Dimensions User Comment
current 15:02, 1 July 2019 720 × 288 (33 KB) Bscan User created page with UploadWizard
File usage
The following page uses this file:
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.