SlideShare a Scribd company logo
1 of 13
Lecture 3
Topics: Outlier in Box Plot
Mean, Median and Spread data
SADAF SALEEM
Department of Computer Sciences
GIFT University, Pakistan
Course Title: Probability Theory
Course Code: MATH-313
Program: BS MATH
Semester: Spring 2023
Box-and-Whisker Plot
Outlier:
• Sometime in box and whisker plot we mark another point called outlier.
• In a box plot, an asterisk (*) identifies an outlier.
• An outlier is a value that is inconsistent with the rest of the data. It is
defined as a value that is more than 1.5 times the interquartile range
smaller than Q1 or larger than Q3.
Box-and-Whisker Plot
Example 1:
10.2, 14.1, 14.4. 14.4, 14.4, 14.5, 14.5, 14.6, 14.7, 14.7, 14.7, 14.9, 15.1, 15.9,
16.4
Mark any outlier if exist.
Solution:
Step 1: arrange data
Step 2: Find Q2, Q1, Q3
• Q2 = 14.6
• Q1 = 14.4
• Q3 = 14.9
Step 3: Find IQR (inter quartile range)
IQR = 14.9 – 14.4 = 0.5
Step 4: Calculated Lower limit and Upper limit
• Q1 – 1.5 ×IQR = 14.4 – 0.75 = 13.65
• Q3 + 1.5×IQR = 14.9 + 0.75 = 15.65.
Step 5: Mark outliers
Then the outliers are at:
10.2, 15.9, and 16.4
Box-and-Whisker Plot
Example 1:
21, 23, 24, 25, 29, 33, 49
Mark any outlier if exist.
Solution:
Step 1: arrange data
Step 2: Find Q2, Q1, Q3
• Q2 = 25
• Q1 = 23;
• Q3 = 33
Step 3: Find IQR (inter quartile range)
IQR = 33 – 23 = 10
Step 4: Calculated Lower limit and Upper limit
• Q1 – 1.5 ×IQR = 23 – 1.5×10 = 23 – 15 = 8
• Q3 + 1.5×IQR = 33 + 1.5×10 = 33 + 15 = 48
Step 5: Mark outliers
Box-and-Whisker Plot
Example 3:
Let the data range be 199, 201, 236, 269,271,278,283,291, 301, 303, and 341.
Mark any outlier if exist.
Solution:
• Q2 = 278
• Q1 = 236
• Q3 = 301
Step 3: Find IQR (inter quartile range)
IQR = 301-236=65
Step 4: Calculated Lower limit and Upper limit
• Q1 – 1.5 ×IQR = 138.5
• Q3 + 1.5×IQR =398.5
No outlier exist
Box-and-Whisker Plot
Example 3:
The box plot below shows the amount spent for books and supplies per year
by students at four-year public colleges.
a. Estimate the median amount spent.
b. Estimate the first and third quartiles for the amount spent.
c. Estimate the interquartile range for the amount spent.
d. Beyond what point is a value considered an outlier?
e. Identify any outliers and estimate their value.
Box-and-Whisker Plot
Solution:
Analysis of Data
Sample Mean
• Average value of the sample
• Influenced by extreme values
• Represented by 𝑥
• Formula:
• Example 1:
• 1.7, 2.2, 3.9, 3.11, 14.7
• 𝒙 =
1.7+2.2+3.9+3.11+14.7
5
• 𝒙 = 5.12
Sample Mean: Class Practice
Sample Median
• Central tendency of the Sample
• Don't influenced by extreme values
• Represented by 𝑥
• Formula:
• Arrange observation in increasing order
• Example 1: 1.7, 2.2, 3.9, 3.11, 14.7
• 1.7, 2.2, 3.11, 3.90, 14.7
• 𝒙 = 𝟑. 𝟏𝟏
Sample Median: Class Practice
SADAF SALEEM
Department of Computer Sciences
GIFT University, Pakistan

More Related Content

Similar to lecture 3 Slides.pptx

Box and whiskers power point
Box and whiskers power pointBox and whiskers power point
Box and whiskers power pointmanswag123
 
kmean_naivebayes.pptx
kmean_naivebayes.pptxkmean_naivebayes.pptx
kmean_naivebayes.pptxAryanhayaran
 
Measures of Relative Standing and Boxplots
Measures of Relative Standing and BoxplotsMeasures of Relative Standing and Boxplots
Measures of Relative Standing and BoxplotsLong Beach City College
 
lecture 1 Slides.pptx
lecture 1 Slides.pptxlecture 1 Slides.pptx
lecture 1 Slides.pptxSADAF53170
 
Utilization of Data: Introduction to Statistics
Utilization of Data: Introduction to StatisticsUtilization of Data: Introduction to Statistics
Utilization of Data: Introduction to StatisticsChristine Mejino
 
Making Grouped Frequency Distribution
Making Grouped Frequency DistributionMaking Grouped Frequency Distribution
Making Grouped Frequency DistributionAtiq Rehman
 
Box and-whisker-plots
Box and-whisker-plotsBox and-whisker-plots
Box and-whisker-plotsAjay Gupta
 
ap_stat_1.3.ppt
ap_stat_1.3.pptap_stat_1.3.ppt
ap_stat_1.3.pptfghgjd
 
Notes_456_PolygonClipping2_10 (1).pdf
Notes_456_PolygonClipping2_10 (1).pdfNotes_456_PolygonClipping2_10 (1).pdf
Notes_456_PolygonClipping2_10 (1).pdfPranavRawat14
 

Similar to lecture 3 Slides.pptx (11)

Box and whiskers power point
Box and whiskers power pointBox and whiskers power point
Box and whiskers power point
 
Ia.project
Ia.projectIa.project
Ia.project
 
kmean_naivebayes.pptx
kmean_naivebayes.pptxkmean_naivebayes.pptx
kmean_naivebayes.pptx
 
Measures of Relative Standing and Boxplots
Measures of Relative Standing and BoxplotsMeasures of Relative Standing and Boxplots
Measures of Relative Standing and Boxplots
 
Outliers introductory stat
Outliers introductory statOutliers introductory stat
Outliers introductory stat
 
lecture 1 Slides.pptx
lecture 1 Slides.pptxlecture 1 Slides.pptx
lecture 1 Slides.pptx
 
Utilization of Data: Introduction to Statistics
Utilization of Data: Introduction to StatisticsUtilization of Data: Introduction to Statistics
Utilization of Data: Introduction to Statistics
 
Making Grouped Frequency Distribution
Making Grouped Frequency DistributionMaking Grouped Frequency Distribution
Making Grouped Frequency Distribution
 
Box and-whisker-plots
Box and-whisker-plotsBox and-whisker-plots
Box and-whisker-plots
 
ap_stat_1.3.ppt
ap_stat_1.3.pptap_stat_1.3.ppt
ap_stat_1.3.ppt
 
Notes_456_PolygonClipping2_10 (1).pdf
Notes_456_PolygonClipping2_10 (1).pdfNotes_456_PolygonClipping2_10 (1).pdf
Notes_456_PolygonClipping2_10 (1).pdf
 

Recently uploaded

X-rays from a Central “Exhaust Vent” of the Galactic Center Chimney
X-rays from a Central “Exhaust Vent” of the Galactic Center ChimneyX-rays from a Central “Exhaust Vent” of the Galactic Center Chimney
X-rays from a Central “Exhaust Vent” of the Galactic Center ChimneySérgio Sacani
 
Technical english Technical english.pptx
Technical english Technical english.pptxTechnical english Technical english.pptx
Technical english Technical english.pptxyoussefboujtat3
 
GBSN - Biochemistry (Unit 3) Metabolism
GBSN - Biochemistry (Unit 3) MetabolismGBSN - Biochemistry (Unit 3) Metabolism
GBSN - Biochemistry (Unit 3) MetabolismAreesha Ahmad
 
MODERN PHYSICS_REPORTING_QUANTA_.....pdf
MODERN PHYSICS_REPORTING_QUANTA_.....pdfMODERN PHYSICS_REPORTING_QUANTA_.....pdf
MODERN PHYSICS_REPORTING_QUANTA_.....pdfRevenJadePalma
 
