Sunday, November 12, 2017

Thursday, October 5, 2017

Girsanov for dummies

In quantitative finance, one uses change of numéraire, also known as Girsanov's theorem. In this post I explain this concept in a very simple situation. In practice, I find that this "Girsanov's theorem for dummies" version is good enough for most calculations.

Friday, July 14, 2017

Covariant Taylor Series

I recently saw for the first time formulas that are covariant versions of Taylor series. Because they are not easy to find on the internet, I write some down here. Suppose $x_0$ and $x_1$ are two points on a manifold, then the covariant Taylor series are formulas like \begin{align*} f(x_1) &= f(x_0) + f_{;\mu}(x_0)\, \eta^{\mu} + \dfrac{1}{2}f_{;\mu\nu}(x_0)\, \eta^{\mu}\eta^{\nu} + O(\eta)^3\\ T_{\mu}(x_1) &= T_{\mu}(x_0) + T_{\mu;\alpha}(x_0)\, \eta^{\alpha} + \dfrac{1}{2}\left( T_{\mu;\alpha\beta}(x_0)+\dfrac{1}{3} R^{\sigma}_{\ \ \alpha\beta\mu}(x_0)\, T_{\sigma}(x_0)\right) \eta^{\alpha}\eta^{\beta} + O(\eta)^3 \end{align*} The semi-colon denotes the covariant derivative with the Levi-Civita connection. The vector $\eta^{\mu}$ is defined as follows: take a geodesic $\gamma(t)$ such that $\gamma(0) = x_0$ and $\gamma(1) = x_1$, then $\eta^{\mu} = \dot\gamma^{\mu}(0)$. The higher coefficients in the series expansion become more and more complicated formulas involving the Riemann tensor and its covariant derivatives. The formulas can be proved using normal coordinates.

More information can be found in "The Background Field Method and the Ultraviolet Structure of the Supersymmetric Nonlinear Sigma Model", by Alvarez-Gaume, Freedman, Mukhi, 1981

Monday, June 26, 2017

Wu-Yang monopole: numerical calculation

I have been reading the paper by Wu and Yang [1] in which they find the famous Wu-Yang monopole. In the paper there are solutions for three types of monopoles: one has an analytical form, which is the one most often quoted, but there are also two other monopoles with numerical solution only. In this post I use Python/numpy to perform numerical analysis on the latter solution. I use the same notation as in [1].
Wu and Yang obtain the following system of ordinary differential equations \begin{align} \frac{d\Phi}{d \xi} &= \psi\label{eq:20170625a}\\ \frac{d\psi}{d \xi} &= \psi + \Phi(\Phi^2-1)\label{eq:20170626a} \end{align} Here $\xi$ is given by $r = e^{\xi}$, with $r$ the distance to the origin. The right-hand side of \eqref{eq:20170625a}-\eqref{eq:20170626a} defines the vector field ($d\Phi/d\xi, d\psi/d\xi)$ in the $(\Phi, \psi)$ plane. Its integral curves can be seen in the next figure
The integral curves of the vector field defined by \eqref{eq:20170625a}-\eqref{eq:20170626a}.
The stationary points are marked in red.
I calculate the integral curve from the point $(\Phi,\psi) = (0,0)$ to $(1,0)$ using the numpy function solve_bvp [2].
The integral curves of the vector field defined by \eqref{eq:20170625a}-\eqref{eq:20170626a}.
The integral curve from the stationary point $(0,0)$ to $(1,0)$ is added in red.
$\Phi(\xi)$ can be seen in the next graph. One sees that $\Phi(\xi) \to 0$ for $\xi \to -\infty$ and $\Phi(\xi) \to 1$ for $\xi \to +\infty$
In the rest of this post I reproduce part of Table 1 in [1].

Monday, May 1, 2017

Variance of Markov Chain Monte Carlo

In a previous post, I discussed the bias of Markov Chain Monte Carlo (MCMC) simulation. In this post I will discuss the variance. Please see the previous post for information about the notation that I use.
If \begin{equation*} S =\frac{1}{N} \sum_{t=1}^N f(X_t) \end{equation*} then for large $N$, the variance of $S$ is

Friday, April 28, 2017

