|
9 | 9 | } |
10 | 10 | }, |
11 | 11 | "source": [ |
12 | | - "Professor Sourav Chatterjee's xicor coefficient of correlation (<a href=\"https://win-vector.com/2021/12/29/exploring-the-xi-correlation-coefficient/\">Nina Zumel's tutorial</a>, <a href=\"https://doi.org/10.1080/01621459.2020.1758115\">JASA</a>; original sources: <a href=\"https://CRAN.R-project.org/package=XICOR\">R package</a>, <a href=\"https://arxiv.org/abs/1909.10140\">Arxiv</a>, <a href=\"https://news.ycombinator.com/item?id=29687613\">Hacker News</a>, and <a href=\"https://github.com/czbiohub/xicor\">a Python package</a> (different author))." |
| 12 | + "Nice frame oriented interface to xicor in the database (refs: Professor Sourav Chatterjee's xicor coefficient of correlation (<a href=\"https://win-vector.com/2021/12/29/exploring-the-xi-correlation-coefficient/\">Nina Zumel's tutorial</a>, <a href=\"https://doi.org/10.1080/01621459.2020.1758115\">JASA</a>; original sources: <a href=\"https://CRAN.R-project.org/package=XICOR\">R package</a>, <a href=\"https://arxiv.org/abs/1909.10140\">Arxiv</a>, <a href=\"https://news.ycombinator.com/item?id=29687613\">Hacker News</a>, and <a href=\"https://github.com/czbiohub/xicor\">a Python package</a> (different author).)\n", |
| 13 | + "\n", |
| 14 | + "For some more notes please see [here](https://github.com/WinVector/data_algebra/blob/main/Examples/xicor/xicor.ipynb)." |
13 | 15 | ] |
14 | 16 | }, |
15 | 17 | { |
16 | 18 | "cell_type": "code", |
17 | 19 | "execution_count": 1, |
18 | 20 | "outputs": [], |
19 | 21 | "source": [ |
20 | | - "from typing import Iterable\n", |
21 | | - "import numpy as np\n", |
| 22 | + "\n", |
22 | 23 | "import pandas as pd\n", |
23 | | - "from data_algebra.data_ops import descr, TableDescription, ViewRepresentation\n", |
| 24 | + "from data_algebra.data_ops import descr\n", |
24 | 25 | "import data_algebra.solutions\n", |
25 | 26 | "import data_algebra.BigQuery\n" |
26 | 27 | ], |
|
37 | 38 | "outputs": [ |
38 | 39 | { |
39 | 40 | "data": { |
40 | | - "text/plain": " variable_name xicor_mean xicor_std\n0 x1 0.25 0.000000\n1 x2 0.07 0.191213", |
41 | | - "text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>variable_name</th>\n <th>xicor_mean</th>\n <th>xicor_std</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>x1</td>\n <td>0.25</td>\n <td>0.000000</td>\n </tr>\n <tr>\n <th>1</th>\n <td>x2</td>\n <td>0.07</td>\n <td>0.191213</td>\n </tr>\n </tbody>\n</table>\n</div>" |
| 41 | + "text/plain": " variable_name xicor_mean xicor_std\n0 x1 0.25 0.000000\n1 x2 0.13 0.178536", |
| 42 | + "text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>variable_name</th>\n <th>xicor_mean</th>\n <th>xicor_std</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>x1</td>\n <td>0.25</td>\n <td>0.000000</td>\n </tr>\n <tr>\n <th>1</th>\n <td>x2</td>\n <td>0.13</td>\n <td>0.178536</td>\n </tr>\n </tbody>\n</table>\n</div>" |
42 | 43 | }, |
43 | 44 | "execution_count": 2, |
44 | 45 | "metadata": {}, |
|
109 | 110 | "outputs": [ |
110 | 111 | { |
111 | 112 | "data": { |
112 | | - "text/plain": " xicor_mean xicor_std variable_name\n0 0.250 0.000000 x1\n1 0.055 0.191213 x2", |
113 | | - "text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>xicor_mean</th>\n <th>xicor_std</th>\n <th>variable_name</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>0.250</td>\n <td>0.000000</td>\n <td>x1</td>\n </tr>\n <tr>\n <th>1</th>\n <td>0.055</td>\n <td>0.191213</td>\n <td>x2</td>\n </tr>\n </tbody>\n</table>\n</div>" |
| 113 | + "text/plain": " xicor_mean xicor_std variable_name\n0 0.25 0.000000 x1\n1 0.07 0.191213 x2", |
| 114 | + "text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>xicor_mean</th>\n <th>xicor_std</th>\n <th>variable_name</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>0.25</td>\n <td>0.000000</td>\n <td>x1</td>\n </tr>\n <tr>\n <th>1</th>\n <td>0.07</td>\n <td>0.191213</td>\n <td>x2</td>\n </tr>\n </tbody>\n</table>\n</div>" |
114 | 115 | }, |
115 | 116 | "execution_count": 5, |
116 | 117 | "metadata": {}, |
|
0 commit comments