Jump to content

File:Distributions with equal medians.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 540 × 350 pixels, file size: 32 KB)

Summary

Description
Русский: Плотности двух случайных величин с равными медианами. При этом вторая случайная величина стохастически больше первой.
Date
Source Own work
Author Ilya Voyager

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero 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.

Source code

The image was prepared with Python 3 and Matplotlib. The following source code is in public domain.

import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
# for better style

points = np.array([[-2, 0], [-1, 0], [-1, 1], [0, 0], [0, 1], [1, 0], [2, 0]]).T
fig = plt.figure(figsize=(4 * 1.5, 1.3 * 1.5 * 2))
ax1 = plt.subplot(211)
plt.ylim(0, 1.3)
plt.fill_between(points[0], 0, points[1])
plt.setp(ax1.get_xticklabels(), visible=False)

plt.subplot(212, sharex=ax1)
plt.ylim(0, 1.3)
plt.fill_between(-points[0], 0, points[1])
plt.savefig("distributions with equal medians.svg")

Category:Valid SVG created with Matplotlib code

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

18 October 2016

File history

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

Date/TimeThumbnailDimensionsUserComment
current02:36, 18 October 2016Thumbnail for version as of 02:36, 18 October 2016540 × 350 (32 KB)Ilya VoyagerUser created page with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata