Wiris

Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • CalcMe
                      • Commands
                      • Statistics
                      • Statistics

                      Quartile

                      Reading time: 1min

                      This function returns the quartiles of a data sample.

                      Syntax

                      quartile(Random_variable)
                      

                      Description

                      It returns a vector of three components: the k-th component corresponds to the k-th quartile.

                      Options

                      Option Description Format Default value
                      type We can choose the method to calculate the quartiles. There are 11 different types. From 1 to 9 correspond to the quartile calculation methods described by Hyndman and Fan in their article Sample quantiles in statistical packages (1996). The numbering is the same as theirs. Type 10 takes the median for quartile 2, and the median of the corresponding half of the data set for quartiles 1 and 3. Does not include the median in the computation of the first and third quartiles if the number of elements is odd. Type 11 takes the median for quartile 2, and the median of the corresponding half of the data set for quartiles 1 and 3. Includes the median in the computation of the first and third quartiles if the number of elements is odd. {type=8} {type=11}

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Bar chart
                      • Bernoulli variable
                      • Binomial variable
                      • Boxplot
                      • Central moment

                      Quartile

                      Syntax Description Options

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Learning Lemur

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand