Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

XinyueJia/Data_sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

$z = f(x, y)$

$x: Treatment$
$y: Covariates$
$z: Outcome$

   $\text{causal effect of x on z}$
$=\text{sensitivity of change of z with respect to x, with y held constant}$
$= \text{partial derivative of z with respect to x}$
$= \frac{\partial f}{\partial x}=\lim _{h \rightarrow 0} \frac{f(x+h, y)-f(x, y)}{h}$

In this repo, simulated data, denoted as $z = f(x, y)$, will be fed into a super learner to train a model. The trained model will subsequently generate values of $z$ within a specified range of $x$ and $y$ using Monte Carlo method. The expression $\frac{f(x + \Delta x, y) - f(x - \Delta x, y)}{2 \Delta x}$ will be used to compute the partial derivative of $z$ with respect to $x$.

partial_derivative_as_slope

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages