diff --git a/5_SciPy_stats.ipynb b/5_SciPy_stats.ipynb index d5ec33ff..9c0b799c 100644 --- a/5_SciPy_stats.ipynb +++ b/5_SciPy_stats.ipynb @@ -22,6 +22,10 @@ "metadata": {}, "outputs": [], "source": [ + "import japanize_matplotlib\n", + "import matplotlib.pyplot as plt\n", + "import numpy as np\n", + "\n", "# 警告メッセージを非表示\n", "import warnings\n", "warnings.filterwarnings(\"ignore\")" @@ -37,7 +41,8 @@ { "cell_type": "markdown", "metadata": { - "heading_collapsed": true + "heading_collapsed": true, + "jp-MarkdownHeadingCollapsed": true }, "source": [ "## 正規分布(Normal Distribution)" @@ -86,8 +91,7 @@ " * 返り値:正規分布に従って発生したランダム変数\n", " * `loc`と`scale`を省略すると標準正規分布のランダム変数生成関数となる。\n", "\n", - "\n", - "`scipy.stats`の`norm`,`NumPy`,`matplotlib.pyplot`を読み込む。" + "`scipy.stats`の`norm`を読み込む。" ] }, { @@ -98,9 +102,6 @@ }, "outputs": [], "source": [ - "import japanize_matplotlib\n", - "import matplotlib.pyplot as plt\n", - "import numpy as np\n", "from scipy.stats import norm" ] }, @@ -460,7 +461,9 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "jp-MarkdownHeadingCollapsed": true + }, "source": [ "## その他の分布関数" ] @@ -501,6 +504,7 @@ "outputs": [], "source": [ "from scipy.stats import t\n", + "\n", "x = np.linspace(-4,4,100)\n", "y = t.pdf(x, df=1)\n", "plt.plot(x,y)\n", @@ -841,7 +845,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.5" + "version": "3.11.9" }, "toc": { "base_numbering": 1, @@ -858,5 +862,5 @@ } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 4 }