Keywords: Csv-2d-gaussian-multivarate-distributions.svg en Multivariate Gaussian Distributions de Multiariate Gauss-Verteilungen e30000 <math>\mu_I \begin pmatrix 70 \\ 40 \end pmatrix </math> and <math>\Sigma_I \begin pmatrix 25 20\\ 20 25 \end pmatrix </math> 47758c <math>\mu_ II \begin pmatrix 60 \\ 20 \end pmatrix </math> and <math>\Sigma_ II \begin pmatrix 25 20\\ 20 25 \end pmatrix </math> green <math>P 60 35 </math> own MartinThoma 2014-08-23 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 tablecol 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 tablemeta 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 </source> Data The data is available at GitHub However you can create similar data with the following Python code <source lang python > /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 </source> Images by Martin Thoma/Mathematics TikZ diagrams Normal distribution Cc-zero |