File:Percentile.png

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

Original file(2,400 × 1,600 pixels, file size: 81 KB, MIME type: image/png)

Summary

Description
English: Illustration of the first definition of "percentile" used in en:percentile.
Date
Source Own work
Author Pred

Source code

The plot may be reproduced using the following Python code:

import matplotlib.pyplot as plt
from matplotlib.patches import Ellipse
import seaborn as sns

color = sns.color_palette('muted', 1)
sns.set_palette(color)
values = [15, 20, 35, 40, 50]
for i, a in enumerate(values):
    def add_ellipse(x, fill):
        ax = plt.gca()
        ax.add_artist(Ellipse((x, a), 2, 1, fill=fill, edgecolor=color[0]))
    plt.plot([i*100/len(x), (i+1)*100/len(x)], [a, a])
    if i > 0:
        add_ellipse(i*100/len(x), False)
    add_ellipse((i+1)*100/len(x), True)

plt.xlabel('Percent rank')
plt.ylabel('Percentile value')
plt.xlim(0, 102)
plt.ylim(14, 51)
plt.savefig('percentile.png', dpi=400)

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

19 March 2017

File history

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

Date/TimeThumbnailDimensionsUserComment
current16:37, 19 March 2017Thumbnail for version as of 16:37, 19 March 20172,400 × 1,600 (81 KB)PredUser created page with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Metadata