Assume I have a number $N$ of noisy (phase) data $\varphi_i$, i.e., $\varphi_i \in [0,2\pi)$. I know that between $\varphi_{i-1}$ and $\varphi_i$ there is a constant phase shift $\Delta \varphi$ (neglecting the noise). If I want to determine $\Delta \varphi$ from the noisy data, I could do a linear fit: $$ \varphi_i = \varphi_0 + i \Delta\varphi $$ The only problem is the "wrapping" of $\varphi_i$ at $2\pi$. Actually I would have to find a least squares solution to something like: $$ \varphi_i = (\varphi_0 + i \Delta\varphi \mod 2\pi) $$ It would be possible to do an "unwrapping" of the data before by shifting $\varphi_i$ by $2n_i\pi$ such that $|\varphi_{i-1}-\varphi_i|$ gets minimal and applying a linear fit afterwards (see the first equation). However, I wonder whether there is a way to do it "directly" without the unwrapping, which might potentially affect the result (especially in case of a more complex phase shift model, which is what I am actually heading to...).
2026-04-02 10:57:39.1775127459
Linear fit to wrapped / periodic data
725 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in STATISTICS
- Given is $2$ dimensional random variable $(X,Y)$ with table. Determine the correlation between $X$ and $Y$
- Statistics based on empirical distribution
- Given $U,V \sim R(0,1)$. Determine covariance between $X = UV$ and $V$
- Fisher information of sufficient statistic
- Solving Equation with Euler's Number
- derive the expectation of exponential function $e^{-\left\Vert \mathbf{x} - V\mathbf{x}+\mathbf{a}\right\Vert^2}$ or its upper bound
- Determine the marginal distributions of $(T_1, T_2)$
- KL divergence between two multivariate Bernoulli distribution
- Given random variables $(T_1,T_2)$. Show that $T_1$ and $T_2$ are independent and exponentially distributed if..
- Probability of tossing marbles,covariance
Related Questions in PERIODIC-FUNCTIONS
- Is the professor wrong? Simple ODE question
- The system $x' = h(y), \space y' = ay + g(x)$ has no periodic solutions
- Show that a periodic function $f(t)$ with period $T$ can be written as $ f(t) = f_T (t) \star \frac{1}{T} \text{comb}\bigg(\frac{t}{T}\bigg) $
- Is $x(t) = \sin(3t) + \cos\left({2\over3}t\right) + \cos(\pi t)$ periodic?
- To show $\int_{a}^{a+T} f(x)dx$ is independant in $a$
- Is the function $f(t)=\sin(\omega_0 t+\phi_0(t))$ periodic?
- Periodic function notation, need help with a fundamental concept
- Time dependent differential equation system with periodicity
- Let $f: \mathbb{R} \to \mathbb{R}$ and $\exists \ \ b \in \mathbb{R} : f(x+b)=\sqrt{f(x)-f^2(x)}+\frac{1}{2}$
- Compute the period of this function $f(x)=7+3\cos{(\pi x)}-8\sin{(\pi x)}+4\cos{(2\pi x)}-6\sin{(2\pi x)}$
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Let me start with the disclaimer that there seems to be a great deal of literature on the problem of phase unwrapping, and I am not familiar with any of it. So it's possible that there exist much better techniques than my answer here.
You could start by representing your phases as unit complex numbers, $z_k = e^{i\phi_k}.$ Then the linear phase model that you want to fit is just a complex sinusoid, $z_k = z_0 e^{ik\Delta\phi}$. If you take the Fourier transform of $z_k$ and pick the largest-amplitude mode, that should be very close to the optimal fit, and then you can apply a nonlinear least-squares algorithm like Levenberg-Marquardt to fine-tune the solution.
Notes:
The Fourier step is necessary because it's very easy for a nonlinear minimization to get stuck in a local minimum, so it's important to start somewhere close to the global optimum.
If the data were periodic, you could just take the largest Fourier mode and call it a day; in this case, the Fourier transform would be a spike at the true frequency and zero everywhere else (in the absence of noise, at least). Even otherwise, the mode with the largest amplitude ought to be nothing but the one closest to the true frequency, so you should get a really good initialization — I'm pretty sure this is true, but I haven't worked out the details.