File:2d-chi-squared-pdf.svg
Original file (SVG file, nominally 521 × 298 pixels, file size: 50 KB)
Captions
Summary
[edit]Description2d-chi-squared-pdf.svg |
English: Probability density function of the chi squared distribution
Deutsch: Wahrscheinlichkeitsdichtefunktion der Chi-Quadrat Verteilung |
Date | |
Source | Own work |
Author | MartinThoma |
Mathematical Function Plot | |
---|---|
Description | Plot of the probability density function (pdf) of the chi squared distribution |
Equation | |
Coordinate System | Cartesian |
Range | 0 .. 8 |
Range | 0 .. 0.5 |
This file was created with LaTeX (TikZ), starting with my TikZ template:
\documentclass[border=2pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\usepackage{tikz}
\usepackage{xcolor}
\definecolor{yellow}{HTML}{cccc00}
\definecolor{neongreen}{HTML}{00dd00}
\definecolor{turquoise}{HTML}{00cccc}
\definecolor{lila}{HTML}{aa00aa}
\begin{document}
\pgfplotscreateplotcyclelist{mylist}{%
{yellow},
{neongreen, densely dashed},
{turquoise, dashed},
{blue,densely dotted},
{lila,dotted},
{red,loosely dotted},
{black}}
\begin{tikzpicture}
\begin{axis}[
title=$\chi^2_k$,
legend style={at={(0.95, 0.95), anchor=north west}},
axis x line=middle,
axis y line=middle,
grid = major,
width = 16cm,
height= 9cm,
grid style={dashed, gray!30},
domain = 0.01:8,
restrict y to domain = 0:0.5,
axis background/.style={fill=white},
xlabel=$x$,
ylabel=$f_k(x)$,
tick align=outside,
enlargelimits=true,
every axis plot/.append style={very thick},
cycle list name=mylist
]
\foreach \k in {1, 2, 3, 4, 6, 9} {%
\addplot+[mark={}] gnuplot[raw gnuplot] {%
isint(x) = (int(x)==x);
log2 = 0.693147180559945;
chisq(x,k)=k<=0||!isint(k)?1/0:x<=0?0.0:exp((0.5*k-1.0)*log(x)-0.5*x-lgamma(0.5*k)-k*0.5*log2);
set xrange [1.00000e-5:8];
set yrange [0.0:0.5];
samples=800;
plot chisq(x,\k)};
\addlegendentryexpanded{$k = \k$}}
\end{axis}
\end{tikzpicture}
\end{document}
Licensing
[edit]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.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 12:53, 24 December 2019 | 521 × 298 (50 KB) | MartinThoma (talk | contribs) | Remove white background of plot | |
12:51, 24 December 2019 | 521 × 298 (53 KB) | MartinThoma (talk | contribs) | {{Information |description ={{en|1=Probability density function of the chi squared distribution}} {{de|1=Wahrscheinlichkeitsdichtefunktion der Chi-Quadrat Verteilung}} |date =2019-12-24 |source ={{own}} |author =User:MartinThoma }} Category:Chi-square distribution |
You cannot overwrite this file.
File usage on Commons
The following 2 pages use this file:
File usage on other wikis
The following other wikis use this file:
- Usage on de.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 416.42pt |
---|---|
Height | 238.221pt |