Costs to heap leach gold ore tailings in Karamoja region of Uganda
Costs to heap leach gold ore tailings in Karamoja region of UgandaCosts to heap leach gold ore tailings in Karamoja region of Uganda
Costs to heap leach gold ore tailings in Karamoja region of UgandaTimothyOkuna
 
Fun for mover student's book- English book for teaching.pdf
Fun for mover student's book- English book for teaching.pdfFun for mover student's book- English book for teaching.pdf
Fun for mover student's book- English book for teaching.pdfhoangquan21999
 
A Scientific PowerPoint on Albert Einstein
A Scientific PowerPoint on Albert EinsteinA Scientific PowerPoint on Albert Einstein
A Scientific PowerPoint on Albert Einsteinxgamestudios8
 
Efficient spin-up of Earth System Models usingsequence acceleration
Efficient spin-up of Earth System Models usingsequence accelerationEfficient spin-up of Earth System Models usingsequence acceleration
Efficient spin-up of Earth System Models usingsequence accelerationSérgio Sacani
 
Heads-Up Multitasker: CHI 2024 Presentation.pdf
Heads-Up Multitasker: CHI 2024 Presentation.pdfHeads-Up Multitasker: CHI 2024 Presentation.pdf
Heads-Up Multitasker: CHI 2024 Presentation.pdfbyp19971001
 
Harry Coumnas Thinks That Human Teleportation is Possible in Quantum Mechanic...
Harry Coumnas Thinks That Human Teleportation is Possible in Quantum Mechanic...Harry Coumnas Thinks That Human Teleportation is Possible in Quantum Mechanic...
Harry Coumnas Thinks That Human Teleportation is Possible in Quantum Mechanic...kevin8smith
 
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 RpWASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 RpSérgio Sacani
 
Soil and Water Conservation Engineering (SWCE) is a specialized field of stud...
Soil and Water Conservation Engineering (SWCE) is a specialized field of stud...Soil and Water Conservation Engineering (SWCE) is a specialized field of stud...
Soil and Water Conservation Engineering (SWCE) is a specialized field of stud...yogeshlabana357357
 
Quantifying Artificial Intelligence and What Comes Next!
Quantifying Artificial Intelligence and What Comes Next!Quantifying Artificial Intelligence and What Comes Next!
Quantifying Artificial Intelligence and What Comes Next!University of Hertfordshire
 
Biochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptx
Biochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptxBiochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptx
Biochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptxjayabahari688
 
Continuum emission from within the plunging region of black hole discs
Continuum emission from within the plunging region of black hole discsContinuum emission from within the plunging region of black hole discs
Continuum emission from within the plunging region of black hole discsSérgio Sacani
 
GBSN - Microbiology (Unit 4) Concept of Asepsis
GBSN - Microbiology (Unit 4) Concept of AsepsisGBSN - Microbiology (Unit 4) Concept of Asepsis
GBSN - Microbiology (Unit 4) Concept of AsepsisAreesha Ahmad
 
Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...
Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...
Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...Ansari Aashif Raza Mohd Imtiyaz
 
EU START PROJECT. START-Newsletter_Issue_4.pdf
EU START PROJECT. START-Newsletter_Issue_4.pdfEU START PROJECT. START-Newsletter_Issue_4.pdf
EU START PROJECT. START-Newsletter_Issue_4.pdfStart Project
 
FORENSIC CHEMISTRY ARSON INVESTIGATION.pdf
FORENSIC CHEMISTRY ARSON INVESTIGATION.pdfFORENSIC CHEMISTRY ARSON INVESTIGATION.pdf
FORENSIC CHEMISTRY ARSON INVESTIGATION.pdfSuchita Rawat
 

Recently uploaded (20)

X-rays from a Central “Exhaust Vent” of the Galactic Center Chimney
X-rays from a Central “Exhaust Vent” of the Galactic Center ChimneyX-rays from a Central “Exhaust Vent” of the Galactic Center Chimney
X-rays from a Central “Exhaust Vent” of the Galactic Center Chimney
 
