File:Diagramme qq python matplotlib.svg

Summary

Category:Files by User:cdang
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
SVG development
InfoField
 The source code of this SVG is invalid due to an error.
 This W3C-invalid diagram was created with Matplotlib by cdang.
Category:Invalid SVG created with Matplotlib#1000Diagramme%20qq%20python%20matplotlib.svg

Source code

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.svgCategory:Self-published work
Category:Quantiles
Category:CC-BY-SA-4.0 Category:Files by User:cdang Category:Invalid SVG created with Matplotlib Category:Quantiles Category:Self-published work