Created
April 27, 2020 23:43
-
-
Save jonathan-taylor/d1de83098736b0db9687b9177cba8253 to your computer and use it in GitHub Desktop.
Setup for inference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Let $E$ be the selected variables and $E'$ be the non-zero variances.\n", | |
"\n" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"There is some RFX model ${\\cal M} = \\{\\theta=(\\beta_E, \\sigma^2_{E'})\\}$. \n", | |
"\n", | |
"1. Let's assume in ${\\cal M}$ you can construct\n", | |
"$\\hat{\\beta}_j \\sim N(\\beta_j, \\sigma^2_j)$ on fresh data.\n", | |
"\n", | |
"2. Let's assume the event\n", | |
"$$\n", | |
"(\\hat{E}(X,Y), \\hat{E}'(X,Y)) = (E,E')\n", | |
"$$\n", | |
"can be expressed as \n", | |
"$$\n", | |
"F_{(E,E')}(T)\n", | |
"$$\n", | |
"where $(E,E')$ are your observed effects and variances.\n", | |
"Further, assume that in model ${\\cal M}$ the pair $(T, \\hat{\\beta}_j)$ are asymptotically normal with covariance\n", | |
"$$\n", | |
"\\begin{pmatrix}\n", | |
" \\sigma^2_j & \\rho \\\\\n", | |
" \\rho & \\Sigma_T\n", | |
"\\end{pmatrix}\n", | |
"$$" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Then, we'll define\n", | |
"$$\n", | |
"N = T - \\rho / \\sigma^2_j \\cdot \\hat{\\beta}_j\n", | |
"$$\n", | |
"and\n", | |
"$$\n", | |
"\\pi = \\pi(\\beta_j; n) = F(n + \\rho / \\sigma^2 \\cdot \\beta_j)\n", | |
"$$\n", | |
"and $\\bar{\\pi}(\\beta_j) = \\pi(\\beta_j;N_{obs})$" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"To test $H_0:\\beta_j=\\gamma$ use density proportional to\n", | |
" $$\n", | |
"t \\to \\phi_{(\\gamma, \\sigma^2_j)}(t) \\cdot \\bar{\\pi}(t)\n", | |
" $$" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3", | |
"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.7.4" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment