declare test functions

This commit is contained in:
test 2022-05-14 17:09:29 +02:00
parent 3c3ed25e63
commit e2ff7032bf

View File

@ -106,7 +106,7 @@
" \"\"\"Funkcja oblicza wartość statystyki testowej dla dwóch próbek zależnych\"\"\"\n",
" differences = [x_1 - x_2 for x_1, x_2 in zip(sample_1, sample_2)]\n",
" sample_size = len(sample_1)\n",
" mu = 0 # The constant = zero if we want to test whether the average of the difference is significantly different.\n",
" mu = 0 # The constant is zero if we want to test whether the average of the difference is significantly different.\n",
" return (mean(differences) - mu) / (stdev(differences) / sqrt(sample_size))"
],
"metadata": {
@ -116,6 +116,51 @@
}
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"def bootstrap_one_sample():\n",
" return"
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"def bootstrap_independent():\n",
" return"
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"def bootstrap_dependent():\n",
" return"
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
},
{
"cell_type": "code",
"execution_count": 147,