{"id":2136,"date":"2021-08-30T22:07:04","date_gmt":"2021-08-30T21:07:04","guid":{"rendered":"https:\/\/www.psyctc.org\/psyctc\/?post_type=docs&#038;p=2136"},"modified":"2025-04-09T21:10:39","modified_gmt":"2025-04-09T19:10:39","password":"","slug":"quartiles","status":"publish","type":"docs","link":"https:\/\/www.psyctc.org\/psyctc\/glossary2\/quartiles\/","title":{"rendered":"Quartiles"},"content":{"rendered":"\n<p>[see also quantiles!]<\/p>\n\n\n\n<p>Quartiles are scores that split a set of scores into four equal sized subsets.  If you had scores: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 then the quartiles at 2.5, 5.5 and 7.5 split the distribution into four about equally sized subsets:<br>   1 and 2<br>   3 , 4 and 5<br>   6 and 7<br>   8, 9 and 10<br>You can see that the split isn&#8217;t perfect and the quartiles 2.5 and 7.5 (with the median at 5.5) don&#8217;t actually exist in the data so are a bit arbitrary.  However, seeing where the scores are that, with the median, split your dataset of scores into four as nearly as possible equal sized subsamples is one very useful way to summarise data and helps remind us that the mean is not the only summary statistic that matters.<\/p>\n\n\n\n<p>Details<\/p>\n\n\n\n<p>Here&#8217;s a histogram of a set of scores with mean 40.4 (with a theoretically possible range of scores from zero to 100).  The quartiles here are at 36.9 and 43.8, very tight around that mean.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"885\" src=\"https:\/\/www.psyctc.org\/psyctc\/wp-content\/uploads\/2021\/11\/quartiles1-1-1024x885.png\" alt=\"\" class=\"wp-image-2296\" srcset=\"https:\/\/www.psyctc.org\/psyctc\/wp-content\/uploads\/2021\/11\/quartiles1-1-1024x885.png 1024w, https:\/\/www.psyctc.org\/psyctc\/wp-content\/uploads\/2021\/11\/quartiles1-1-300x259.png 300w, https:\/\/www.psyctc.org\/psyctc\/wp-content\/uploads\/2021\/11\/quartiles1-1-768x664.png 768w, https:\/\/www.psyctc.org\/psyctc\/wp-content\/uploads\/2021\/11\/quartiles1-1-1536x1328.png 1536w, https:\/\/www.psyctc.org\/psyctc\/wp-content\/uploads\/2021\/11\/quartiles1-1.png 1700w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>And here&#8217;s another similar sized set of scores with very similar mean (44.7) but very different scatter about that mean, and hence very different quartiles: 32.5 and 50.2.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"885\" src=\"https:\/\/www.psyctc.org\/psyctc\/wp-content\/uploads\/2021\/11\/quartiles2-1-1024x885.png\" alt=\"\" class=\"wp-image-2297\" srcset=\"https:\/\/www.psyctc.org\/psyctc\/wp-content\/uploads\/2021\/11\/quartiles2-1-1024x885.png 1024w, https:\/\/www.psyctc.org\/psyctc\/wp-content\/uploads\/2021\/11\/quartiles2-1-300x259.png 300w, https:\/\/www.psyctc.org\/psyctc\/wp-content\/uploads\/2021\/11\/quartiles2-1-768x664.png 768w, https:\/\/www.psyctc.org\/psyctc\/wp-content\/uploads\/2021\/11\/quartiles2-1-1536x1328.png 1536w, https:\/\/www.psyctc.org\/psyctc\/wp-content\/uploads\/2021\/11\/quartiles2-1.png 1700w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Try also<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/distribution\/\" title=\"\">Distribution<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/histograms-and-barplots\/\" title=\"\">Histogram<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/standard-deviation-sd\/\" title=\"\">Standard deviation<\/a><\/li>\n\n\n\n<li>Summary statistics<\/li>\n\n\n\n<li><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/variance\/\" title=\"\">Variance<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Chapters<\/h4>\n\n\n\n<p>Chapter 5<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Other resources for more detail (not all ready yet)<\/h4>\n\n\n\n<p>Rblog <a href=\"https:\/\/www.psyctc.org\/Rblog\/posts\/2023-08-07-ecdfs\/\" title=\"\">post about the ECDF<\/a> (with lots on quantiles)<br>Rblog post about confidence intervals around quantiles<br>Rblog post about mapping individual scores to where they come in large sample distributions of scores<br>Entries in Rblog post containing code that made the plots here:<br>     illustrating quartiles and the IQR<br>     <a href=\"https:\/\/www.psyctc.org\/Rblog\/posts\/2021-11-09-ombookglossary\/#more-on-quartiles\" title=\"\">more on quartiles<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Online applications<\/h4>\n\n\n\n<p><a href=\"https:\/\/shiny.psyctc.org\/apps\/ECDFplot\/\" title=\"\">Shiny app to<\/a> compute the quartiles for a set of data and plot the ECDF for the distribution with confidence intervals around quartiles or any quantiles you want.<br>Shiny app to compute quartiles and other summary statistics for a set of data and plot the histogram for the distribution.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Dates<\/h4>\n\n\n\n<p>Created 1.xi.21, last updated 9.iv.25.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[see also quantiles!] Quartiles are scores that split a set of scores into four equal sized subsets. If you had scores: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 then the quartiles at 2.5, 5.5 and 7.5 split the distribution into four about equally sized subsets: 1 and 2 3 , 4 and &hellip; <a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/quartiles\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Quartiles<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[18],"glossaries":[],"doc_tag":[],"knowledge_base":[],"class_list":["post-2136","docs","type-docs","status-publish","hentry","doc_category-om-book"],"year_month":"2026-04","word_count":296,"total_views":"1579","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"chris","author_nicename":"chris","author_url":"https:\/\/www.psyctc.org\/psyctc\/author\/chris\/"},"doc_category_info":[{"term_name":"All OM book glossary entries","term_url":"https:\/\/www.psyctc.org\/psyctc\/glossary\/non-knowledgebase\/om-book\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/docs\/2136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/comments?post=2136"}],"version-history":[{"count":6,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/docs\/2136\/revisions"}],"predecessor-version":[{"id":4792,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/docs\/2136\/revisions\/4792"}],"wp:attachment":[{"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/media?parent=2136"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/doc_category?post=2136"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/glossaries?post=2136"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/doc_tag?post=2136"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/knowledge_base?post=2136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}