Confusion about Numerical Stability












0












$begingroup$


Numerical Analysis is giving me some trouble. In specific, I'm highly confused by our definition of numerical stability. I'm hoping some of you can help me clear my confusion.



Definition. An algorithm $hat{f}$ for a problem $f$ is called stable if$$ | hat{f}(x) - f(tilde{x}) |_{text{rel}} = mathcal{O}(varepsilon_{text{mach}})$$ for some suitably chosen $tilde{x}$ with $|x-tilde{x} |_{text{rel}} = mathcal{O}(varepsilon_{text{mach}})$.



So what do I do in practice to prove stability/instability? It may be my unfamiliarity with Landau notation in numerical purposes. Let me try to have a guess.



Proving Stability: Show that there exists a constant $c > 0$ such that: There exists a constant $C > 0$ such that there exists a $tilde{x}$ with $|x-tilde{x} |_{text{rel}} < c varepsilon_{text{mach}}$ for each sufficiently small $varepsilon_{text{mach}} > 0$ such that$$| hat{f}(x) - f(tilde{x}) |_{text{rel}} < C varepsilon_{text{mach}}$$
Do I read the Landau symbols correctly?



Proving Instability: Show that such $c > 0$ does not exist.



Is that how you would prove stability in practice? For instance, would you start by defining such constants to prove that $x mapsto log(1 oplus operatorname{fl}(x))$ is instable?



EDIT: Perhaps this seems more convenient: Take $tilde{x} = (1+c varepsilon_{text{mach}})x$ and show that the difference of functions also scales in $varepsilon_{text{mach}}$. As for instability, anytime we do that, the result will not decrease as quickly.
I guess that's how one should go about that?










share|cite|improve this question











