From adcf4896c1b8ece5bfc8de57d6209f6369d0a338 Mon Sep 17 00:00:00 2001 From: Ziad Arafat Date: Wed, 13 Sep 2023 11:31:06 -0600 Subject: [PATCH] added notes --- 20230911_lecture.ipynb | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 20230911_lecture.ipynb diff --git a/20230911_lecture.ipynb b/20230911_lecture.ipynb new file mode 100644 index 0000000..9abe54f --- /dev/null +++ b/20230911_lecture.ipynb @@ -0,0 +1,48 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Lecture Notes\n", + "\n", + "## Proximity \n", + "1. Dissimilatity (distance) \n", + "2. Similarity\n", + " 1. Nominal and Ordinal vs Interval/Ratio\n", + " 1. Nominal\n", + " 1. Categories/Bools\n", + " 2. Ordinal\n", + " 1. Ranking or order\n", + " 1. You need to calculate $\\frac{|p-q|}{(n-1)}$ for dissimilarity\n", + " 1. p and q are the ranking of each one\n", + " 2. n is the number of rankings\n", + " 2. Similarity is similar but subtract from 1\n", + " 3. Interval Ratio\n", + " 1. $d = |p-q|$ for dissimilarity\n", + " 2. For similarity: negate the dissimilarity\n", + "3. Euclidean Distance\n", + "4. Minkowski Distance\n", + " 1. $(\\sum_{k=1}^{n} |x_k - y_k|^r)^{1/r}$\n", + "5. Hamming Distance\n", + " 1. If the two strings are equal length\n", + " 2. Count number of different symbols at positions\n", + "6. " + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": ".venv", + "language": "python", + "name": "python3" + }, + "language_info": { + "name": "python", + "version": "3.8.10" + }, + "orig_nbformat": 4 + }, + "nbformat": 4, + "nbformat_minor": 2 +}