alpha}_a)} \cdot \frac{p(X_i | A = 0, X_i; \widehat{\alpha}_m)}{p(M_i | A = 1, X_i; \widehat{\alpha}_m)} \ Y_i
    - \frac{ \mathbb I(A_i = 0)}{ p(A_i = 0 | X_i; \widehat{\alpha}_a)}  \ Y_i 
    \right).
    \label{eqn-IPW}
    \end{aligned}$$ ]{}Since solving the constrained MLE problem using this estimator entails only restricting parameters of $A$ and $M$ models, predicting a new instance is done using $\mathbb{E}[Y | X] = \sum_{A, M} \mathbb{E}[Y | A, M, X] \ p(M | A, X) \ p(A | X).$

***Mixed approach***: The third way of computing the NDE is using $A$ and $Y$ models. In this estimator, we fit the models $p(A | X; \alpha_a)$ and $\mathbb{E}[Y | A, M, X; \alpha_y]$ by MLE, as usual, and combine the edge G-formula and IPW in the following way: [ $$\begin{aligned}
    \mathbb{P}_n
    \left(\frac{\mathbb I(A_i = 0)}{p(A_i = 0 | X_i ; \widehat{\alpha}_a)} \ \mathbb{E}[Y_i | A = 1, M_i, X_i; \widehat{\alpha}_y]  - \mathbb{E}[Y_i | A = 0, M_i; \widehat{\alpha}_y] \right), 
    \label{eqn-mixed}
    \end{aligned}$$ ]{} Since solving the constrained MLE problem using this estimator entails only restricting parameters of $A$ and $Y$ models, predicting a new instance is done using $\mathbb{E}[Y | M, X] = \sum_{A} \mathbb{E}[Y | A, M, X] \ \frac{p(M | A, X) \cdot p(A | X)}{\sum_A p(M | A, X) \cdot p(A | X)}.$

***Aug
alpha}_a) } \cdot \frac{p(X_i | A = 0, X_i; \widehat{\alpha}_m)}{p(M_i | A = 1, X_i; \widehat{\alpha}_m) } \ Y_i 
     - \frac { \mathbb I(A_i = 0) } { p(A_i = 0 | X_i; \widehat{\alpha}_a) }   \ Y_i 
     \right). 
     \label{eqn - IPW } 
     \end{aligned}$$ ] { } Since solving the constrained MLE problem using this calculator fee-tail only restricting argument of $ A$ and $ M$ model, predicting a new example is dress using $ \mathbb{E}[Y | ten ] = \sum_{A, M } \mathbb{E}[Y | A, M, X ] \ p(M | A, X) \ p(A | X).$ 

 * * * Mixed approach * * *: The third room of computing the NDE is using $ A$ and $ Y$ model. In this estimator, we fit the models $ p(A | X; \alpha_a)$ and $ \mathbb{E}[Y | A, M, X; \alpha_y]$ by MLE, as usual, and combine the edge gram - formula and IPW in the following way: [ $ $ \begin{aligned } 
     \mathbb{P}_n 
     \left(\frac{\mathbb I(A_i = 0)}{p(A_i = 0 | X_i; \widehat{\alpha}_a) } \ \mathbb{E}[Y_i | A = 1, M_i, X_i; \widehat{\alpha}_y ]   - \mathbb{E}[Y_i | A = 0, M_i; \widehat{\alpha}_y ] \right), 
     \label{eqn - mixed } 
     \end{aligned}$$ ] { } Since clear the constrained MLE problem using this estimator entail only restricting parameters of $ A$ and $ Y$ models, predicting a newfangled instance is done using $ \mathbb{E}[Y | M, X ] = \sum_{A } \mathbb{E}[Y | A, M, X ] \ \frac{p(M | A, X) \cdot p(A | X)}{\sum_A p(M | A, X) \cdot p(A | X)}.$ 

 * * * Aug
alpja}_a)} \cdot \frac{p(X_i | A = 0, X_i; \widehat{\alpha}_m)}{p(M_i | A = 1, X_i; \wisehat{\alpfa}_m)} \ Y_i
    - \frac{ \mathbb I(A_i = 0)}{ p(A_i = 0 | X_i; \widehat{\alpha}_a)}  \ Y_k 
    \rigjt).
    \lavel{ewb-IPW}
    \env{zligned}$$ ]{}Since dolvnnj the constraingd MLE problam using this asgilator entails only restricting paraieters pf $A$ and $M$ modelf, prtdistinf a new instance is done using $\matgbb{E}[Y | Q] = \sum_{A, M} \mathbb{E}[U | A, M, X] \ p(M | A, X) \ p(A | X).$

