Page 35
p. 35
This seems a conceptually novel way of looking at equivalence of partial pooling in causal models. Might be exact equivalence though.
Though it is worth noting that the independence seems to be a bigger term than in statistics. Independence of cause and mechanism - mechanism being
and cause being
If we start changing the cause distribution then the t → a causal model does not keep the mechanism intact.
The generative process or mechanism generating the effect from the cause is indpeendent of the generative process or mechanism that is generating the cause.
Three differnet visions of independence.
-
Mechanistic - the light, the position of a chair and angle you are watching the chair are indpendent and there exists the assumption of generic viewpoint. You can change the light, position of the chair or perspective without being surprised.
-
Information theoretic independence - learning about the structure of the conditional does not in any way inform you about the structure of the prior.
-
Independence of noises - where is noise generated from with regards to the generative process. Not sure how this generalises last - it was mentioned that this can model or homogeneous processes as well. To break independence we can look at mechanisms or subprocesses such that the process is selected randomly when rv . When we for example know that then processes at or are not independent.
Page 56
p. 56
Problem 3.5.

p36
Problem 3.6. Recall Eq (3.4):
where and .
Show that is Gaussian:
Per Bayes’ theorem , and our goal is to massage the right-hand side into the standard Gaussian form
(0) First let us remind ourselves how the change of variables work.
When we have a continuous measure then we can write where is the density function with respect to the Lebesgue measure. We can write . Now let us look at some transformation and we care about .
Let be measurable and function and . We say that is measurable or -measurable if every Borel set has it’s original in .
Now let us look at measure spaces and . Let us define a generalisation for .
Let us have a function such that for every . Now define
If then . If , then for every we have
Now specialise this machinery to densities — which is all the “Jacobian” ever was. Let be a random variable on with law on , and suppose has a density with respect to Lebesgue measure , i.e. . Take a diffeomorphism and set . Pushforwards compose, so the law of is
For any , the image-measure identity (*) with gives
So far there is no Jacobian: the abstract change of variables (*) is exact for any measurable . The factor enters only when we re-express this integral against itself, via the substitution . That substitution is not imported from calculus as a black box — it is justified, within this same framework, by the following lemma.
Lemma (density of the pushforward of Lebesgue measure). For a diffeomorphism , the pushforward is absolutely continuous with respect to , with
Proof. Take increasing (the decreasing case is identical up to a sign). For an interval we have , so by the fundamental theorem of calculus (valid since ),
For decreasing the endpoints swap and , which is exactly what produces the absolute value. Both sides are measures in agreeing on the -system of intervals, hence agree on all of by uniqueness of measures.
Now combine the two. Apply (*) with , so that :
Trying to derive the first equation in prev eq.
the last equality by the lemma. This is the substitution rule in differential shorthand; the only analytic input was the fundamental theorem of calculus applied to on intervals. Taking turns our expression for the law of into
Since this holds for every , uniqueness of the Radon–Nikodym derivative identifies the density of :
The factor is precisely the Radon–Nikodym derivative — the density with which distorts Lebesgue measure. That is the whole content of the word “Jacobian”: not a separate rule for densities, but the price of measuring against a that does not preserve.
For the affine map (with ) we have and , so
With , this is the used next; for it returns .
(1) Recall the convolution operation. For standard normal rvs X,Y we have
X+Y should have and
Let it be standard normal so we simplify to
Complete the square in to separate the part from the integration variable:
so
The remaining integral is a plain Gaussian, , independent of . Hence
which is exactly , confirming and .
(2) Apply the affine rule from (0) with , :
which is : the from (0) turns the prefactor into , exactly the normalization for standard deviation .
Now assemble the three pieces. Since with , conditioning on shifts the mean by , so . The prior is , and the evidence is a plain number (here the is the factor from the affine rule in (0)):
Multiply likelihood and prior and complete the square in :
and since (using and ),
Now divide by — the algebra closes on its own, no appeal to “it must be a normalizer.” The factors cancel exactly, and the prefactor collapses:
so
This is exactly the density of , correctly normalized by direct computation — the dividing supplies precisely the that a Gaussian requires.
Link to original
Page 57
p. 57
Problem 3.8 Test ABC4
Page 86
p. 86
p415
Problem 4.15 (ANMs)
- Consider the SCM
with uniformly distributed between and and uniformly distributed between and and independent of . The distribution admits an ANM from to . Draw the support of the joint distribution of and convince yourself that does not admit an ANM from to , that is, there is no function and independent noise variables and such that
with independent of .
Solution Clearly Also clearly
Recall convolution or
So we get
Multiplying the marginal by the conditional gives the joint density
so the support is the slanted band
a parallelogram with vertices .
Now read the band the other way. Conditioning on ,
For neither bound binds and the interval is : width , a pure translate of a fixed set, which is exactly what an ANM needs. But for the constraint truncates it to , of width , and symmetrically near .
Why this rules out an ANM (Definition 4.4, p. 67). An ANM from to means with . Independence gives, for bounded measurable and Borel , by Fubini,
so for -a.e. the conditional law is the law of . Hence is a.e. constant in . But from the conditional above, for and for , and both sets have positive -mass. Contradiction: there is no ANM from to . (Theorem 4.5, p. 67–68, does not apply: it requires strictly positive, smooth densities.)
- Similarly as in part a), consider the SCM
with uniformly distributed between and and uniformly distributed between and and independent of . Again, draw the support of and convince yourself that there is no ANM from to .
Link to original
p416
Problem 4.16 (Maximum likelihood) Assume that we are given an i.i.d. data set from the model
where the function is supposed to be known.
Prove that .
Write , and consider the log-likelihood function
where is the joint density over and . Prove that for some with
where estimates the variance.
Equation (4.20) motivates the comparison of expressions (4.18) and (4.19):
with and the regression residuals. The main difference is that in this exercise, we have used the conditional mean and not the outcome of the regression method.
Solution a) As stated this needs : by linearity of conditional expectation,
Why? Let us use Part A of
cond_exp.pdf. Set . This is a regular conditional distribution of given : (K1), (K2) are immediate, and (K3) holds since for BorelHence we can write
And the second equals the unconditional mean because , because of lemma 2 (note that the independence is used in second to last equation in the equation chain). So iff . This is a harmless normalization: replacing by with gives the identical joint distribution, so only the sum — that is, the regression function — is identifiable.
Solution b) The joint density factorizes as with and .
Why does the conditional distribution look like that? Left as a gap.
Writing ,
Note the terms are not constant in ; without them the -derivatives would be strictly positive and have no critical point. Note also that must stay free: has four components, and maximizing over the slice is a different (smaller) number in general.
The two blocks have the same form, so it suffices to maximize one, say over . First-order conditions:
(This critical point is the maximum, because the density funciton is smooth and can be checked by having the Hessian minors’ determinants have signs -1, 1. Then we can check that it is a global min) Substituting back, the quadratic term collapses to a constant:
so
The residual block is identical with in place of : , — the free is exactly what centers the residuals, producing the centered rather than : the -condition is ; with free, and this is ; with fixed at it would be and (4.20) would fail as stated. Adding and factoring out :
which is (4.20) with and . The coefficient 1 on each log term pins uniquely — cannot be rescaled to, say, (why?). Since do not depend on the direction of the model, comparing causal directions by maximum likelihood reduces to comparing with its flipped counterpart, i.e. the scores (4.18)/(4.19).
Link to original
Page 96
p. 96
p51
Problem 5.1 (Independence of mechanisms) Let be the mixture of sharp Gaussian peaks at positions as shown in Figure 5.5, left. Let be obtained from by adding some Gaussian noise with zero mean and a width such that the separate peaks remain visible as in Figure 5.5, right.
Argue intuitively why also contains information about the positions of the peaks and thus and share this information.
The transition between and can be described by convolution (from to ) and deconvolution (from to ). If is considered as the linear map converting the input to the output , then coincides with the convolution map. Argue why does not coincide with the deconvolution map (as one may think at first glance).
Setup in formulas. with weights , , and small; with , , and .
Definition (convolution). For two probability measures on , their convolution is the probability measure
It is the law of when , , and (by the product-measure/Fubini argument of Claim 1 in
anm_claims.pdf). If have Lebesgue densities , then has densityConvolution is commutative, associative and linear in each argument. In the problem, , i.e. with the density; the map is linear and is exactly the kernel integrated against .
Definition (deconvolution). Deconvolution is the inverse problem: given (the noise density) and the output , recover the input . Formally it is the inverse of the linear map , whenever that inverse exists. With Fourier transforms one has , so
provided has no zeros. For Gaussian , never vanishes, so the inverse exists on a suitable class of functions, but it divides by an exponentially small number at high frequencies: deconvolution is linear but ill-posed (small perturbations of blow up). Note it is a fixed linear map determined by alone; it does not depend on which produced .
Solution
a) We have .
Solution a) If we choose midway between two adjacent peaks, say and , then puts its mass equally at and with a gap in the middle, so we know that we are not uniquely near any . If we choose near , then has much more mass around . Reason: , and the factor is away from the , so for every the mass of sits at the peak positions; only sets their relative weights . Hence reveals , just as does, while does not.
Solution b) Fix the model , , , , and write , , ,
By Bayes (
deconv_helpers), the posterior is with (^bde910, ). The two maps on distributions:Both send (Recall from deconv_helpers and this is simply (actually it is a nightmare) Bayes for Kernel map and cf subtraction for deconv). Two maps differ iff they differ at one input, so we exhibit a and a Borel set with . (In fact they agree only at ; not needed here.)
Representation. A sample can be generated in two stages: draw ; given , pick the index with probability and set , independent (why?). Hence
All dependence on the intractable weights is confined to , of which we use only the bound .
Sandwich. If and on one probability space with a.s., then for all (why?). Applying this with gives, for every input ,
where means for all .
Separating input. Take for a shift to be chosen. Writing with , (why?), the upper bound collapses:
using , which is the law of total variance in the single-peak toy (why?). On the other side, deconvolution commutes with translation (why?), so , and the same selection trick gives .
Threshold. The bounding Gaussians have equal width and centre gap . Choose , so the gap is positive, and let be the midpoint of the two centres. Then
so and the maps differ.
Moral. is built from the noise alone and follows its input anywhere; carries the prior inside () and every output is dragged back to within -reach of the old peaks. The two coincide exactly at the one input that the old prior generated — Bayes’ inversion of this joint, not an inverse of the blur.
Lemma (uniqueness). holds only at .
Tools. (i) A Markov kernel is a probability measure on for each , measurable in ; it acts on measures by . is invariant if . (ii) Hahn decomposition: every finite signed measure splits with on subsets of and on subsets of ; then , are finite measures with .
Step 1 (reformulate as a fixed point). Define the Gibbs kernel (go by the forward noise, then by the posterior)
Then for every probability (why?). If , then by definition of , hence : is invariant for . Conversely an invariant gives the agreement point . So agreement points invariant probabilities of , via .
Step 2 ( is invariant). and , so . This gives the known agreement point .
Step 3 (no other invariant probability). has a strictly positive Lebesgue density for every , since is a Gaussian mixture with (why?). Let be invariant probabilities and , so and . Take a Hahn decomposition of . For every Borel ,
and because preserves mass. A measure dominated by another of equal total mass equals it (why?), so . Then
and for all whenever . Hence or . Symmetrically or . If then are both nonzero (equal mass, since ), forcing , i.e. . Contradiction, so . By Steps 1–2 the unique agreement point is .
Check in the single-peak toy (Fourier). With , : is the law of , so , while (Helper 3). Agreement means ; iterating times and letting (using and continuous at with ) gives , and (why?). So . This route uses that convolution and are both diagonal in the Fourier basis (multiply/rescale ); for the -dependent weights break this, which is why the lemma goes through instead.
Link to original
deconv_helpers
Helpers: convolution and deconvolution.
Helper 1 (convolution as a matrix, finite case). Let with probability vector , and noise with , independent of . Then has
i.e. for the banded matrix with on the diagonal and subdiagonal. Deconvolution is solving for : , , …, a back-substitution that exists and is unique. Note (i) depends only on the noise law; (ii) the recipe does not care what is; (iii) errors in double at every step (instability).
Helper 2 (Gaussians convolve by adding variances). If , , independent, then . (Prove once: either by completing the square, or via characteristic functions .) Hence within the Gaussian family deconvolution is “subtract the noise variance”: given and known , the input was . It exists iff : a narrower than the noise cannot have been produced by any . Again the map is fixed by alone.
Helper 3 (Fourier makes it linear algebra). For densities, with ; this is the independence identity [T6 in
cond_exp.pdf]. So convolution is a diagonal operator in the Fourier basis, with “eigenvalue” at frequency , and deconvolution divides by it: . Helper 2 is this with : dividing subtracts from the variance. Ill-posedness as , so high-frequency error in is amplified without bound.Common thread. Deconvolution is a map on distributions, , determined by the noise law only, and it is linear. Keep this in mind for Problem 5.1 b).
Exercise (stays inside Helper 2). For , , compute the conditional law (Gaussian; same computation as Problem 3.6 in
p36.tex). Then ask what map on distributions induces via , and compare its ingredients with the deconvolution map’s ingredients.Solution Let us fix and write
Now note that can be subsumed into some new . Now focus on the exponent terms containing
Results side by side (, , , ):
Both recover from : the second directly, the first via . They are different maps on distributions: the first has (i.e. ) baked into its coefficients, the second does not.
The two maps. Fix the model , , , , and write , , , so that . Both maps take a probability measure on the -axis to one on the -axis:
Here (hence ) are frozen into the maps; parameterize the varying input.
With the help of Claim 1 (
anm_claims.pdf) and defining with , , , we can show that , with the distributionSince while , the two maps differ whenever ; moreover for the map is undefined while is not, and for the variances agree only at . The maps agree exactly at , where both return .
Link to original