From 18fd8ce6e3d5753e0c4ae61ef24ddd3f8edb6d17 Mon Sep 17 00:00:00 2001 From: DBras Date: Sun, 10 May 2026 18:47:59 +0200 Subject: [PATCH] init commit --- .gitignore | 1 + Formelsamling.ipynb | 63 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .gitignore create mode 100644 Formelsamling.ipynb diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c53c83 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.ipynb_checkpoints/** diff --git a/Formelsamling.ipynb b/Formelsamling.ipynb new file mode 100644 index 0000000..2ae5e2d --- /dev/null +++ b/Formelsamling.ipynb @@ -0,0 +1,63 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "6801bdc7-2b6a-4478-a15e-02a30f5f0f89", + "metadata": {}, + "source": [ + "# Sensitivitet, specificitet og positiv/negativ prædiktiv værdi" + ] + }, + { + "cell_type": "markdown", + "id": "080e79be-8277-4cd5-8ff0-83a68f7e01d1", + "metadata": {}, + "source": [ + "$$\n", + "Sensitivitet = P(Positiv\\ test | syg) = \\frac{antal\\ sandt\\ positive}{antal\\ sandt\\ positive + antal\\ falsk\\ negative}\n", + "$$\n", + "\n", + "$$\n", + "Specificitet = P(Negativ\\ test|rask) = \\frac{antal\\ sandt\\ negative}{antal\\ sandt\\ negative + antal\\ falsk\\ positive}\n", + "$$\n", + "\n", + "$$\n", + "PPV = P(Syg|positiv\\ test) = \\frac{antal\\ sande\\ positive}{antal\\ sande\\ positive + antal\\ falske\\ positive}\n", + "$$\n", + "\n", + "$$\n", + "NPV = P(Rask|negativ\\ test) = \\frac{antal\\ sande\\ negative}{antal\\ sande\\ negative + antal\\ falske\\ negative}\n", + "$$" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "76bb0b41-f3a1-4065-9962-c5690caed0b8", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.14.4" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}