I am trying to do my homework on finding parameters with some data and I am kind of stuck. The problem is to find parameters $(T_m, T_0, t_0, \omega) \in \mathbb R \times \mathbb R \times \mathbb R_{+} \times \mathbb R_{+}$ such that $$T_i = T_m + T_0 \sin (\omega (t_i-t_0)) + \epsilon_i$$ for all the data point $(t_i, T_i)$. $\epsilon_i$ is a small noise. I tried to minimize the quadratic error but since the quadratic error function is not convex, the minimization is not guaranteed to be global. Can someone help me find a method to solve the problem?
2026-04-03 16:44:06.1775234646
Sinusoidal regression
292 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 TRIGONOMETRY
- Is there a trigonometric identity that implies the Riemann Hypothesis?
- Finding the value of cot 142.5°
- Using trigonometric identities to simply the following expression $\tan\frac{\pi}{5} + 2\tan\frac{2\pi}{5}+ 4\cot\frac{4\pi}{5}=\cot\frac{\pi}{5}$
- Derive the conditions $xy<1$ for $\tan^{-1}x+\tan^{-1}y=\tan^{-1}\frac{x+y}{1-xy}$ and $xy>-1$ for $\tan^{-1}x-\tan^{-1}y=\tan^{-1}\frac{x-y}{1+xy}$
- Sine of the sum of two solutions of $a\cos\theta + b \sin\theta = c$
- Tan of difference of two angles given as sum of sines and cosines
- Limit of $\sqrt x \sin(1/x)$ where $x$ approaches positive infinity
- $\int \ x\sqrt{1-x^2}\,dx$, by the substitution $x= \cos t$
- Why are extraneous solutions created here?
- I cannot solve this simple looking trigonometric question
Related Questions in NUMERICAL-METHODS
- The Runge-Kutta method for a system of equations
- How to solve the exponential equation $e^{a+bx}+e^{c+dx}=1$?
- Is the calculated solution, if it exists, unique?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Minimum of the 2-norm
- Is method of exhaustion the same as numerical integration?
- Prove that Newton's Method is invariant under invertible linear transformations
- Initial Value Problem into Euler and Runge-Kutta scheme
- What are the possible ways to write an equation in $x=\phi(x)$ form for Iteration method?
- Numerical solution for a two dimensional third order nonlinear differential equation
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?
The model being $$T = T_m + T_0\, \sin [\omega (t-t_0)] $$ nonlinear regression will be required which means that rather good estimates would be required.
What I should do is to consider that we can fix $\omega$ at a given value and rewrite the model as $$T=T_m+T_0 \cos(\omega t_0)\sin(\omega t)-T_0 \sin(\omega t_0)\cos(\omega t)$$that is to say $$T=T_m+a \,\sin(\omega t)+b \,\cos(\omega t)$$ where $a=T_0 \cos(\omega t_0)$ and $b=-T_0 \sin(\omega t_0)$.
Since, for the time being, $\omega$ is fixed, define two variables $x_i=\sin(\omega t_i)$ and $y_i=\cos(\omega t_i)$ making the model to be $$T=T_m+a x+b y$$ which is a simple multilinear regression.
Now, consider $$SSQ(\omega)=\sum_{i=1}^n (T_m+a x_i+b y_i-T_i)^2$$ and compute this sum of squares for various values of $\omega$ until you see a minimum (plot the results). If required, repeat the procedure with a smaller stepsize $\Delta \omega$.
Say that $\omega_*$ is your best candidate after this search. For this specific value you have retained, from the linear regression, the corresponding $a_*$ and $b_*$ are available.
Now, $a_*^2+b_*^2=T_0^2$ so the estimate for $T_m$. Similarly $\frac{b_*}{a_*}=-\tan(\omega_* t_0)$ from which the estimate for $t_0$.
Now, you should be ready for starting the nonlinear regression for the four original parameters.
Edit
Have a look here for a very interesting method (page 21 and next) developed and extensively used by JJacquelin, an MSE user.
Update
For illustration purposes, I used the data set given on page 23 in JJacquelin's linked book and applied the above described procedure.
The preiminary search gives the following results $$\left( \begin{array}{cc} \omega & \text{SSQ}(\omega) & T_m & a & b \\ 0.0 & 16.854& -0.26694 & 0.43645 & +0.21608 \\ 0.5 & 8.369& +4.32249 & 0.84523 & -5.29375 \\ 1.0 & 7.265& +0.61499 & 0.68349 & -1.62695 \\ 1.5 & 3.869& -0.10656 & 1.01910 & -0.90143 \\ 2.0 & \color{red}{0.326}& -0.39790 & 1.28306 & -0.57357\\ 2.5 & 3.278& -0.42749 & 1.18252 & -0.85369 \\ 3.0 & 8.766& -0.10998 & 0.78829 & +0.34607 \end{array} \right)$$
Then, from the values obtained for $\omega_*=2.0$, we get as estimates $T_m=-0.40$, $T_0=1.40$ and $t_0=0.21$. Using these as starting values, the nonlinear regression converges in a couple of iterations and gives $$\begin{array}{clclclclc} \text{} & \text{Estimate} & \text{Standard Error} \\ T_m & -0.39070 & 0.05412 \\ T_0 & +1.41040 & 0.06313 \\ \omega & +1.98131 & 0.04346 \\ t_0 & +0.21064 & 0.02831 \\ \end{array}$$ and then the final results $$\left( \begin{array}{ccc} t & T & T_{calc} \\ -1.983 & 0.936 & 0.9262 \\ -1.948 & 0.810 & 0.8881 \\ -1.837 & 0.716 & 0.7275 \\ -1.827 & 0.906 & 0.7102 \\ -1.663 & 0.247 & 0.3712 \\ -0.815 & -1.513 & -1.6537 \\ -0.778 & -1.901 & -1.6963 \\ -0.754 & -1.565 & -1.7201 \\ -0.518 & -1.896 & -1.7897 \\ 0.322 & 0.051 & -0.0820 \\ 0.418 & 0.021 & 0.1726 \\ 0.781 & 1.069 & 0.8849 \\ 0.931 & 0.862 & 1.0052 \\ 1.510 & 0.183 & 0.3670 \\ 1.607 & 0.311 & 0.1259 \end{array} \right)$$