Estimate the number of iterations












0














Construct $A =QLambda Q^T$. $Q$ is found by applying $QR$ factorization to $B=$randn($n$), and $Lambda$ is defined to be
begin{align*}
Lambda = mathrm{diag}(lambda_1,lambda_2,ldots,lambda_n),
end{align*}

where $(lambda_i)_{i=1}^n$ is a colloction of iid random variables and $lambda_1$ is uniform on $[-1,1]$. It's clear that $|A|<1$. Let $vec b=$rand($n,1$), which means its entries are uniformly distributed random variables on $[0,1]$.



When solving $(I - A)vec x = vec b$, I apply the Neumann series iteration as follows:
begin{align*}
vec x_0 &= vec 0,\
vec x_j &= Avec x_{j-1} + b, quad j = 1,2,3ldots.
end{align*}

There are two ways to define the number of iterations.



First, define the number of iterations $hat k_epsilon(A)$ as
begin{align*}
hat k_epsilon(A) = min left{ k : frac{|A|^k}{1 - |A|} sqrt{n}< epsilonright}.
end{align*}



Also, define the number of iterations $tilde k_epsilon(A,vec b, vec x_0)$ as
begin{align*}
tilde k_epsilon(A,vec b, vec x_0) &= min left{ k : |vec x - vec x_k| < epsilonright}.
end{align*}

When $vec b sim text{rand(n)}$, and $vec x_0 = 0$, I want to show that
begin{align*}
hat k_epsilon(A) geq tilde k_epsilon(A,vec b, vec x_0).
end{align*}

Besides, I want to find an expression for $hat k_epsilon(A)$ in terms of the eigenvalues of $A$? Since $hat k_epsilon(A)$ is affected only by $A$ and $epsilon$, can I just write $frac{|A|^k}{1 - |A|} sqrt{n}= epsilon$ and move everything except $k$ to the RHS and estimate the value of $k$? Is this the desired expression of $hat k_epsilon(A)$?










share|cite|improve this question
























  • Any hint on how to solve this problem?
    – Jiexiong687691
    Nov 29 at 9:08
















0














Construct $A =QLambda Q^T$. $Q$ is found by applying $QR$ factorization to $B=$randn($n$), and $Lambda$ is defined to be
begin{align*}
Lambda = mathrm{diag}(lambda_1,lambda_2,ldots,lambda_n),
end{align*}

where $(lambda_i)_{i=1}^n$ is a colloction of iid random variables and $lambda_1$ is uniform on $[-1,1]$. It's clear that $|A|<1$. Let $vec b=$rand($n,1$), which means its entries are uniformly distributed random variables on $[0,1]$.



When solving $(I - A)vec x = vec b$, I apply the Neumann series iteration as follows:
begin{align*}
vec x_0 &= vec 0,\
vec x_j &= Avec x_{j-1} + b, quad j = 1,2,3ldots.
end{align*}

There are two ways to define the number of iterations.



First, define the number of iterations $hat k_epsilon(A)$ as
begin{align*}
hat k_epsilon(A) = min left{ k : frac{|A|^k}{1 - |A|} sqrt{n}< epsilonright}.
end{align*}



Also, define the number of iterations $tilde k_epsilon(A,vec b, vec x_0)$ as
begin{align*}
tilde k_epsilon(A,vec b, vec x_0) &= min left{ k : |vec x - vec x_k| < epsilonright}.
end{align*}

When $vec b sim text{rand(n)}$, and $vec x_0 = 0$, I want to show that
begin{align*}
hat k_epsilon(A) geq tilde k_epsilon(A,vec b, vec x_0).
end{align*}

Besides, I want to find an expression for $hat k_epsilon(A)$ in terms of the eigenvalues of $A$? Since $hat k_epsilon(A)$ is affected only by $A$ and $epsilon$, can I just write $frac{|A|^k}{1 - |A|} sqrt{n}= epsilon$ and move everything except $k$ to the RHS and estimate the value of $k$? Is this the desired expression of $hat k_epsilon(A)$?










share|cite|improve this question
























  • Any hint on how to solve this problem?
    – Jiexiong687691
    Nov 29 at 9:08














0












0








0







Construct $A =QLambda Q^T$. $Q$ is found by applying $QR$ factorization to $B=$randn($n$), and $Lambda$ is defined to be
begin{align*}
Lambda = mathrm{diag}(lambda_1,lambda_2,ldots,lambda_n),
end{align*}

where $(lambda_i)_{i=1}^n$ is a colloction of iid random variables and $lambda_1$ is uniform on $[-1,1]$. It's clear that $|A|<1$. Let $vec b=$rand($n,1$), which means its entries are uniformly distributed random variables on $[0,1]$.



When solving $(I - A)vec x = vec b$, I apply the Neumann series iteration as follows:
begin{align*}
vec x_0 &= vec 0,\
vec x_j &= Avec x_{j-1} + b, quad j = 1,2,3ldots.
end{align*}

There are two ways to define the number of iterations.



First, define the number of iterations $hat k_epsilon(A)$ as
begin{align*}
hat k_epsilon(A) = min left{ k : frac{|A|^k}{1 - |A|} sqrt{n}< epsilonright}.
end{align*}



Also, define the number of iterations $tilde k_epsilon(A,vec b, vec x_0)$ as
begin{align*}
tilde k_epsilon(A,vec b, vec x_0) &= min left{ k : |vec x - vec x_k| < epsilonright}.
end{align*}

When $vec b sim text{rand(n)}$, and $vec x_0 = 0$, I want to show that
begin{align*}
hat k_epsilon(A) geq tilde k_epsilon(A,vec b, vec x_0).
end{align*}