***Mided wpproach***: The third way of comkhtigt the NDE is using $A$ and $Y$ models. Jn this estimator, we fit the moaels $'(A | X; \alpha_q)$ qnd $\kathbb{E}[Y | A, M, X; \wlpha_y]$ by MLC, as usgal, and combine the ecge G-firmula and IPW in the following way: [ $$\bedin{aligneg}
    \mathbb{P}_n
    \ledt(\drac{\mdthbt I(A_k = 0)}{p(X_i = 0 | X_j ; \widfhav{\alpha}_a)} \ \mafhbb{E}[Y_i | A = 1, M_i, X_i; \widehat{\alphs}_y]  - \mathbb{E}[Y_i | Z = 0, M_i; \wydehat{\alpha}_y] \right), 
    \label{eqn-mixed}
    \ens{aligned}$$ ]{} Since solving the constrained MLE kroblem usyng this estimator entails only restricting paramaters uf $C$ and $H$ mldels, predicting a new instance is done using $\jauhbn{E}[Y | M, X] = \sum_{A} \mcthbb{E}[Y | A, M, X] \ \grwc{l(I | A, X) \cdot p(X | X)}{\sum_A l(M | A, X) \cdot p(A | X)}.$

***Wug
alpha}_a)} \cdot \frac{p(X_i | A = 0, | = 1, \widehat{\alpha}_m)} \ Y_i 0)}{ = 0 | \widehat{\alpha}_a)} \ Y_i \label{eqn-IPW} \end{aligned}$$ ]{}Since solving the constrained problem using this estimator entails only restricting parameters of $A$ and $M$ models, a new instance is done using $\mathbb{E}[Y | X] = \sum_{A, M} \mathbb{E}[Y A, X] p(M A, X) \ p(A | X).$ ***Mixed approach***: The third way of computing the NDE is $A$ and $Y$ models. In this estimator, we the models $p(A | \alpha_a)$ and $\mathbb{E}[Y | A, X; by MLE, usual, combine edge G-formula and in the following way: [ $$\begin{aligned} \mathbb{P}_n \left(\frac{\mathbb I(A_i = 0)}{p(A_i = 0 | X_i ; \widehat{\alpha}_a)} \mathbb{E}[Y_i | 1, M_i, \widehat{\alpha}_y] \mathbb{E}[Y_i A = 0, \right), \label{eqn-mixed} \end{aligned}$$ ]{} Since solving problem using this estimator entails only restricting parameters $A$ and models, predicting a new instance is using $\mathbb{E}[Y | M, X] = \sum_{A} \mathbb{E}[Y A, M, X] \ \frac{p(M | A, X) \cdot p(A | X)}{\sum_A p(M | A, p(A | X)}.$ ***Aug
alpha}_a)} \cdot \frac{p(X_i | A = 0, X_i; \widehAt{\alpha}_m)}{p(M_I | A = 1, X_i; \wIdeHat{\AlPha}_m)} \ y_i
    - \frAc{ \mathbb I(A_i = 0)}{ p(A_i = 0 | x_I; \widEhat{\alpha}_a)}  \ Y_i 
    \right).
    \label{Eqn-IPw}
    \eND{aliGNeD}$$ ]{}SincE solvinG ThE COnsTrAiNed mLe PrOblem UsiNg this eStimator enTaiLs Only restrictINg Parameters Of $A$ And $M$ models, prEdiCting a NeW inSTance Is dOne usIng $\matHBb{E}[Y | X] = \sUm_{A, M} \mathbB{E}[y | a, M, X] \ p(M | A, x) \ P(A | X).$

***MixeD APpRoacH***: The third way of comPUtINg the NDE is usinG $A$ and $Y$ MoDElS. iN thIs eStimator, we FiT the mODels $p(A | X; \ALpHA_A)$ And $\MAthbb{E}[Y | A, M, X; \alpHa_y]$ by MLE, as uSUal, And comBiNe tHE edge G-FormuLa ANd IpW in the follOwinG way: [ $$\begin{AligneD}
    \Mathbb{P}_N
    \Left(\fraC{\mathbB I(A_I = 0)}{p(A_I = 0 | X_i ; \wIDeHaT{\alPhA}_A)} \ \maTHbB{E}[Y_I | a = 1, M_i, x_i; \widehaT{\aLpHa}_y]  - \maThbb{e}[y_I | a = 0, m_i; \wiDehAt{\alPha}_y] \rIght), 
    \label{eqn-mIxeD}
    \end{ALigNed}$$ ]{} SiNce soLvinG tHe conStrainEd MLE PrOblem using this eStimAtor entaiLs oNlY reStRictiNG paramEteRs oF $A$ and $Y$ mOdels, prEDicTiNG A NeW instance is done usiNg $\MAThBb{E}[Y | M, X] = \suM_{A} \mathBB{E}[y | A, m, x] \ \frac{p(M | A, x) \cDot P(A | X)}{\sUM_a p(M | A, X) \Cdot P(a | X)}.$

***aug
alpha}_a)} \cdot \frac{p(X _i | A = 0 , X_i ; \ wid eh at{\ alph a}_m)}{p(M_i | A =1, X_i; \widehat{\alph a}_m) }\  Y_i    - \ frac{ \ m at h b b I (A _i  =0) } {p(A_i  =0 | X_i ; \widehat {\a lp ha}_a)}  \ Y _ i
    \righ t). 
    \label{ eqn -IPW}   \ e nd{al ign ed}$$  ]{}Si n ce sol ving theco n strain e d MLE p r o bl em u sing this estimat o re ntails only re strict in g  p a r ame ter s of $A$ a nd  $M$m odels,p re d i c tin g  a new instan ce is doneu sin g $\ma th bb{ E }[Y |X] =\s u m_{ A, M} \math bb{E }[Y | A,M, X]\  p(M |A , X) \p(A |X). $
***M i xe dapp ro a ch* * *:  Th e  th ird wayof  c omput ingt h e NDEisusin g $A$  and $Y$ mode ls.  Int his  esti mator , we  f it th e mode ls $p (A  | X; \alpha_a) $ an d $\mathb b{E }[ Y |  A , M,X ; \alp ha_ y]$  by MLE , as us u al,  a n d co mbine the edge G-f or m u la  and IPW  in th e  f ol l owing wa y:  [$$\b e g in{al igne d }    \mat hbb{P} _ n   \left (\ frac{\ ma thb b I (A_i=  0)} {p(A_i  = 0 | X _i ;\ widehat{\alpha } _a)} \ \mathb b {E } [ Y_ i  | A  =1, M_i, X_i ; \w i deha t{\a l ph a}_ y ]  -\math bb { E} [ Y_i | A = 0, M_i; \ wi dehat{ \alph a}_y] \right) , 
    \la b e l {eqn-mix ed} \end{aligned}$ $ ]{}  Since sol v ing theconst rained M LE proble m using th isest ima tor e nt ails only res t r icti ng  parame ter s of $A $ a nd$Y$  mo de ls, predi cting ane win st anc e isd one usin g$\m at hbb {E}[Y | M, X ] = \ sum_ {A }\ mat hbb{E}[ Y  | A , M,  X ]\ \f rac {p (M |A, X )  \c dot p(A  | X)}{\s um_ A  p(M  |  A , X) \c dot p(A | X)} .$ 

***Aug
alpha}_a)} \cdot_\frac{p(X_i |_A = 0, X_i;_\widehat{\alpha}_m)}{p(M_i |_A_= 1,_X_i;_\widehat{\alpha}_m)} \ Y_i
_  _- \frac{ \mathbb I(A_i_= 0)}{ p(A_i_=_0 | X_i; \widehat{\alpha}_a)}  \ Y_i 
    \right).
  __\label{eqn-IPW}
 ___\end{aligned}$$ ]{}Since solving the constrained_MLE problem using this estimator_entails only_restricting parameters of $A$ and $M$ models, predicting_a_new instance is_done using $\mathbb{E}[Y | X] = \sum_{A, M} \mathbb{E}[Y_| A, M, X] \ p(M_| A, X)_\_p(A_| X).$

***Mixed approach***: The_third way of computing the NDE_is using $A$ and $Y$ models._In this estimator, we fit the models_$p(A | X; \alpha_a)$ and $\mathbb{E}[Y_| A, M, X; \alpha_y]$_by MLE,_as usual, and combine the_edge G-formula and_IPW in_the following way:_[ $$\begin{aligned}
    \mathbb{P}_n
_  _\left(\frac{\mathbb I(A_i = 0)}{p(A_i = 0_|_X_i ; \widehat{\alpha}_a)}_\_\mathbb{E}[Y_i_| A_= 1, M_i,_X_i;_\widehat{\alpha}_y] _-_\mathbb{E}[Y_i | A = 0, M_i;_\widehat{\alpha}_y]_\right), 
    \label{eqn-mixed}
 _  \end{aligned}$$ ]{}_Since_solving the constrained MLE_problem using this estimator entails_only restricting parameters of $A$ and_$Y$ models,_predicting a_new instance is done using $\mathbb{E}[Y | M, X] = \sum_{A}_\mathbb{E}[Y | A, M, X] \_\frac{p(M | A, X)_\cdot p(A_|_X)}{\sum_A p(M |_A,_X) \cdot_p(A | X)}.$

***Aug