Analisi statica fatta per bene giustificando i vari passaggi

This commit is contained in:
2026-04-03 15:34:56 +02:00
parent 64e01df017
commit a0c29b1ae4
6 changed files with 2862 additions and 1479 deletions

View File

@@ -5,10 +5,10 @@
"id": "ba4e56bc", "id": "ba4e56bc",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## Valori dinamici\n", "## Valori statici (calibro)\n",
"N = 10\n", "N = 10\n",
"\n", "\n",
"A = 23.96 +- 0.16 " "A = 23.97 +- 0.16 "
] ]
}, },
{ {
@@ -16,15 +16,26 @@
"id": "aaf30c1f", "id": "aaf30c1f",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## Valori statici\n", "## Valori statici (sonar)\n",
"N = 6\n", "N = 6\n",
"\n", "\n",
"A = 23.46 +- 0.23\n" "A = 23.46 +- 0.23\n"
] ]
}, },
{
"cell_type": "markdown",
"id": "7a851edb",
"metadata": {},
"source": [
"## Valori dinamici (sonar)\n",
"N = 4\n",
"\n",
"K nostro: 24.35 +- 0.25\n"
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": 10,
"id": "b349ba73", "id": "b349ba73",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -35,7 +46,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 7, "execution_count": 11,
"id": "a68eb302", "id": "a68eb302",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -43,18 +54,19 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"t = 1.717\n", "t = 1.751\n",
"p-value (two-tailed) = 10.8084 %\n" "p-value (two-tailed) = 10.1827 %\n"
] ]
} }
], ],
"source": [ "source": [
"# Valori dimanici (sonar)\n", "# Valori statici (calibro)\n",
"Nd = 10\n", "Nd = 10\n",
"Ad = 23.96\n", "Ad = 23.97\n",
"uAd = 0.16 * 3\n", "uAd = 0.16 * 3\n",
"\n", "\n",
"#Valori statici (calibro)\n", "\n",
"#Valori statici (sonar)\n",
"Ns = 6\n", "Ns = 6\n",
"As = 23.46\n", "As = 23.46\n",
"uAs = 0.23 * 3\n", "uAs = 0.23 * 3\n",
@@ -73,6 +85,88 @@
"print(f\"t = {t:.3f}\")\n", "print(f\"t = {t:.3f}\")\n",
"print(f\"p-value (two-tailed) = {p_value * 100:.4f} %\")\n" "print(f\"p-value (two-tailed) = {p_value * 100:.4f} %\")\n"
] ]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "2746d086",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"t = -1.147\n",
"p-value (two-tailed) = 27.3612 %\n"
]
}
],
"source": [
"# Valori statici (calibro)\n",
"Nd = 10\n",
"Ad = 23.97\n",
"uAd = 0.16 * 3\n",
"\n",
"#Valori dinamici (sonar)\n",
"Ns = 4\n",
"As = 24.35\n",
"uAs = 0.25 * 3\n",
"\n",
"#Nomi coerenti con Cannelli\n",
"GdL = Nd + Ns - 2\n",
"\n",
"s2 = ( (Nd - 1) * uAd**2 + (Ns - 1) * uAs**2 ) / GdL\n",
"\n",
"sigma2 = ( s2 / Nd ) + ( s2 / Ns )\n",
"\n",
"t = ( Ad - As ) / np.sqrt( sigma2 )\n",
"\n",
"\n",
"p_value = 2 * (1 - student_t.cdf(abs(t), df=GdL))\n",
"print(f\"t = {t:.3f}\")\n",
"print(f\"p-value (two-tailed) = {p_value * 100:.4f} %\")\n"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "be0c6cc6",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"t = -1.934\n",
"p-value (two-tailed) = 8.9234 %\n"
]
}
],
"source": [
"# Valori statici (sonar)\n",
"Nd = 6\n",
"Ad = 23.46\n",
"uAd = 0.23 * 3\n",
"\n",
"#Valori dinamici (sonar)\n",
"Ns = 4\n",
"As = 24.35\n",
"uAs = 0.25 * 3\n",
"\n",
"#Nomi coerenti con Cannelli\n",
"GdL = Nd + Ns - 2\n",
"\n",
"s2 = ( (Nd - 1) * uAd**2 + (Ns - 1) * uAs**2 ) / GdL\n",
"\n",
"sigma2 = ( s2 / Nd ) + ( s2 / Ns )\n",
"\n",
"t = ( Ad - As ) / np.sqrt( sigma2 )\n",
"\n",
"\n",
"p_value = 2 * (1 - student_t.cdf(abs(t), df=GdL))\n",
"print(f\"t = {t:.3f}\")\n",
"print(f\"p-value (two-tailed) = {p_value * 100:.4f} %\")\n"
]
} }
], ],
"metadata": { "metadata": {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long