Bias in Markov Chain Monte Carlo

Markov Chain Monte Carlo (MCMC) simulation can be used to calculate sums \begin{equation}\label{eq:20170427a} I = \sum_a \pi_a f(a) \end{equation} One finds a Markov process $X_t$ with stationary distribution $\pi_a$, then the sum \eqref{eq:20170427a} is approximated by \begin{equation*} S =\frac{1}{N} \sum_{t=1}^N f(X_t) \end{equation*} One can prove that under certain assumptions, \begin{equation*} \lim_{N \to \infty} \frac{1}{N} \sum_{t=1}^N f(X_t) = \sum_a \pi_a f(a) \end{equation*} This is Birkhoff's ergodic theorem. In this post I illustrate the behaviour of $ES$ for large $N$.

Wednesday, March 8, 2017

A calculation on moduli stabilization

In section 21.6 "Moduli stabilization and the landscape" in Zwiebach's string theory book, I read the sentence "Deriving the potential $V(R)$ associated with $R$ is a straightforward but technical calculation in general relativity". At this point I did not understand what the calculation was. I vaguely remembered a paper by Witten about instabilities in Kaluza-Klein spacetimes related to instantons. A calculation with instantons is indeed technical, but perhaps straightforward for experts. I found more information in a paper by Denef [1]. The calculation has nothing to do with instantons, but is indeed a straightforward calculation in differential geometry. In the rest of this blog post I set out the calculation in the form of a new exercise for Zwiebach's book.

Friday, February 3, 2017

Comment about particle on a circle

The wave function of a particle on a circle is a solution of the Schrödinger equation \begin{equation}\label{eq:20170129a} i \frac{\partial \psi}{\partial t} = - \frac{1}{2 m} \frac{\partial^2 \psi}{\partial x^2} \end{equation} with $x \in [0 , 2 \pi]$ and $\hbar = 1$. When \eqref{eq:20170129a} is solved in physics books, it is usually imposed that the wave function should be periodic [1]. I used to be puzzled why one has to impose the periodicity. After all, I thought, only the probability density function $|\psi|^2$ has physical meaning, so one could as well impose that \begin{equation}\label{eq:20170129b} \psi(2 \pi) = e^{ i \alpha} \psi(0) \quad\text{with}\quad \alpha\in\mathbb{R} \end{equation}

Thursday, January 19, 2017

A magnetostatic exercise in 10 dimensions

I calculate the electromagnetic field generated by electrical currents in 10 spacetime dimensions (9 space and 1 time). The set up is as follows: the current flows down the positive $x_1$-axis, hits the origin and then spreads out isotropically in the $x_2 x_3 x_4$ subspace, see figure 1 and 2. I wanted to calculate this because in string theory a similar calculation is needed to obtain the Kalb-Ramond field generated by a string ending on a $D3$-brane [1]

Wednesday, January 11, 2017

A calculation in magnetostatics

I wanted to calculate the magnetic field generated by a current which flows down the positive $z$-axis, hits the origin and then spreads out radially over the $xy$ plane, see figure 1.

Friday, January 6, 2017

Lorentz invariance of string theory in the light-cone gauge

On page 261 in his book [1] Zwiebach writes ''There is much at stake in this calculation. It is in fact, one of the most important calculations in string theory. [...] The calculation is long and uses many of our previously derived results''. Then Zwiebach states the result \begin{align} \left[ M^{- I}, M^{- J}\right] = &- \frac{1}{\alpha'\ { p^+ }^2} \sum_{m=1}^{\infty} \left(\alpha^I_{-m} \alpha^J_m - \alpha^J_{-m} \alpha^I_m \right)\nonumber\\ &\times \left\{ m \left[1 - \dfrac{1}{24} (D-2) \right] + \dfrac{1}{m} \left[ \dfrac{1}{24} (D-2) + a \right] \right\}\label{eq:20170103} \end{align} This is the commutator of two Lorentz transformations in the light-cone gauge. The commutator should be zero for string theory to be Lorentz invariant. The calculation of the commutator is indeed very tedious and after scribling too many pages I gave up. I googled for a quick way to obtain \eqref{eq:20170103}. Here are the more interesting results that I found.