Besides, I want to find an expression for $hat k_epsilon(A)$ in terms of the eigenvalues of $A$? Since $hat k_epsilon(A)$ is affected only by $A$ and $epsilon$, can I just write $frac{|A|^k}{1 - |A|} sqrt{n}= epsilon$ and move everything except $k$ to the RHS and estimate the value of $k$? Is this the desired expression of $hat k_epsilon(A)$?










share|cite|improve this question















Construct $A =QLambda Q^T$. $Q$ is found by applying $QR$ factorization to $B=$randn($n$), and $Lambda$ is defined to be
begin{align*}
Lambda = mathrm{diag}(lambda_1,lambda_2,ldots,lambda_n),
end{align*}

where $(lambda_i)_{i=1}^n$ is a colloction of iid random variables and $lambda_1$ is uniform on $[-1,1]$. It's clear that $|A|<1$. Let $vec b=$rand($n,1$), which means its entries are uniformly distributed random variables on $[0,1]$.



When solving $(I - A)vec x = vec b$, I apply the Neumann series iteration as follows:
begin{align*}
vec x_0 &= vec 0,\
vec x_j &= Avec x_{j-1} + b, quad j = 1,2,3ldots.
end{align*}

There are two ways to define the number of iterations.



First, define the number of iterations $hat k_epsilon(A)$ as
begin{align*}
hat k_epsilon(A) = min left{ k : frac{|A|^k}{1 - |A|} sqrt{n}< epsilonright}.
end{align*}



Also, define the number of iterations $tilde k_epsilon(A,vec b, vec x_0)$ as
begin{align*}
tilde k_epsilon(A,vec b, vec x_0) &= min left{ k : |vec x - vec x_k| < epsilonright}.
end{align*}

When $vec b sim text{rand(n)}$, and $vec x_0 = 0$, I want to show that
begin{align*}
hat k_epsilon(A) geq tilde k_epsilon(A,vec b, vec x_0).
end{align*}

Besides, I want to find an expression for $hat k_epsilon(A)$ in terms of the eigenvalues of $A$? Since $hat k_epsilon(A)$ is affected only by $A$ and $epsilon$, can I just write $frac{|A|^k}{1 - |A|} sqrt{n}= epsilon$ and move everything except $k$ to the RHS and estimate the value of $k$? Is this the desired expression of $hat k_epsilon(A)$?







linear-algebra numerical-linear-algebra






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 3 at 8:11

























asked Nov 29 at 8:09









Jiexiong687691

705




705












  • Any hint on how to solve this problem?
    – Jiexiong687691
    Nov 29 at 9:08


















  • Any hint on how to solve this problem?
    – Jiexiong687691
    Nov 29 at 9:08
















Any hint on how to solve this problem?
– Jiexiong687691
Nov 29 at 9:08




Any hint on how to solve this problem?
– Jiexiong687691
Nov 29 at 9:08










1 Answer
1






active

oldest

votes


















1














Let $rho=sup_i(|lambda_i|)$. Then $||A||_2=rho$. If $rho<1$, then the sequence $(x_i)$ converges and you easily can calculate $k$.



Beware, if, for example $n$ is great and $rhoapprox 1-1/n$, then the convergence is very slow and the cost of the calculation of its limit becomes greater than the cost of the calculation of $(I-A)^{-1}$.



If you uniformly choose the $(lambda_i)$ in $[-1,1]$, then you will be very often in the above case!!






share|cite|improve this answer





















    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%2f3018343%2festimate-the-number-of-iterations%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Let $rho=sup_i(|lambda_i|)$. Then $||A||_2=rho$. If $rho<1$, then the sequence $(x_i)$ converges and you easily can calculate $k$.



    Beware, if, for example $n$ is great and $rhoapprox 1-1/n$, then the convergence is very slow and the cost of the calculation of its limit becomes greater than the cost of the calculation of $(I-A)^{-1}$.



    If you uniformly choose the $(lambda_i)$ in $[-1,1]$, then you will be very often in the above case!!






    share|cite|improve this answer


























      1














      Let $rho=sup_i(|lambda_i|)$. Then $||A||_2=rho$. If $rho<1$, then the sequence $(x_i)$ converges and you easily can calculate $k$.



      Beware, if, for example $n$ is great and $rhoapprox 1-1/n$, then the convergence is very slow and the cost of the calculation of its limit becomes greater than the cost of the calculation of $(I-A)^{-1}$.



      If you uniformly choose the $(lambda_i)$ in $[-1,1]$, then you will be very often in the above case!!






      share|cite|improve this answer
























        1












        1








        1






        Let $rho=sup_i(|lambda_i|)$. Then $||A||_2=rho$. If $rho<1$, then the sequence $(x_i)$ converges and you easily can calculate $k$.



        Beware, if, for example $n$ is great and $rhoapprox 1-1/n$, then the convergence is very slow and the cost of the calculation of its limit becomes greater than the cost of the calculation of $(I-A)^{-1}$.



        If you uniformly choose the $(lambda_i)$ in $[-1,1]$, then you will be very often in the above case!!






        share|cite|improve this answer












        Let $rho=sup_i(|lambda_i|)$. Then $||A||_2=rho$. If $rho<1$, then the sequence $(x_i)$ converges and you easily can calculate $k$.



        Beware, if, for example $n$ is great and $rhoapprox 1-1/n$, then the convergence is very slow and the cost of the calculation of its limit becomes greater than the cost of the calculation of $(I-A)^{-1}$.



        If you uniformly choose the $(lambda_i)$ in $[-1,1]$, then you will be very often in the above case!!







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Nov 30 at 11:24









        loup blanc

        22.4k21750




        22.4k21750






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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.


            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%2f3018343%2festimate-the-number-of-iterations%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

            Wiesbaden

            To store a contact into the json file from server.js file using a class in NodeJS

            Marschland