$endgroup$












  • $begingroup$
    I'd say you're right. If it helps, my "laymen" definition of stability is: small perturbations in the data imply small perturbations in the result. But (surely it's abundantly obvious) keep in mind that if $x$ is a vector, you need a norm of the difference $| x - bar{x} |$ to be small so the formula for $bar{x}$ at the bottom works only in the scalar case.
    $endgroup$
    – VorKir
    Jan 21 at 19:54










  • $begingroup$
    Oh right, true, thanks. Yeah, I do know the intuition for stability, though I‘m having trouble working with it.
    $endgroup$
    – Kezer
    Jan 23 at 8:35
















0












$begingroup$


Numerical Analysis is giving me some trouble. In specific, I'm highly confused by our definition of numerical stability. I'm hoping some of you can help me clear my confusion.



Definition. An algorithm $hat{f}$ for a problem $f$ is called stable if$$ | hat{f}(x) - f(tilde{x}) |_{text{rel}} = mathcal{O}(varepsilon_{text{mach}})$$ for some suitably chosen $tilde{x}$ with $|x-tilde{x} |_{text{rel}} = mathcal{O}(varepsilon_{text{mach}})$.



So what do I do in practice to prove stability/instability? It may be my unfamiliarity with Landau notation in numerical purposes. Let me try to have a guess.



Proving Stability: Show that there exists a constant $c > 0$ such that: There exists a constant $C > 0$ such that there exists a $tilde{x}$ with $|x-tilde{x} |_{text{rel}} < c varepsilon_{text{mach}}$ for each sufficiently small $varepsilon_{text{mach}} > 0$ such that$$| hat{f}(x) - f(tilde{x}) |_{text{rel}} < C varepsilon_{text{mach}}$$
Do I read the Landau symbols correctly?



Proving Instability: Show that such $c > 0$ does not exist.



Is that how you would prove stability in practice? For instance, would you start by defining such constants to prove that $x mapsto log(1 oplus operatorname{fl}(x))$ is instable?



EDIT: Perhaps this seems more convenient: Take $tilde{x} = (1+c varepsilon_{text{mach}})x$ and show that the difference of functions also scales in $varepsilon_{text{mach}}$. As for instability, anytime we do that, the result will not decrease as quickly.
I guess that's how one should go about that?










share|cite|improve this question











$endgroup$












  • $begingroup$
    I'd say you're right. If it helps, my "laymen" definition of stability is: small perturbations in the data imply small perturbations in the result. But (surely it's abundantly obvious) keep in mind that if $x$ is a vector, you need a norm of the difference $| x - bar{x} |$ to be small so the formula for $bar{x}$ at the bottom works only in the scalar case.
    $endgroup$
    – VorKir
    Jan 21 at 19:54










  • $begingroup$
    Oh right, true, thanks. Yeah, I do know the intuition for stability, though I‘m having trouble working with it.
    $endgroup$
    – Kezer
    Jan 23 at 8:35














0












0








0





$begingroup$


Numerical Analysis is giving me some trouble. In specific, I'm highly confused by our definition of numerical stability. I'm hoping some of you can help me clear my confusion.



Definition. An algorithm $hat{f}$ for a problem $f$ is called stable if$$ | hat{f}(x) - f(tilde{x}) |_{text{rel}} = mathcal{O}(varepsilon_{text{mach}})$$ for some suitably chosen $tilde{x}$ with $|x-tilde{x} |_{text{rel}} = mathcal{O}(varepsilon_{text{mach}})$.



So what do I do in practice to prove stability/instability? It may be my unfamiliarity with Landau notation in numerical purposes. Let me try to have a guess.



Proving Stability: Show that there exists a constant $c > 0$ such that: There exists a constant $C > 0$ such that there exists a $tilde{x}$ with $|x-tilde{x} |_{text{rel}} < c varepsilon_{text{mach}}$ for each sufficiently small $varepsilon_{text{mach}} > 0$ such that$$| hat{f}(x) - f(tilde{x}) |_{text{rel}} < C varepsilon_{text{mach}}$$
Do I read the Landau symbols correctly?



Proving Instability: Show that such $c > 0$ does not exist.



Is that how you would prove stability in practice? For instance, would you start by defining such constants to prove that $x mapsto log(1 oplus operatorname{fl}(x))$ is instable?



EDIT: Perhaps this seems more convenient: Take $tilde{x} = (1+c varepsilon_{text{mach}})x$ and show that the difference of functions also scales in $varepsilon_{text{mach}}$. As for instability, anytime we do that, the result will not decrease as quickly.
I guess that's how one should go about that?










share|cite|improve this question











$endgroup$




Numerical Analysis is giving me some trouble. In specific, I'm highly confused by our definition of numerical stability. I'm hoping some of you can help me clear my confusion.



Definition. An algorithm $hat{f}$ for a problem $f$ is called stable if$$ | hat{f}(x) - f(tilde{x}) |_{text{rel}} = mathcal{O}(varepsilon_{text{mach}})$$ for some suitably chosen $tilde{x}$ with $|x-tilde{x} |_{text{rel}} = mathcal{O}(varepsilon_{text{mach}})$.



So what do I do in practice to prove stability/instability? It may be my unfamiliarity with Landau notation in numerical purposes. Let me try to have a guess.



Proving Stability: Show that there exists a constant $c > 0$ such that: There exists a constant $C > 0$ such that there exists a $tilde{x}$ with $|x-tilde{x} |_{text{rel}} < c varepsilon_{text{mach}}$ for each sufficiently small $varepsilon_{text{mach}} > 0$ such that$$| hat{f}(x) - f(tilde{x}) |_{text{rel}} < C varepsilon_{text{mach}}$$
Do I read the Landau symbols correctly?



Proving Instability: Show that such $c > 0$ does not exist.



Is that how you would prove stability in practice? For instance, would you start by defining such constants to prove that $x mapsto log(1 oplus operatorname{fl}(x))$ is instable?



EDIT: Perhaps this seems more convenient: Take $tilde{x} = (1+c varepsilon_{text{mach}})x$ and show that the difference of functions also scales in $varepsilon_{text{mach}}$. As for instability, anytime we do that, the result will not decrease as quickly.
I guess that's how one should go about that?







numerical-linear-algebra stability-theory






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 20 at 18:40







Kezer

















asked Jan 20 at 18:34









KezerKezer

1,422621




1,422621












  • $begingroup$
    I'd say you're right. If it helps, my "laymen" definition of stability is: small perturbations in the data imply small perturbations in the result. But (surely it's abundantly obvious) keep in mind that if $x$ is a vector, you need a norm of the difference $| x - bar{x} |$ to be small so the formula for $bar{x}$ at the bottom works only in the scalar case.
    $endgroup$
    – VorKir
    Jan 21 at 19:54










  • $begingroup$
    Oh right, true, thanks. Yeah, I do know the intuition for stability, though I‘m having trouble working with it.
    $endgroup$
    – Kezer
    Jan 23 at 8:35


















  • $begingroup$
    I'd say you're right. If it helps, my "laymen" definition of stability is: small perturbations in the data imply small perturbations in the result. But (surely it's abundantly obvious) keep in mind that if $x$ is a vector, you need a norm of the difference $| x - bar{x} |$ to be small so the formula for $bar{x}$ at the bottom works only in the scalar case.
    $endgroup$
    – VorKir
    Jan 21 at 19:54










  • $begingroup$
    Oh right, true, thanks. Yeah, I do know the intuition for stability, though I‘m having trouble working with it.
    $endgroup$
    – Kezer
    Jan 23 at 8:35
















$begingroup$
I'd say you're right. If it helps, my "laymen" definition of stability is: small perturbations in the data imply small perturbations in the result. But (surely it's abundantly obvious) keep in mind that if $x$ is a vector, you need a norm of the difference $| x - bar{x} |$ to be small so the formula for $bar{x}$ at the bottom works only in the scalar case.
$endgroup$
– VorKir
Jan 21 at 19:54




$begingroup$
I'd say you're right. If it helps, my "laymen" definition of stability is: small perturbations in the data imply small perturbations in the result. But (surely it's abundantly obvious) keep in mind that if $x$ is a vector, you need a norm of the difference $| x - bar{x} |$ to be small so the formula for $bar{x}$ at the bottom works only in the scalar case.
$endgroup$
– VorKir
Jan 21 at 19:54












$begingroup$
Oh right, true, thanks. Yeah, I do know the intuition for stability, though I‘m having trouble working with it.
$endgroup$
– Kezer
Jan 23 at 8:35




$begingroup$
Oh right, true, thanks. Yeah, I do know the intuition for stability, though I‘m having trouble working with it.
$endgroup$
– Kezer
Jan 23 at 8:35










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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3080962%2fconfusion-about-numerical-stability%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
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3080962%2fconfusion-about-numerical-stability%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Mario Kart Wii

What does “Dominus providebit” mean?

File:Tiny Toon Adventures Wacky Sports JP Title.png