{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

chi2rnd - chi-square distribution with degrees of freedom...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
chi2rnd Chi-square random numbers Syntax R = chi2rnd(V) R = chi2rnd(V,u) R = chi2rnd(V,m,n) Description R = chi2rnd(V) generates random numbers from the chi-square distribution with degrees of freedom parameters specified by V . V can be a vector, a matrix, or a multidimensional array. R is the same size as V . R = chi2rnd(V,u) generates an array R of size u containing random numbers from the chi-square distribution with degrees of freedom parameters specified by V , where u is a row vector. If u is a 1-by-2 vector, R is a matrix with u(1) rows and u(2) columns. If u is 1-by-n, R is an n-dimensional array. R = chi2rnd(V,m,n) generates an m -by- n matrix containing random numbers from the
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: chi-square distribution with degrees of freedom parameter V . Examples Note that the first and third commands are the same, but are different from the second command. r = chi2rnd(1:6) r = 0.0037 3.0377 7.8142 0.9021 3.2019 9.0729 r = chi2rnd(6,[1 6]) r = 6.5249 2.6226 12.2497 3.0388 6.3133 5.0388 r = chi2rnd(1:6,1,6) r = 0.7638 6.0955 0.8273 3.2506 1.5469 10.9197 See Also chi2cdf | chi2inv | chi2pdf | chi2stat | random How To Chi-Square Distribution Provide feedback about this page chi2pdf chi2stat © 1984-2009 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern