{ "cells": [ { "cell_type": "markdown", "id": "523e51a3", "metadata": {}, "source": [ "# Constrained Bayesian model: elasticity\n" ] }, { "cell_type": "code", "execution_count": 1, "id": "4c003376", "metadata": { "execution": { "iopub.execute_input": "2026-09-14T14:44:31.677158Z", "iopub.status.busy": "2026-09-14T14:44:31.675138Z", "iopub.status.idle": "2026-09-14T14:44:41.671097Z", "shell.execute_reply": "2026-09-14T14:44:41.671097Z" } }, "outputs": [], "source": [ "from pathlib import Path\n", "import sys\n", "\n", "PROJECT_ROOT = Path.cwd().resolve()\n", "while not (PROJECT_ROOT / 'data.py').exists():\n", " if PROJECT_ROOT.parent == PROJECT_ROOT:\n", " raise FileNotFoundError('Open this notebook from inside organized_uncertainty_analysis.')\n", " PROJECT_ROOT = PROJECT_ROOT.parent\n", "if str(PROJECT_ROOT.parent) not in sys.path:\n", " sys.path.insert(0, str(PROJECT_ROOT.parent))\n", "\n", "import os\n", "os.chdir(PROJECT_ROOT)\n", "from organized_uncertainty_analysis.bayesian.data_fit_gof import fit_full_trim\n", "from organized_uncertainty_analysis.bayesian import elasticity as el\n" ] }, { "cell_type": "code", "execution_count": 2, "id": "7d369912", "metadata": { "execution": { "iopub.execute_input": "2026-09-14T14:44:41.679432Z", "iopub.status.busy": "2026-09-14T14:44:41.679432Z", "iopub.status.idle": "2026-09-14T14:44:49.372536Z", "shell.execute_reply": "2026-09-14T14:44:49.370522Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Loading SUV from: .\\suv_percentilesSLOthenUWM.mat\n", "Loading FLAGS from: .\\flags_combined.mat\n" ] }, { "data": { "text/html": [ "
| \n", " | Dataset | \n", "Parameter | \n", "Elasticity_x50 | \n", "Elasticity_s50 | \n", "
|---|---|---|---|---|
| 0 | \n", "FULL | \n", "omega | \n", "-0.082300 | \n", "0.710789 | \n", "
| 1 | \n", "FULL | \n", "a | \n", "-1.935020 | \n", "40.182491 | \n", "
| 2 | \n", "FULL | \n", "b | \n", "1.973801 | \n", "-42.461717 | \n", "
| 3 | \n", "FULL | \n", "s | \n", "-1.944316 | \n", "40.738767 | \n", "
| 4 | \n", "FULL | \n", "k | \n", "2.700069 | \n", "-36.685049 | \n", "
| 5 | \n", "FULL | \n", "vartheta | \n", "2.944315 | \n", "-41.738754 | \n", "
| 6 | \n", "TRIM | \n", "omega | \n", "-0.046275 | \n", "0.140809 | \n", "
| 7 | \n", "TRIM | \n", "a | \n", "-0.211620 | \n", "9.149163 | \n", "
| 8 | \n", "TRIM | \n", "b | \n", "0.192150 | \n", "-9.296605 | \n", "
| 9 | \n", "TRIM | \n", "s | \n", "-0.206688 | \n", "9.185517 | \n", "
| 10 | \n", "TRIM | \n", "k | \n", "1.109265 | \n", "-8.682383 | \n", "
| 11 | \n", "TRIM | \n", "vartheta | \n", "1.206688 | \n", "-10.185517 | \n", "