Molto lavoro per negare il modello, ora si inizia con LaTeX perché altrimenti non finiamo

This commit is contained in:
2026-04-08 10:11:20 +02:00
parent 84e88fd6e6
commit 1c8f6fb418
13 changed files with 14051 additions and 378 deletions

View File

@@ -18,7 +18,7 @@
},
{
"cell_type": "code",
"execution_count": 82,
"execution_count": 105,
"id": "f34c5b88",
"metadata": {},
"outputs": [],
@@ -51,7 +51,7 @@
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": 106,
"id": "08efb2be",
"metadata": {},
"outputs": [],
@@ -86,7 +86,7 @@
},
{
"cell_type": "code",
"execution_count": 84,
"execution_count": 107,
"id": "5494409f",
"metadata": {},
"outputs": [
@@ -199,7 +199,7 @@
"3 0.188750 108.610000 0.002887 "
]
},
"execution_count": 84,
"execution_count": 107,
"metadata": {},
"output_type": "execute_result"
}
@@ -210,7 +210,7 @@
},
{
"cell_type": "code",
"execution_count": 85,
"execution_count": 108,
"id": "976d5531",
"metadata": {},
"outputs": [
@@ -265,7 +265,7 @@
},
{
"cell_type": "code",
"execution_count": 86,
"execution_count": 109,
"id": "2ad19283",
"metadata": {},
"outputs": [
@@ -292,7 +292,7 @@
},
{
"cell_type": "code",
"execution_count": 87,
"execution_count": 110,
"id": "5f59d6c9",
"metadata": {},
"outputs": [
@@ -341,7 +341,7 @@
},
{
"cell_type": "code",
"execution_count": 88,
"execution_count": 111,
"id": "7e75ec05",
"metadata": {},
"outputs": [],
@@ -368,7 +368,7 @@
},
{
"cell_type": "code",
"execution_count": 89,
"execution_count": 112,
"id": "aefe7756",
"metadata": {},
"outputs": [
@@ -381,8 +381,8 @@
"Dep. Variable: y R-squared: 1.000\n",
"Model: OLS Adj. R-squared: 1.000\n",
"Method: Least Squares F-statistic: 1.277e+05\n",
"Date: Sat, 04 Apr 2026 Prob (F-statistic): 3.68e-10\n",
"Time: 19:38:07 Log-Likelihood: -7.2422\n",
"Date: Mon, 06 Apr 2026 Prob (F-statistic): 3.68e-10\n",
"Time: 10:04:08 Log-Likelihood: -7.2422\n",
"No. Observations: 6 AIC: 18.48\n",
"Df Residuals: 4 BIC: 18.07\n",
"Df Model: 1 \n",
@@ -438,7 +438,7 @@
},
{
"cell_type": "code",
"execution_count": 90,
"execution_count": 113,
"id": "1d42b009",
"metadata": {},
"outputs": [
@@ -504,7 +504,7 @@
},
{
"cell_type": "code",
"execution_count": 91,
"execution_count": 114,
"id": "986ff4a6",
"metadata": {},
"outputs": [
@@ -562,7 +562,7 @@
},
{
"cell_type": "code",
"execution_count": 92,
"execution_count": 115,
"id": "2d4b7144",
"metadata": {},
"outputs": [
@@ -638,7 +638,7 @@
},
{
"cell_type": "code",
"execution_count": 93,
"execution_count": 116,
"id": "e2407a04",
"metadata": {},
"outputs": [
@@ -707,7 +707,7 @@
},
{
"cell_type": "code",
"execution_count": 94,
"execution_count": 117,
"id": "32e9948f",
"metadata": {},
"outputs": [
@@ -766,7 +766,7 @@
},
{
"cell_type": "code",
"execution_count": 95,
"execution_count": 118,
"id": "bfb895c6",
"metadata": {},
"outputs": [
@@ -849,7 +849,7 @@
},
{
"cell_type": "code",
"execution_count": 96,
"execution_count": 119,
"id": "202de438",
"metadata": {},
"outputs": [
@@ -923,7 +923,7 @@
},
{
"cell_type": "code",
"execution_count": 97,
"execution_count": 120,
"id": "caf23dbe",
"metadata": {},
"outputs": [
@@ -981,7 +981,7 @@
},
{
"cell_type": "code",
"execution_count": 98,
"execution_count": 121,
"id": "8f5c8bb7",
"metadata": {},
"outputs": [
@@ -991,8 +991,8 @@
"text": [
"u_strum_m = 0.004082\n",
"u_strum_Dx = 0.020412\n",
"uF_strum = 0.071603\n",
"uK_strum = 0.022946\n"
"uF_strum = 0.053018\n",
"uK_strum = 0.012599\n"
]
}
],
@@ -1009,10 +1009,10 @@
"umasse_strum = np.maximum(umasse, u_strum_m)\n",
"\n",
"# Worst-case scalare: prendi il massimo anche di ueste_strum\n",
"uF_strum = np.max(np.sqrt( (g * umasse_strum)**2 + (masse * ug)**2 ))\n",
"uDx_strum = np.max(ueste_strum)\n",
"uF_strum = np.average(np.sqrt( (g * umasse_strum)**2 + (masse * ug)**2 ))\n",
"uDx_strum = np.average(ueste_strum)\n",
"\n",
"uK_strum = np.max(np.sqrt( (1/este)**2 * uF_strum**2 + (F/este**2)**2 * uDx_strum**2 ))\n",
"uK_strum = np.average(np.sqrt( (1/este)**2 * uF_strum**2 + (F/este**2)**2 * uDx_strum**2 ))\n",
"\n",
"print(f\"u_strum_m = {u_strum_m:.6f}\")\n",
"print(f\"u_strum_Dx = {u_strum_Dx:.6f}\")\n",
@@ -1030,7 +1030,7 @@
},
{
"cell_type": "code",
"execution_count": 99,
"execution_count": 122,
"id": "a1dc24c9",
"metadata": {},
"outputs": [],
@@ -1082,7 +1082,7 @@
},
{
"cell_type": "code",
"execution_count": 100,
"execution_count": 123,
"id": "c8e264fa",
"metadata": {},
"outputs": [
@@ -1091,22 +1091,22 @@
"output_type": "stream",
"text": [
"RISULTATI CON ERRORE STRUMENTALE INCLUSO:\n",
"Media pesata K = 3.20156 ± 0.02327\n",
"Media pesata K = 3.20156 ± 0.01318\n",
"\n",
"RISULTATI REGRESSIONE OLS:\n",
"Aols = 3.20145 ± 0.02463\n",
"Bols = 0.02655 ± 0.99102\n",
"Chi² OLS = 1.17582 | rid = 0.29396 | P = 0.11794\n",
"Aols = 3.20145 ± 0.01546\n",
"Bols = 0.02655 ± 0.99084\n",
"Chi² OLS = 1.52520 | rid = 0.38130 | P = 0.17783\n",
"\n",
"RISULTATI REGRESSIONE Carpi:\n",
"AC = 3.20054 ± 0.02472\n",
"BC = 0.11948 ± 0.95263\n",
"Chi² Carpi = 1.17417 | rid = 0.29354 | P = 0.11767\n",
"AC = 3.20054 ± 0.01559\n",
"BC = 0.11948 ± 0.95244\n",
"Chi² Carpi = 1.52143 | rid = 0.38036 | P = 0.17716\n",
"\n",
"RISULTATI REGRESSIONE York:\n",
"AY = 3.20061 ± 0.02472\n",
"BY = 0.11263 ± 0.95193\n",
"Chi² York = 1.17400 | rid = 0.29350 | P = 0.11764\n"
"AY = 3.20061 ± 0.01559\n",
"BY = 0.11263 ± 0.95173\n",
"Chi² York = 1.52133 | rid = 0.38033 | P = 0.17714\n"
]
}
],