金子邦彦研究室プログラミングPython分散共分散行列からデータ生成(Python, Google Colaboratory を使用)

分散共分散行列からデータ生成(Python, Google Colaboratory を使用)

サイト内の関連ページ

前準備

Python の準備(Windows,Ubuntu 上)

サイト内の関連ページ

関連する外部ページ

Python の公式ページ: https://www.python.org/

分散共分散行列からデータ生成(Python, Google Colaboratory を使用)

N はデータ数.c は平均.corv は分散共分散行列.


[image]
  • プロットして確認

    20 個のデータがプロットされている

    %matplotlib inline
    import matplotlib.pyplot as plt
    import warnings
    warnings.filterwarnings('ignore')   # Suppress Matplotlib warnings
    plt.style.use('ggplot')
    plt.plot(a[:,0], a[:,1],  'ro')
    plt.show()
    

    [image]