Technical english Technical english.pptx
Technical english Technical english.pptxTechnical english Technical english.pptx
Technical english Technical english.pptx
 
GBSN - Biochemistry (Unit 3) Metabolism
GBSN - Biochemistry (Unit 3) MetabolismGBSN - Biochemistry (Unit 3) Metabolism
GBSN - Biochemistry (Unit 3) Metabolism
 
MODERN PHYSICS_REPORTING_QUANTA_.....pdf
MODERN PHYSICS_REPORTING_QUANTA_.....pdfMODERN PHYSICS_REPORTING_QUANTA_.....pdf
MODERN PHYSICS_REPORTING_QUANTA_.....pdf
 
Costs to heap leach gold ore tailings in Karamoja region of Uganda
Costs to heap leach gold ore tailings in Karamoja region of UgandaCosts to heap leach gold ore tailings in Karamoja region of Uganda
Costs to heap leach gold ore tailings in Karamoja region of Uganda
 
Fun for mover student's book- English book for teaching.pdf
Fun for mover student's book- English book for teaching.pdfFun for mover student's book- English book for teaching.pdf
Fun for mover student's book- English book for teaching.pdf
 
A Scientific PowerPoint on Albert Einstein
A Scientific PowerPoint on Albert EinsteinA Scientific PowerPoint on Albert Einstein
A Scientific PowerPoint on Albert Einstein
 
Efficient spin-up of Earth System Models usingsequence acceleration
Efficient spin-up of Earth System Models usingsequence accelerationEfficient spin-up of Earth System Models usingsequence acceleration
Efficient spin-up of Earth System Models usingsequence acceleration
 
Heads-Up Multitasker: CHI 2024 Presentation.pdf
Heads-Up Multitasker: CHI 2024 Presentation.pdfHeads-Up Multitasker: CHI 2024 Presentation.pdf
Heads-Up Multitasker: CHI 2024 Presentation.pdf
 
Harry Coumnas Thinks That Human Teleportation is Possible in Quantum Mechanic...
Harry Coumnas Thinks That Human Teleportation is Possible in Quantum Mechanic...Harry Coumnas Thinks That Human Teleportation is Possible in Quantum Mechanic...
Harry Coumnas Thinks That Human Teleportation is Possible in Quantum Mechanic...
 
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 RpWASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
 
Soil and Water Conservation Engineering (SWCE) is a specialized field of stud...
Soil and Water Conservation Engineering (SWCE) is a specialized field of stud...Soil and Water Conservation Engineering (SWCE) is a specialized field of stud...
Soil and Water Conservation Engineering (SWCE) is a specialized field of stud...
 
Quantifying Artificial Intelligence and What Comes Next!
Quantifying Artificial Intelligence and What Comes Next!Quantifying Artificial Intelligence and What Comes Next!
Quantifying Artificial Intelligence and What Comes Next!
 
Chemistry Data Delivery from the US-EPA Center for Computational Toxicology a...
Chemistry Data Delivery from the US-EPA Center for Computational Toxicology a...Chemistry Data Delivery from the US-EPA Center for Computational Toxicology a...
Chemistry Data Delivery from the US-EPA Center for Computational Toxicology a...
 
Biochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptx
Biochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptxBiochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptx
Biochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptx
 
Continuum emission from within the plunging region of black hole discs
Continuum emission from within the plunging region of black hole discsContinuum emission from within the plunging region of black hole discs
Continuum emission from within the plunging region of black hole discs
 
GBSN - Microbiology (Unit 4) Concept of Asepsis
GBSN - Microbiology (Unit 4) Concept of AsepsisGBSN - Microbiology (Unit 4) Concept of Asepsis
GBSN - Microbiology (Unit 4) Concept of Asepsis
 
Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...
Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...
Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...
 
EU START PROJECT. START-Newsletter_Issue_4.pdf
EU START PROJECT. START-Newsletter_Issue_4.pdfEU START PROJECT. START-Newsletter_Issue_4.pdf
EU START PROJECT. START-Newsletter_Issue_4.pdf
 
