לדלג לתוכן

קובץ:Csv-2d-gaussian-multivarate-distributions.svg

תוכן הדף אינו נתמך בשפות אחרות.
מתוך ויקיפדיה, האנציקלופדיה החופשית

לקובץ המקורי(קובץ SVG, הגודל המקורי: 639 × 468 פיקסלים, גודל הקובץ: 1.78 מ"ב)

ויקישיתוף זהו קובץ שמקורו במיזם ויקישיתוף. תיאורו בדף תיאור הקובץ המקורי (בעברית) מוצג למטה.

תקציר

תיאור
English: Multivariate Gaussian Distributions
Deutsch: Multiariate Gauss-Verteilungen
 
and
 
and
 
תאריך יצירה
מקור נוצר על־ידי מעלה היצירה
יוצר 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}
\pgfplotsset{compat=1.10}
\usepackage{tikz}
\usetikzlibrary{arrows,positioning} 
\usepackage{helvet}
\usepackage[eulergreek]{sansmath}

\begin{document}
\begin{preview}
\begin{tikzpicture}
    \begin{axis}[
        width=13.4cm,
        height=10.0cm,
        % Grid
        grid = major,
        % size
        xmin= 40,     % start the diagram at this x-coordinate
        xmax= 90,   % end   the diagram at this x-coordinate
        ymin= 0,     % start the diagram at this y-coordinate
        ymax= 60, % 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,
        every axis/.append style={font=\large\sansmath\sffamily},
        minor tick style={thick},
        scaled y ticks = false,
        % Axis
        axis line style = {very thick,shorten <=-0.5\pgflinewidth},
        axis lines = middle,
        axis line style = very thick,
        xlabel=Gesamtausgaben,
        x label style={at={(axis description cs:0.5,-0.05)},
                       anchor=north,
                       font=\boldmath\sansmath\sffamily\Large},
        ylabel=Luxusausgaben,
        y label style={at={(axis description cs:-0.05,0.5)},
                       anchor=south,
                       rotate=90,
                       font=\boldmath\sansmath\sffamily\Large},
        ]
\addplot[
scatter,
only marks,
point meta=explicit symbolic,
scatter/classes={
a={mark=x,red!90!black},%
b={mark=x,cyan!50!black}},
]
table[col sep=comma, meta=label] {data.csv};

\addplot[
scatter,
only marks,
point meta=explicit symbolic,
scatter/classes={
b={mark=*,mark size=3pt,red!30!white,draw=black},%
c={mark=*,mark size=3pt,cyan!30!white,draw=black},%
a={mark=*,mark size=3pt,green!70!black,draw=black}},
]
table[meta=label] {
    x   y   label
    65  35  a
    70  40  b
    60  20  c
};
% \addlegendentry{Gruppe 1}
% \addlegendentry{Gruppe 2}
\end{axis}
\end{tikzpicture}
\end{preview}
\end{document}

Data

The data is available at GitHub. However, you can create similar data with the following Python code:

#!/usr/bin/env python

import matplotlib.pyplot as plt
import numpy
import csv

cov = [[25, 20], [20, 25]]  # diagonal covariance, points lie on x or y-axis

meanI = [70, 40]
datapointsI = 2000

meanII = [60, 20]
datapointsII = 2000

dataI = numpy.random.multivariate_normal(meanI, cov, datapointsI).T
x, y = dataI
plt.plot(x, y, 'x')

dataII = numpy.random.multivariate_normal(meanII, cov, datapointsII).T
x, y = dataII
plt.plot(x, y, 'x')

plt.axis('equal')
plt.show()

data = []
xs, ys = dataI
for x, y in zip(xs, ys):
    data.append([x, y, 'a'])
xs, ys = dataII
for x, y in zip(xs, ys):
    data.append([x, y, 'b'])

# Write data to csv files
with open("data.csv", 'wb') as csvfile:
    csvfile.write("x,y,label\n")
    spamwriter = csv.writer(csvfile, delimiter=',',
                            quotechar='"', quoting=csv.QUOTE_MINIMAL)
    for datapoint in data:
        spamwriter.writerow(datapoint)

רישיון

אני, בעל זכויות היוצרים על עבודה זו, מפרסם בזאת את העבודה תחת הרישיון הבא:
Creative Commons CC-Zero קובץ זה זמין לפי תנאי הקדשה עולמית לנחלת הכלל CC0 1.0 של Creative Commons.
האדם ששייך יצירה להיתר הזה הקדיש את היצירה לנחלת הכלל על־ידי ויתור על כל הזכויות שלו או שלה על היצירה בכל העולם לפי חוק זכויות יוצרים, לרבות כל הזכויות הקשורות או הסמוכות כקבוע בחוק. באפשרותך להעתיק, לשנות, להפיץ, או להציג את היצירה, אפילו למטרות מסחריות, וכל זה אפילו מבלי לבקש רשות.

כיתובים

נא להוסיף משפט שמסביר מה הקובץ מייצג

פריטים שמוצגים בקובץ הזה

מוצג

image/svg+xml

checksum אנגלית

3dedc2dba5d5d757692f644a98782c91c58db485

הוגדר לפי: SHA-1 אנגלית

1,867,541 בית

468 פיקסל

639 פיקסל

היסטוריית הקובץ

ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.

תאריך/שעהתמונה ממוזערתממדיםמשתמשהערה
נוכחית02:56, 1 בספטמבר 2014תמונה ממוזערת לגרסה מ־02:56, 1 בספטמבר 2014‪468 × 639‬ (1.78 מ"ב)MartinThomaAdded line where that divides both probabilities
18:12, 29 באוגוסט 2014תמונה ממוזערת לגרסה מ־18:12, 29 באוגוסט 2014‪468 × 639‬ (2.13 מ"ב)MartinThomaAdded label to green node; made nodes bigger
19:42, 23 באוגוסט 2014תמונה ממוזערת לגרסה מ־19:42, 23 באוגוסט 2014‪468 × 639‬ (1.43 מ"ב)MartinThomaImproved readability: Sans-Serif fonts; thicker markers
19:28, 23 באוגוסט 2014תמונה ממוזערת לגרסה מ־19:28, 23 באוגוסט 2014‪395 × 640‬ (1.45 מ"ב)MartinThoma{{Information |Description ={{en|1=Multivariate Gaussian Distributions}} {{de|1=Multiariate Gauss-Verteilungen}} |Source ={{own}} |Author =MartinThoma |Date =2014-08-23 |Permission = |other_versions...

אין בוויקיפדיה דפים המשתמשים בקובץ זה.

שימוש גלובלי בקובץ

אתרי הוויקי השונים הבאים משתמשים בקובץ זה:

מטא־נתונים