{"id":3469,"date":"2026-06-10T10:29:30","date_gmt":"2026-06-10T10:29:30","guid":{"rendered":"https:\/\/www.mhtechin.com\/support\/?p=3469"},"modified":"2026-06-10T10:29:30","modified_gmt":"2026-06-10T10:29:30","slug":"how-box-plot-works","status":"publish","type":"post","link":"https:\/\/www.mhtechin.com\/support\/how-box-plot-works\/","title":{"rendered":"How Box Plot Works"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">How <strong>Box Plot<\/strong> Works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>Box Plot<\/strong> (or Box-and-Whisker Plot) is used to summarize the distribution of numerical data and detect outliers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Components of a Box Plot<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Component<\/th><th>Meaning<\/th><\/tr><\/thead><tbody><tr><td><strong>Minimum<\/strong><\/td><td>Smallest value (excluding outliers)<\/td><\/tr><tr><td><strong>Q1 (First Quartile)<\/strong><\/td><td>25% of the data lies below this value<\/td><\/tr><tr><td><strong>Median (Q2)<\/strong><\/td><td>Middle value (50th percentile)<\/td><\/tr><tr><td><strong>Q3 (Third Quartile)<\/strong><\/td><td>75% of the data lies below this value<\/td><\/tr><tr><td><strong>Maximum<\/strong><\/td><td>Largest value (excluding outliers)<\/td><\/tr><tr><td><strong>Outliers<\/strong><\/td><td>Unusually high or low values shown as separate points<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Dataset:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>10, 12, 15, 18, 20, 22, 25, 28, 30, 60<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Statistic<\/th><th>Value<\/th><\/tr><\/thead><tbody><tr><td>Minimum<\/td><td>10<\/td><\/tr><tr><td>Q1<\/td><td>15<\/td><\/tr><tr><td>Median<\/td><td>21<\/td><\/tr><tr><td>Q3<\/td><td>28<\/td><\/tr><tr><td>Maximum<\/td><td>30<\/td><\/tr><tr><td>Outlier<\/td><td>60<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">How it works<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Sort the data.<\/li>\n\n\n\n<li>Find the median.<\/li>\n\n\n\n<li>Find Q1 and Q3.<\/li>\n\n\n\n<li>Draw a box from Q1 to Q3.<\/li>\n\n\n\n<li>Draw a line inside the box for the median.<\/li>\n\n\n\n<li>Extend &#8220;whiskers&#8221; to the minimum and maximum non-outlier values.<\/li>\n\n\n\n<li>Plot any outliers as separate points.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Uses:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Detecting outliers<\/li>\n\n\n\n<li>Comparing distributions<\/li>\n\n\n\n<li>Understanding spread and central tendency<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h1 class=\"wp-block-heading\">How <strong>Heatmap<\/strong> Works<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>Heatmap<\/strong> displays values using colors. Larger or stronger values are shown with one color intensity, while smaller values are shown with another.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example: Correlation Matrix<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Variable<\/th><th>Age<\/th><th>Salary<\/th><th>Experience<\/th><\/tr><\/thead><tbody><tr><td><strong>Age<\/strong><\/td><td>1.00<\/td><td>0.72<\/td><td>0.81<\/td><\/tr><tr><td><strong>Salary<\/strong><\/td><td>0.72<\/td><td>1.00<\/td><td>0.89<\/td><\/tr><tr><td><strong>Experience<\/strong><\/td><td>0.81<\/td><td>0.89<\/td><td>1.00<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In a heatmap:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Dark\/strong color<\/strong> \u2192 High value or strong correlation<\/li>\n\n\n\n<li><strong>Light color<\/strong> \u2192 Low value or weak correlation<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">How it works<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Arrange data into a matrix (rows and columns).<\/li>\n\n\n\n<li>Each cell contains a numerical value.<\/li>\n\n\n\n<li>Seaborn maps each value to a color based on a color scale.<\/li>\n\n\n\n<li>Similar values appear with similar colors, making patterns easy to spot.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Real-life uses<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Field<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td>Data Science<\/td><td>Feature correlation analysis<\/td><\/tr><tr><td>Finance<\/td><td>Stock correlation matrix<\/td><\/tr><tr><td>Education<\/td><td>Student performance analysis<\/td><\/tr><tr><td>Healthcare<\/td><td>Disease occurrence by region<\/td><\/tr><tr><td>Business<\/td><td>Sales performance across products and months<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Difference between Box Plot and Heatmap<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Box Plot<\/th><th>Heatmap<\/th><\/tr><\/thead><tbody><tr><td>Shows distribution of one numerical variable<\/td><td>Shows values in a matrix using colors<\/td><\/tr><tr><td>Detects outliers<\/td><td>Detects patterns and correlations<\/td><\/tr><tr><td>Uses quartiles and median<\/td><td>Uses color intensity<\/td><\/tr><tr><td>Best for comparing distributions<\/td><td>Best for comparing many variables simultaneously<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>How Box Plot Works A Box Plot (or Box-and-Whisker Plot) is used to summarize the distribution of numerical data and detect outliers. Components of a Box Plot Component Meaning Minimum Smallest value (excluding outliers) Q1 (First Quartile) 25% of the data lies below this value Median (Q2) Middle value (50th percentile) Q3 (Third Quartile) 75% [&hellip;]<\/p>\n","protected":false},"author":73,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3469","post","type-post","status-publish","format-standard","hentry","category-support"],"_links":{"self":[{"href":"https:\/\/www.mhtechin.com\/support\/wp-json\/wp\/v2\/posts\/3469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mhtechin.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mhtechin.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mhtechin.com\/support\/wp-json\/wp\/v2\/users\/73"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mhtechin.com\/support\/wp-json\/wp\/v2\/comments?post=3469"}],"version-history":[{"count":1,"href":"https:\/\/www.mhtechin.com\/support\/wp-json\/wp\/v2\/posts\/3469\/revisions"}],"predecessor-version":[{"id":3470,"href":"https:\/\/www.mhtechin.com\/support\/wp-json\/wp\/v2\/posts\/3469\/revisions\/3470"}],"wp:attachment":[{"href":"https:\/\/www.mhtechin.com\/support\/wp-json\/wp\/v2\/media?parent=3469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mhtechin.com\/support\/wp-json\/wp\/v2\/categories?post=3469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mhtechin.com\/support\/wp-json\/wp\/v2\/tags?post=3469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}