File:Diagramme qq python matplotlib.svg

Summary

Description
Français : Diagramme quantile-quantile d'un échantillon aléatoire de 100 valeurs avec une loi normale centrée réduite.
English: QQ-plot of a sample of 100 values with a normal law.
Date
Source Own work
Author Cdang
 
This W3C-invalid plot was created with Matplotlib.
Category:Invalid SVG created with Matplotlib#1000Diagramme%20qq%20python%20matplotlib.svg
import numpy as np
from scipy import stats
import matplotlib.pyplot as plt

X = stats.norm.rvs(size=100)

p = np.arange(0.1, 1, 0.1)

qexp = np.quantile(X, p)
qth = stats.norm.ppf(p)
extr = stats.norm.ppf([0.1, 0.9])

plt.plot(extr, extr, "--r")
plt.plot(qth, qexp, "*")
plt.title("diagramme quantiles-quantiles")
plt.xlabel("quantiles théoriques")
plt.ylabel("quantiles expérimentaux")

plt.savefig("diagramme_qq_python_matplotlib.svg")

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International 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.
  • 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.
Category:CC-BY-SA-4.0#Diagramme%20qq%20python%20matplotlib.svg
Category:Self-published work Category:Quantiles
Category:CC-BY-SA-4.0 Category:Invalid SVG created with Matplotlib Category:Pages using deprecated source tags Category:Quantiles Category:Self-published work