Datei:Lda-gauss-1.svg

Aus testwiki
Zur Navigation springen Zur Suche springen
    Originaldatei (SVG-Datei, Basisgröße: 899 × 543 Pixel, Dateigröße: 56 KB)

    Diese Datei stammt aus Wikimedia Commons und kann von anderen Projekten verwendet werden. Die Beschreibung von deren Dateibeschreibungsseite wird unten angezeigt.

    Beschreibung

    Beschreibung
    English: Normal distribution for a discriminant analysis
    Deutsch: Normalverteilung bei einer Diskriminanzalayse
     
    𝒩(80,100)
     
    𝒩(40,100)
    Datum
    Quelle Eigenes Werk
    Urheber MartinThoma
     W3C-validity not checked.

    Source is available at github

    LaTeX Code

    \documentclass[varwidth=true, border=5pt]{article}
    \usepackage[active,tightpage]{preview}
    \usepackage[latin1]{inputenc}
    \usepackage{amsmath}
    \usepackage{pgfplots}
    \usepackage{tikz}
    \usetikzlibrary{arrows,positioning} 
    \usepackage{helvet}
    \usepackage[eulergreek]{sansmath}
    
    \pgfmathdeclarefunction{gauss}{2}{%
      \pgfmathparse{1/(sqrt(2*pi*#2))*exp(-((x-#1)^2)/(2*#2))}%
    }
    % to be used: \gauss(mean)(variance)
    
    \pgfplotsset{
    tick label style = {font=\sansmath\sffamily},
    every axis label/.append style={font=\sffamily\footnotesize},
    }
    
    % Thanks to percusse for solving problems with the axis
    
    \begin{document}
    \begin{preview}
    \tikzstyle{plotA}=[ultra thick,red!90!black]
    \tikzstyle{plotB}=[ultra thick,cyan!50!black]
    \begin{tikzpicture}
        \begin{axis}[
            width=13.5cm,
            height=8.625cm,
            % Grid
            grid = major,
            % size
            xmin= 0,     % start the diagram at this x-coordinate
            xmax= 125,   % end   the diagram at this x-coordinate
            ymin= 0,     % start the diagram at this y-coordinate
            ymax= 0.045, % end   the diagram at this y-coordinate
            % Legende
            legend style={
                font=\large\sansmath\sffamily,
                at={(0.5,-0.18)},
                anchor=north,
                legend cell align=left,
                legend columns=-1,
                column sep=0.5cm
            },
            % Ticks
            tick align=inside,
            minor tick style={thick},
            scaled y ticks = false,
            xtick={40,70,80},
            ytick=\empty,
            % Axis
            axis on top,
            axis line style = {very thick,shorten <=-0.5\pgflinewidth},
            axis lines = middle,
            axis line style = very thick,
            xlabel=$x$,
            x label style={at={(axis description cs:0.5,0)},
                           anchor=north,
                           font=\boldmath\Large},
            ylabel=$f(x)$,
            y label style={at={(axis description cs:0,0.5)},
                           anchor=south,
                           rotate=90,
                           font=\boldmath\Large},
            ]
    
            \coordinate (plotAcoord) at (axis cs:70,0.024);
            \coordinate (plotAcoordY) at (axis cs:0,0.024);
            \draw[plotA,thick, dashed](plotAcoord -| plotAcoordY) -- (plotAcoord);
    
            \coordinate (plotBcoord) at (axis cs:70,0.0004);
            \coordinate (plotBcoordY) at (axis cs:0,0.0004);
            \draw[plotB,thick, dashed](plotBcoord -| plotBcoordY) -- (plotBcoord);
    
            \node[above right=0cm and 0cm of plotAcoordY,color=red!90!black] (f1y) {$f_{I}(70)$};
            \node[above right=0cm and 0cm of plotBcoordY,color=cyan!50!black] (f2y) {$f_{II}(70)$};
    
            % Plots of the distributions
            \addplot [domain=0:120,samples=200,plotA] {gauss(80,100)};
            \addplot [domain=0:120,samples=200,plotB] {gauss(40,100)};
    
            % Mark points
            \addplot+[plotA,
                      samples at={70},
                      mark=*,
                      mark options={scale=1, fill=red!90!black}] {gauss(80,100)};
            \addplot+[plotB,
                      samples at={70},
                      mark=*,
                      mark options={scale=1, fill=cyan!50!black}] {gauss(40,100)};
            \coordinate (a) at (axis cs:70,0.024);
            \draw[black,thick](a |- current plot begin) -- (a);
    
            % Add labels
           \node[plotA,above] at (axis cs:102,0.03){\Large $\mathcal{N}(80, 100)$};
           \node[plotB,above] at (axis cs:20,0.03){\Large $\mathcal{N}(40, 100)$};
          % \addlegendentry{$\mu=80,\enskip \sigma^2 = 100$}
          % \addlegendentry{$\mu=40,\enskip \sigma^2 = 100$}
        \end{axis} 
    \end{tikzpicture}
    \end{preview}
    \end{document}
    

    Lizenz

    Ich, der Urheber dieses Werkes, veröffentliche es unter der folgenden Lizenz:
    Creative Commons CC-Zero Diese Datei wird unter der Creative-Commons-Lizenz CC0 1.0 Verzicht auf das Copyright zur Verfügung gestellt.
    Die Person, die das Werk mit diesem Dokument verbunden hat, übergibt dieses weltweit der Gemeinfreiheit, indem sie alle Urheberrechte und damit verbundenen weiteren Rechte – im Rahmen der jeweils geltenden gesetzlichen Bestimmungen – aufgibt. Das Werk kann – selbst für kommerzielle Zwecke – kopiert, modifiziert und weiterverteilt werden, ohne hierfür um Erlaubnis bitten zu müssen.

    Dieses Bild wurde unter Berücksichtigung der Leitlinie für Qualitätsbilder bewertet und gilt als Qualitätsbild.

    العربية ∙ جازايرية ∙ беларуская ∙ беларуская (тарашкевіца) ∙ български ∙ বাংলা ∙ català ∙ čeština ∙ Cymraeg ∙ Deutsch ∙ Schweizer Hochdeutsch ∙ Zazaki ∙ Ελληνικά ∙ English ∙ Esperanto ∙ español ∙ eesti ∙ euskara ∙ فارسی ∙ suomi ∙ français ∙ galego ∙ עברית ∙ हिन्दी ∙ hrvatski ∙ magyar ∙ հայերեն ∙ Bahasa Indonesia ∙ italiano ∙ 日本語 ∙ Jawa ∙ ქართული ∙ Qaraqalpaqsha ∙ 한국어 ∙ kurdî ∙ кыргызча ∙ Latina ∙ Lëtzebuergesch ∙ lietuvių ∙ македонски ∙ മലയാളം ∙ मराठी ∙ Bahasa Melayu ∙ Nederlands ∙ ਪੰਜਾਬੀ ∙ Norfuk / Pitkern ∙ polski ∙ português ∙ português do Brasil ∙ rumantsch ∙ română ∙ русский ∙ sicilianu ∙ slovenčina ∙ slovenščina ∙ shqip ∙ српски / srpski ∙ svenska ∙ தமிழ் ∙ తెలుగు ∙ ไทย ∙ Tagalog ∙ toki pona ∙ Türkçe ∙ українська ∙ oʻzbekcha / ўзбекча ∙ vèneto ∙ Tiếng Việt ∙ 中文 ∙ 中文(简体) ∙ 中文(繁體) ∙ +/−

    Bildnotizen
    InfoField
    Diese Datei ist annotiert: Betrachte diese auf Commons.

    Kurzbeschreibungen

    Ergänze eine einzeilige Erklärung, was diese Datei darstellt.

    In dieser Datei abgebildete Objekte

    Motiv

    image/svg+xml

    Dateiversionen

    Klicke auf einen Zeitpunkt, um diese Version zu laden.

    Version vomVorschaubildMaßeBenutzerKommentar
    aktuell03:34, 19. Aug. 2014Vorschaubild der Version vom 03:34, 19. Aug. 2014899 × 543 (56 KB)wikimediacommons>MartinThomaImproved axis

    Keine Seite verwendet diese Datei.