Skip to content

Commit

Permalink
cell of importing modules
Browse files Browse the repository at this point in the history
  • Loading branch information
spring-haru committed Aug 10, 2024
1 parent 3bd067c commit 94549bb
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions 5_SciPy_stats.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
Expand All @@ -37,7 +41,8 @@
{
"cell_type": "markdown",
"metadata": {
"heading_collapsed": true
"heading_collapsed": true,
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"## 正規分布(Normal Distribution)"
Expand Down Expand Up @@ -86,8 +91,7 @@
" * 返り値:正規分布に従って発生したランダム変数\n",
" * `loc`と`scale`を省略すると標準正規分布のランダム変数生成関数となる。\n",
"\n",
"\n",
"`scipy.stats`の`norm`,`NumPy`,`matplotlib.pyplot`を読み込む。"
"`scipy.stats`の`norm`を読み込む。"
]
},
{
Expand All @@ -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"
]
},
Expand Down Expand Up @@ -460,7 +461,9 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"## その他の分布関数"
]
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -841,7 +845,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.11.9"
},
"toc": {
"base_numbering": 1,
Expand All @@ -858,5 +862,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}

0 comments on commit 94549bb

Please sign in to comment.