# Segment 4 Sanmit Narvekar

## Segment 4

#### To Calculate

1. Evaluate $\displaystyle \int_0^1 \delta(3x-2) dx$

The answer is 1. All the mass for $\displaystyle \delta(3x-2)$ is located at the point x = 2/3. Since this is within the bounds of the integral, we simply evaluate the function $\displaystyle f(x) = 1$ (which is what the Dirac-delta is being implicitly applied to) at x = 2/3, and the answer is 1.

Edited --Sanmit (talk) 14:49, 2 March 2014 (CST)

Turns out this is wrong. The delta function has a different interpretation under scaling, as seen in problem 2:

$\displaystyle \int_0^1 \delta(3x-2) dx$

$\displaystyle = \int_0^1 \delta(3(x-\frac{2}{3})) dx$

By problem 2:

$\displaystyle = \frac{1}{3}\int_0^1 \delta(x-\frac{2}{3}) dx$

Now we continue as before. Since 2/3 is within the bounds of the integral, the integral simplifies to 1:

$\displaystyle = \frac{1}{3}$

2. Prove that $\displaystyle \delta(a x) = \frac{1}{a}\delta(x)$ .

First we integrate both sides from $\displaystyle -\infty$ to $\displaystyle \infty$

$\displaystyle \int_{-\infty}^{\infty} \delta(ax) dx = \frac{1}{a}\int_{-\infty}^{\infty} \delta(x) dx$

Now let $\displaystyle y = ax$ . Then, $\displaystyle dy = a\text{ } dx$ . Performing the substitutions on the left side yields:

$\displaystyle \frac{1}{a}\int_{-\infty}^{\infty} \delta(y) dy = \frac{1}{a}\int_{-\infty}^{\infty} \delta(x) dx$

By the definition of the Dirac delta, both terms in the integral become 1. Thus:

$\displaystyle \frac{1}{a} = \frac{1}{a}$

So they are the same.

3. What is the numerical value of $\displaystyle P(A|S_BI)$ if the prior for $\displaystyle p(x)$ is a massed prior with half the mass at $\displaystyle x = 1/3$ and half the mass at $\displaystyle x = 2/3$ ?

$\displaystyle P(A|S_BI) = \int_x \frac{1}{1+x}\text{ } p(x|I) \text{ } dx = \frac{1}{2}\int_0^1 \frac{1}{1+x}\text{ } \delta(3x - 1) \text{ } dx + \frac{1}{2}\int_0^1 \frac{1}{1+x}\text{ } \delta(3x - 2) \text{ } dx$

$\displaystyle = (0.5) \frac{1}{1+\frac{1}{3}} + (0.5) \frac{1}{1 + \frac{2}{3}} = \frac{3}{8} + \frac{3}{10} = 0.675$