FORENSIC CHEMISTRY ARSON INVESTIGATION.pdf
FORENSIC CHEMISTRY ARSON INVESTIGATION.pdfFORENSIC CHEMISTRY ARSON INVESTIGATION.pdf
FORENSIC CHEMISTRY ARSON INVESTIGATION.pdf
 

lecture 3 Slides.pptx

  • 1. Lecture 3 Topics: Outlier in Box Plot Mean, Median and Spread data SADAF SALEEM Department of Computer Sciences GIFT University, Pakistan Course Title: Probability Theory Course Code: MATH-313 Program: BS MATH Semester: Spring 2023
  • 2. Box-and-Whisker Plot Outlier: • Sometime in box and whisker plot we mark another point called outlier. • In a box plot, an asterisk (*) identifies an outlier. • An outlier is a value that is inconsistent with the rest of the data. It is defined as a value that is more than 1.5 times the interquartile range smaller than Q1 or larger than Q3.
  • 3. Box-and-Whisker Plot Example 1: 10.2, 14.1, 14.4. 14.4, 14.4, 14.5, 14.5, 14.6, 14.7, 14.7, 14.7, 14.9, 15.1, 15.9, 16.4 Mark any outlier if exist. Solution: Step 1: arrange data Step 2: Find Q2, Q1, Q3 • Q2 = 14.6 • Q1 = 14.4 • Q3 = 14.9 Step 3: Find IQR (inter quartile range) IQR = 14.9 – 14.4 = 0.5 Step 4: Calculated Lower limit and Upper limit • Q1 – 1.5 ×IQR = 14.4 – 0.75 = 13.65 • Q3 + 1.5×IQR = 14.9 + 0.75 = 15.65. Step 5: Mark outliers Then the outliers are at: 10.2, 15.9, and 16.4
  • 4. Box-and-Whisker Plot Example 1: 21, 23, 24, 25, 29, 33, 49 Mark any outlier if exist. Solution: Step 1: arrange data Step 2: Find Q2, Q1, Q3 • Q2 = 25 • Q1 = 23; • Q3 = 33 Step 3: Find IQR (inter quartile range) IQR = 33 – 23 = 10 Step 4: Calculated Lower limit and Upper limit • Q1 – 1.5 ×IQR = 23 – 1.5×10 = 23 – 15 = 8 • Q3 + 1.5×IQR = 33 + 1.5×10 = 33 + 15 = 48 Step 5: Mark outliers
  • 5. Box-and-Whisker Plot Example 3: Let the data range be 199, 201, 236, 269,271,278,283,291, 301, 303, and 341. Mark any outlier if exist. Solution: • Q2 = 278 • Q1 = 236 • Q3 = 301 Step 3: Find IQR (inter quartile range) IQR = 301-236=65 Step 4: Calculated Lower limit and Upper limit • Q1 – 1.5 ×IQR = 138.5 • Q3 + 1.5×IQR =398.5 No outlier exist
  • 6. Box-and-Whisker Plot Example 3: The box plot below shows the amount spent for books and supplies per year by students at four-year public colleges. a. Estimate the median amount spent. b. Estimate the first and third quartiles for the amount spent. c. Estimate the interquartile range for the amount spent. d. Beyond what point is a value considered an outlier? e. Identify any outliers and estimate their value.
  • 9. Sample Mean • Average value of the sample • Influenced by extreme values • Represented by 𝑥 • Formula: • Example 1: • 1.7, 2.2, 3.9, 3.11, 14.7 • 𝒙 = 1.7+2.2+3.9+3.11+14.7 5 • 𝒙 = 5.12
  • 10. Sample Mean: Class Practice
  • 11. Sample Median • Central tendency of the Sample • Don't influenced by extreme values • Represented by 𝑥 • Formula: • Arrange observation in increasing order • Example 1: 1.7, 2.2, 3.9, 3.11, 14.7 • 1.7, 2.2, 3.11, 3.90, 14.7 • 𝒙 = 𝟑. 𝟏𝟏
  • 13. SADAF SALEEM Department of Computer Sciences GIFT University, Pakistan