Fitting a sinusoid vs. DTFT
$begingroup$
I want to fit a sinusoid to a given discrete finite real signal $X(n)$ with length $N$. Of particular interest is the frequency. For the estimation for example least squares can be utilized:
$$text{min}_{r,phi,k}(sum_{n=0}^{N-1}(X(n)-rtext{cos}(frac{kncdot2pi}{T}-phi))^2)$$
$$=text{min}_{a,b,k}(sum_{n=0}^{N-1}(X(n)-atext{cos}(frac{kncdot2pi}{T})-btext{sin}((frac{kncdot2pi}{T}))^2)$$
The optimization problem looks a lot like solving for the argmax of a Fourier transform, or more precisely $DTFT$. Quite naturally one may start to think whether maximizing the absolute value of the $DTFT$ gives the same result.
$$DTFT_{frac{1}{T}}(k)=sum_{n=0}^{N-1}X(t)e^{frac{-1jcdot 2picdot kn}{T}}$$
So that we get a maximization problem with only the frequency as an argument:
$$text{max}_k(abs(DTFT_frac{1}{T}(k)))$$
Basically it boils down to checking the correctness of the following two steps.
1) DTFT solves the coefficients $a,b$ correctly. IE. as output we get $(a,-ib)$.
2) At the minimum $r=abs(a,-ib)$ is maximized.
The result seems that at least 1) does not hold, which is quite interesting since ome might think that $DTFT$ solves those coefficients. It only holds for integer valued $k$. Why is this?
It's doubtful that 2) holds either. Any thoughts?
Overall, does this seem like a sound method of estimation? (At least for a particular problem I had it worked).
fourier-analysis estimation
$endgroup$
add a comment |
$begingroup$
I want to fit a sinusoid to a given discrete finite real signal $X(n)$ with length $N$. Of particular interest is the frequency. For the estimation for example least squares can be utilized:
$$text{min}_{r,phi,k}(sum_{n=0}^{N-1}(X(n)-rtext{cos}(frac{kncdot2pi}{T}-phi))^2)$$
$$=text{min}_{a,b,k}(sum_{n=0}^{N-1}(X(n)-atext{cos}(frac{kncdot2pi}{T})-btext{sin}((frac{kncdot2pi}{T}))^2)$$
The optimization problem looks a lot like solving for the argmax of a Fourier transform, or more precisely $DTFT$. Quite naturally one may start to think whether maximizing the absolute value of the $DTFT$ gives the same result.
$$DTFT_{frac{1}{T}}(k)=sum_{n=0}^{N-1}X(t)e^{frac{-1jcdot 2picdot kn}{T}}$$
So that we get a maximization problem with only the frequency as an argument:
$$text{max}_k(abs(DTFT_frac{1}{T}(k)))$$
Basically it boils down to checking the correctness of the following two steps.
1) DTFT solves the coefficients $a,b$ correctly. IE. as output we get $(a,-ib)$.
2) At the minimum $r=abs(a,-ib)$ is maximized.
The result seems that at least 1) does not hold, which is quite interesting since ome might think that $DTFT$ solves those coefficients. It only holds for integer valued $k$. Why is this?
It's doubtful that 2) holds either. Any thoughts?
Overall, does this seem like a sound method of estimation? (At least for a particular problem I had it worked).
fourier-analysis estimation
$endgroup$
add a comment |
$begingroup$
I want to fit a sinusoid to a given discrete finite real signal $X(n)$ with length $N$. Of particular interest is the frequency. For the estimation for example least squares can be utilized:
$$text{min}_{r,phi,k}(sum_{n=0}^{N-1}(X(n)-rtext{cos}(frac{kncdot2pi}{T}-phi))^2)$$
$$=text{min}_{a,b,k}(sum_{n=0}^{N-1}(X(n)-atext{cos}(frac{kncdot2pi}{T})-btext{sin}((frac{kncdot2pi}{T}))^2)$$
The optimization problem looks a lot like solving for the argmax of a Fourier transform, or more precisely $DTFT$. Quite naturally one may start to think whether maximizing the absolute value of the $DTFT$ gives the same result.
$$DTFT_{frac{1}{T}}(k)=sum_{n=0}^{N-1}X(t)e^{frac{-1jcdot 2picdot kn}{T}}$$
So that we get a maximization problem with only the frequency as an argument:
$$text{max}_k(abs(DTFT_frac{1}{T}(k)))$$
Basically it boils down to checking the correctness of the following two steps.
1) DTFT solves the coefficients $a,b$ correctly. IE. as output we get $(a,-ib)$.
2) At the minimum $r=abs(a,-ib)$ is maximized.
The result seems that at least 1) does not hold, which is quite interesting since ome might think that $DTFT$ solves those coefficients. It only holds for integer valued $k$. Why is this?
It's doubtful that 2) holds either. Any thoughts?
Overall, does this seem like a sound method of estimation? (At least for a particular problem I had it worked).
fourier-analysis estimation
$endgroup$
I want to fit a sinusoid to a given discrete finite real signal $X(n)$ with length $N$. Of particular interest is the frequency. For the estimation for example least squares can be utilized:
$$text{min}_{r,phi,k}(sum_{n=0}^{N-1}(X(n)-rtext{cos}(frac{kncdot2pi}{T}-phi))^2)$$
$$=text{min}_{a,b,k}(sum_{n=0}^{N-1}(X(n)-atext{cos}(frac{kncdot2pi}{T})-btext{sin}((frac{kncdot2pi}{T}))^2)$$
The optimization problem looks a lot like solving for the argmax of a Fourier transform, or more precisely $DTFT$. Quite naturally one may start to think whether maximizing the absolute value of the $DTFT$ gives the same result.
$$DTFT_{frac{1}{T}}(k)=sum_{n=0}^{N-1}X(t)e^{frac{-1jcdot 2picdot kn}{T}}$$
So that we get a maximization problem with only the frequency as an argument:
$$text{max}_k(abs(DTFT_frac{1}{T}(k)))$$
Basically it boils down to checking the correctness of the following two steps.
1) DTFT solves the coefficients $a,b$ correctly. IE. as output we get $(a,-ib)$.
2) At the minimum $r=abs(a,-ib)$ is maximized.
The result seems that at least 1) does not hold, which is quite interesting since ome might think that $DTFT$ solves those coefficients. It only holds for integer valued $k$. Why is this?
It's doubtful that 2) holds either. Any thoughts?
Overall, does this seem like a sound method of estimation? (At least for a particular problem I had it worked).
fourier-analysis estimation
fourier-analysis estimation
edited Jan 8 at 0:16
Dole
asked Jan 8 at 0:05
DoleDole
899514
899514
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3065657%2ffitting-a-sinusoid-vs-dtft%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3065657%2ffitting-a-sinusoid-vs-dtft%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown