SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Data Summary Metrics
Mean, Median, Mode and More
• Populations & Samples, Parameters & Statistics
• Summarizing the Data with a Metric
• Discrepancy and Error
• Estimating the Summary Metrics: Minimizing the Error
• Arithmetic Mean, Median, and Mode
• Geometric Mean, Harmonic Mean and Mid-Range
• Breakdown Points of the Arithmetic Mean and the Median
MandarGadre,July2013.
-- Mandar Gadre
(July 2013)
MandarGadre,July2013.
Population and Sample
The Whole Population
A “Sample” Dataset
Parameter: is a certain property of the population as a whole.
e.g. the median age of all Indian citizens.
Statistic: is an estimate of that property, drawn from the sample dataset.
e.g. estimated median, calculated from the ages of, say 1 million citizens.
MandarGadre,July2013.
Summarizing the Data
• If a certain property of every individual in the population has
only one value, no need to summarize!
• For non-identical values of the property (almost everywhere in
the real world), we look for a “Summary Statistic” such as a
mean.
• But how do we choose the summary statistic, S?
Xi, i = 1 to N
S
MandarGadre,July2013.
Discrepancy
• Discrepancy ei is the “deviation” of an individual data-point xi
from this “Summary Statistic”.
We take s as the candidate summary statistic.
You could define your own way of calculating discrepancy!
• Three common ways –
1. Comparison
Is the individual reading same as the candidate?
ei = 1, xi ≠ s
ei = 0, xi = s
2. Absolute difference from the candidate
ei = |xi – s|
3. Square of the difference from the candidate
ei = (xi – s)2
MandarGadre,July2013.
Error
• Error E is the aggregate of individual discrepancies ei of all the
individual data-points xi from the Candidate Summary Statistic s.
• E for the three types of discrepancies would be –
1. Comparison with the Candidate
E = ∑i ei, where
ei = 1, xi ≠ s; ei = 0, xi = s
2. Absolute difference from the Candidate
E = ∑i |xi – s|
3. Square of the difference from the Candidate
E = ∑i (xi – s)2
MandarGadre,July2013.
Calculating S
• We define S, Summary Statistic, as the value of s for which E is
minimized.
• We have given special names for the three types of Summary Statistics
arising from the three types of discrepancies:
Arising from Comparison:
S, such that the error
E = ∑ i ei, (where ei = 1, xi ≠ s; ei = 0, xi = s) is minimized.
It turns out that the value of s that occurs the most frequently will
minimize this error. There may be one or more such values.
We call this the Mode.
e.g. if we want to sell single size men’s t-shirts, we can get them made
with size equal to the mode.
MandarGadre,July2013.
Arising from Absolute Difference:
S, such that the error E = ∑ i |xi – s| is minimized.
This is similar to the absolute value function and the derivative is the
signum function!
To find the minimum, we make the derivative (signum function) zero –
which happens at the middle reading when all the data-points are
arranged in increasing order.
We call this the Median.
If we want to summarize income-per-household in a huge country like
India (data-set with severe outliers which do not require higher
weightage) we will use the median.
MandarGadre,July2013.
Arising from Square of Absolute Difference:
S, such that the error E = ∑i (xi – s)2 is minimized.
Making the derivative zero gives us –
∑i 2(xi – S) = 0 or N*S = ∑i xi or S = (∑i xi) / N
We call this the Arithmetic Mean.
If we want to summarize the height of children in a kindergarten class,
we may use the mean: the data is normally distributed and most likely
there aren’t any extreme outliers (though in such cases the median
and the mode are not any worse summary statistics to use).
+++
Mode is used while capturing categorical/nominal data.
Mean is used to capture the effect of extreme outliers.
Median is used for datasets with extreme outliers which need not be
given any higher weightage.
The outliers sway the arithmetic mean much more than they sway the
median, because of the square-of-the-distance.
MandarGadre,July2013.
Other Summary Statistics
• Geometric Mean:
Defined only for dataset with all positive numbers, it is the Nth
root of the product of all N data-points.
G = ( ∏ (xi) ) 1/N
It is used while summarizing/aggregating data with different
categories and scales involved. E.g. rating companies on various
metrics taken together.
Or where the data-points show compounding behavior e.g.
summarizing performance of a stock over the past N years.
MandarGadre,July2013.
Other Summary Statistics
• Harmonic Mean:
Defined only for dataset with all non-zero numbers, it is the
reciprocal of the arithmetic mean of reciprocals of xi.
H = 1 / (1/N(∑i (1/xi)) )
It is used while summarizing rates. e.g. the average speed of
aircraft between numerous Mumbai-London trips; or the
average rate (in ml/min) at which a blood donor fills a bag over
multiple visits.
MandarGadre,July2013.
Other Summary Statistics
• Mid-Range
Defined as the arithmetic mean of the maximum and minimum
data-points
Mid-Range = ½ (xmax + xmin)
This is one of the least efficient (since it ignores all the data-
points except for min and max) and the least robust (since it
only depends on the extreme data-points and will be swayed if
they are extreme outliers) statistics.
It is used in process control. e.g. where the process is tightly
controlled and the outliers are already handled/trimmed out.
MandarGadre,July2013.
Robust Statistics
• Robust Statistics are those summary statistics which are insensitive to
which sample we choose from the population; or to the presence of
contaminated/bad/incorrect data in that sample. ‘Breakdown Point’
represents the degree of robustness of a statistic.
• Breakdown Point is the largest proportion of contaminated data-
points (e.g. an arbitrarily large data-point) a statistic can handle
before yielding an absurd result (e.g. an arbitrarily large statistic).
• Since the arithmetic mean depends on all the values and is swayed by
changing even one value among N, its Breakdown Point is 0.
• The median is the strongest statistic, with its Breakdown Point at 50%.
(If more than 50% of the data is contaminated, a statistic cannot be defined
anyway since there is no way to distinguish between the actual underlying
distribution and the contaminated one.)

Weitere ähnliche Inhalte

Was ist angesagt?

Scatter plot- Complete
Scatter plot- CompleteScatter plot- Complete
Scatter plot- CompleteIrfan Yaqoob
 
Biology statistics made_simple_using_excel
Biology statistics made_simple_using_excelBiology statistics made_simple_using_excel
Biology statistics made_simple_using_excelharamaya university
 
Introduction concepts of Statistics
Introduction concepts of StatisticsIntroduction concepts of Statistics
Introduction concepts of StatisticsSaurabh Patni
 
Basic understanding of Plots and diagrams used in data interpretation
 Basic understanding of Plots and diagrams used in data interpretation   Basic understanding of Plots and diagrams used in data interpretation
Basic understanding of Plots and diagrams used in data interpretation Subedi Suraj
 
Introduction to statistics by Rehman Ali and its group
Introduction to statistics by Rehman Ali and its groupIntroduction to statistics by Rehman Ali and its group
Introduction to statistics by Rehman Ali and its grouprehman ali
 
Macromolecules
MacromoleculesMacromolecules
Macromoleculesganctil
 
Introduction to statistics for social sciences 1
Introduction to statistics for social sciences 1Introduction to statistics for social sciences 1
Introduction to statistics for social sciences 1Minal Jadeja
 
Introduction to Business Statistics
Introduction to Business StatisticsIntroduction to Business Statistics
Introduction to Business StatisticsMegha Mishra
 
Data presentation and interpretation I Quantitative Research
Data presentation and interpretation I Quantitative ResearchData presentation and interpretation I Quantitative Research
Data presentation and interpretation I Quantitative ResearchJimnaira Abanto
 
Visualizations in Exploratory Data Analysis
Visualizations in Exploratory Data AnalysisVisualizations in Exploratory Data Analysis
Visualizations in Exploratory Data AnalysisOluwatobiAdefami
 
Ses 1 basic fundamentals of mathematics and statistics
Ses 1 basic fundamentals of mathematics and statisticsSes 1 basic fundamentals of mathematics and statistics
Ses 1 basic fundamentals of mathematics and statisticsmetnashikiom2011-13
 
Data Presentation
Data PresentationData Presentation
Data Presentationcheergalsal
 
R for statistics session 1
R for statistics session 1R for statistics session 1
R for statistics session 1Ashwini Mathur
 
A power point presentation on statistics
A power point presentation on statisticsA power point presentation on statistics
A power point presentation on statisticsKriace Ward
 
Business statistics what and why
Business statistics what and whyBusiness statistics what and why
Business statistics what and whydibasharmin
 

Was ist angesagt? (20)

Akhiesh maurya
Akhiesh mauryaAkhiesh maurya
Akhiesh maurya
 
Scatter plot- Complete
Scatter plot- CompleteScatter plot- Complete
Scatter plot- Complete
 
Basic statisctis -Anandh Shankar
Basic statisctis -Anandh ShankarBasic statisctis -Anandh Shankar
Basic statisctis -Anandh Shankar
 
Biology statistics made_simple_using_excel
Biology statistics made_simple_using_excelBiology statistics made_simple_using_excel
Biology statistics made_simple_using_excel
 
Introduction concepts of Statistics
Introduction concepts of StatisticsIntroduction concepts of Statistics
Introduction concepts of Statistics
 
Basic understanding of Plots and diagrams used in data interpretation
 Basic understanding of Plots and diagrams used in data interpretation   Basic understanding of Plots and diagrams used in data interpretation
Basic understanding of Plots and diagrams used in data interpretation
 
Introduction to statistics by Rehman Ali and its group
Introduction to statistics by Rehman Ali and its groupIntroduction to statistics by Rehman Ali and its group
Introduction to statistics by Rehman Ali and its group
 
Macromolecules
MacromoleculesMacromolecules
Macromolecules
 
Introduction to statistics for social sciences 1
Introduction to statistics for social sciences 1Introduction to statistics for social sciences 1
Introduction to statistics for social sciences 1
 
Introduction to Business Statistics
Introduction to Business StatisticsIntroduction to Business Statistics
Introduction to Business Statistics
 
Data presentation and interpretation I Quantitative Research
Data presentation and interpretation I Quantitative ResearchData presentation and interpretation I Quantitative Research
Data presentation and interpretation I Quantitative Research
 
Bba 2001
Bba 2001Bba 2001
Bba 2001
 
Visualizations in Exploratory Data Analysis
Visualizations in Exploratory Data AnalysisVisualizations in Exploratory Data Analysis
Visualizations in Exploratory Data Analysis
 
Ses 1 basic fundamentals of mathematics and statistics
Ses 1 basic fundamentals of mathematics and statisticsSes 1 basic fundamentals of mathematics and statistics
Ses 1 basic fundamentals of mathematics and statistics
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
Data Presentation
Data PresentationData Presentation
Data Presentation
 
R for statistics session 1
R for statistics session 1R for statistics session 1
R for statistics session 1
 
A power point presentation on statistics
A power point presentation on statisticsA power point presentation on statistics
A power point presentation on statistics
 
Introduction to statistics
Introduction to statisticsIntroduction to statistics
Introduction to statistics
 
Business statistics what and why
Business statistics what and whyBusiness statistics what and why
Business statistics what and why
 

Ähnlich wie Data summary metrics

Measure of Central Tendency
Measure of Central TendencyMeasure of Central Tendency
Measure of Central TendencyBasudev Sharma
 
Statistics XII Math Project.pdf
Statistics XII Math Project.pdfStatistics XII Math Project.pdf
Statistics XII Math Project.pdfzakafu9
 
Statistics digital text book
Statistics digital text bookStatistics digital text book
Statistics digital text bookdeepuplr
 
Topic-1-Review-of-Basic-Statistics.pptx
Topic-1-Review-of-Basic-Statistics.pptxTopic-1-Review-of-Basic-Statistics.pptx
Topic-1-Review-of-Basic-Statistics.pptxJohnLester81
 
Theory of estimation
Theory of estimationTheory of estimation
Theory of estimationTech_MX
 
Engineering Statistics
Engineering Statistics Engineering Statistics
Engineering Statistics Bahzad5
 
Ders 1 mean mod media st dev.pptx
Ders 1 mean mod media st dev.pptxDers 1 mean mod media st dev.pptx
Ders 1 mean mod media st dev.pptxErgin Akalpler
 
1.0 Descriptive statistics.pdf
1.0 Descriptive statistics.pdf1.0 Descriptive statistics.pdf
1.0 Descriptive statistics.pdfthaersyam
 
Topic-1-Review-of-Basic-Statistics.pptx
Topic-1-Review-of-Basic-Statistics.pptxTopic-1-Review-of-Basic-Statistics.pptx
Topic-1-Review-of-Basic-Statistics.pptxPreciousAntonetteOrp
 
Statistics in research
Statistics in researchStatistics in research
Statistics in researchBalaji P
 
Topic 2 Measures of Central Tendency.pptx
Topic 2   Measures of Central Tendency.pptxTopic 2   Measures of Central Tendency.pptx
Topic 2 Measures of Central Tendency.pptxCallplanetsDeveloper
 
Unit 5 8614.pptx A_Movie_Review_Pursuit_Of_Happiness
Unit 5 8614.pptx A_Movie_Review_Pursuit_Of_HappinessUnit 5 8614.pptx A_Movie_Review_Pursuit_Of_Happiness
Unit 5 8614.pptx A_Movie_Review_Pursuit_Of_Happinessourbusiness0014
 
Advanced business mathematics and statistics for entrepreneurs
Advanced business mathematics and statistics for entrepreneursAdvanced business mathematics and statistics for entrepreneurs
Advanced business mathematics and statistics for entrepreneursDr. Trilok Kumar Jain
 
Basics of Educational Statistics (Descriptive statistics)
Basics of Educational Statistics (Descriptive statistics)Basics of Educational Statistics (Descriptive statistics)
Basics of Educational Statistics (Descriptive statistics)HennaAnsari
 
initial postWhat are the characteristics, uses, advantages, and di.docx
initial postWhat are the characteristics, uses, advantages, and di.docxinitial postWhat are the characteristics, uses, advantages, and di.docx
initial postWhat are the characteristics, uses, advantages, and di.docxJeniceStuckeyoo
 
Statistics in nursing research
Statistics in nursing researchStatistics in nursing research
Statistics in nursing researchNursing Path
 

Ähnlich wie Data summary metrics (20)

Measure of Central Tendency
Measure of Central TendencyMeasure of Central Tendency
Measure of Central Tendency
 
Statistics XII Math Project.pdf
Statistics XII Math Project.pdfStatistics XII Math Project.pdf
Statistics XII Math Project.pdf
 
STATISTICS.pptx
STATISTICS.pptxSTATISTICS.pptx
STATISTICS.pptx
 
Statistics digital text book
Statistics digital text bookStatistics digital text book
Statistics digital text book
 
DATA COLLECTION IN RESEARCH
DATA COLLECTION IN RESEARCHDATA COLLECTION IN RESEARCH
DATA COLLECTION IN RESEARCH
 
Unit 1 Introduction
Unit 1 IntroductionUnit 1 Introduction
Unit 1 Introduction
 
Topic-1-Review-of-Basic-Statistics.pptx
Topic-1-Review-of-Basic-Statistics.pptxTopic-1-Review-of-Basic-Statistics.pptx
Topic-1-Review-of-Basic-Statistics.pptx
 
Theory of estimation
Theory of estimationTheory of estimation
Theory of estimation
 
Engineering Statistics
Engineering Statistics Engineering Statistics
Engineering Statistics
 
Ders 1 mean mod media st dev.pptx
Ders 1 mean mod media st dev.pptxDers 1 mean mod media st dev.pptx
Ders 1 mean mod media st dev.pptx
 
1.0 Descriptive statistics.pdf
1.0 Descriptive statistics.pdf1.0 Descriptive statistics.pdf
1.0 Descriptive statistics.pdf
 
Topic-1-Review-of-Basic-Statistics.pptx
Topic-1-Review-of-Basic-Statistics.pptxTopic-1-Review-of-Basic-Statistics.pptx
Topic-1-Review-of-Basic-Statistics.pptx
 
Descriptive statistics i
Descriptive statistics iDescriptive statistics i
Descriptive statistics i
 
Statistics in research
Statistics in researchStatistics in research
Statistics in research
 
Topic 2 Measures of Central Tendency.pptx
Topic 2   Measures of Central Tendency.pptxTopic 2   Measures of Central Tendency.pptx
Topic 2 Measures of Central Tendency.pptx
 
Unit 5 8614.pptx A_Movie_Review_Pursuit_Of_Happiness
Unit 5 8614.pptx A_Movie_Review_Pursuit_Of_HappinessUnit 5 8614.pptx A_Movie_Review_Pursuit_Of_Happiness
Unit 5 8614.pptx A_Movie_Review_Pursuit_Of_Happiness
 
Advanced business mathematics and statistics for entrepreneurs
Advanced business mathematics and statistics for entrepreneursAdvanced business mathematics and statistics for entrepreneurs
Advanced business mathematics and statistics for entrepreneurs
 
Basics of Educational Statistics (Descriptive statistics)
Basics of Educational Statistics (Descriptive statistics)Basics of Educational Statistics (Descriptive statistics)
Basics of Educational Statistics (Descriptive statistics)
 
initial postWhat are the characteristics, uses, advantages, and di.docx
initial postWhat are the characteristics, uses, advantages, and di.docxinitial postWhat are the characteristics, uses, advantages, and di.docx
initial postWhat are the characteristics, uses, advantages, and di.docx
 
Statistics in nursing research
Statistics in nursing researchStatistics in nursing research
Statistics in nursing research
 

Kürzlich hochgeladen

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 

Kürzlich hochgeladen (20)

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 

Data summary metrics

  • 1. Data Summary Metrics Mean, Median, Mode and More • Populations & Samples, Parameters & Statistics • Summarizing the Data with a Metric • Discrepancy and Error • Estimating the Summary Metrics: Minimizing the Error • Arithmetic Mean, Median, and Mode • Geometric Mean, Harmonic Mean and Mid-Range • Breakdown Points of the Arithmetic Mean and the Median MandarGadre,July2013. -- Mandar Gadre (July 2013)
  • 2. MandarGadre,July2013. Population and Sample The Whole Population A “Sample” Dataset Parameter: is a certain property of the population as a whole. e.g. the median age of all Indian citizens. Statistic: is an estimate of that property, drawn from the sample dataset. e.g. estimated median, calculated from the ages of, say 1 million citizens.
  • 3. MandarGadre,July2013. Summarizing the Data • If a certain property of every individual in the population has only one value, no need to summarize! • For non-identical values of the property (almost everywhere in the real world), we look for a “Summary Statistic” such as a mean. • But how do we choose the summary statistic, S? Xi, i = 1 to N S
  • 4. MandarGadre,July2013. Discrepancy • Discrepancy ei is the “deviation” of an individual data-point xi from this “Summary Statistic”. We take s as the candidate summary statistic. You could define your own way of calculating discrepancy! • Three common ways – 1. Comparison Is the individual reading same as the candidate? ei = 1, xi ≠ s ei = 0, xi = s 2. Absolute difference from the candidate ei = |xi – s| 3. Square of the difference from the candidate ei = (xi – s)2
  • 5. MandarGadre,July2013. Error • Error E is the aggregate of individual discrepancies ei of all the individual data-points xi from the Candidate Summary Statistic s. • E for the three types of discrepancies would be – 1. Comparison with the Candidate E = ∑i ei, where ei = 1, xi ≠ s; ei = 0, xi = s 2. Absolute difference from the Candidate E = ∑i |xi – s| 3. Square of the difference from the Candidate E = ∑i (xi – s)2
  • 6. MandarGadre,July2013. Calculating S • We define S, Summary Statistic, as the value of s for which E is minimized. • We have given special names for the three types of Summary Statistics arising from the three types of discrepancies: Arising from Comparison: S, such that the error E = ∑ i ei, (where ei = 1, xi ≠ s; ei = 0, xi = s) is minimized. It turns out that the value of s that occurs the most frequently will minimize this error. There may be one or more such values. We call this the Mode. e.g. if we want to sell single size men’s t-shirts, we can get them made with size equal to the mode.
  • 7. MandarGadre,July2013. Arising from Absolute Difference: S, such that the error E = ∑ i |xi – s| is minimized. This is similar to the absolute value function and the derivative is the signum function! To find the minimum, we make the derivative (signum function) zero – which happens at the middle reading when all the data-points are arranged in increasing order. We call this the Median. If we want to summarize income-per-household in a huge country like India (data-set with severe outliers which do not require higher weightage) we will use the median.
  • 8. MandarGadre,July2013. Arising from Square of Absolute Difference: S, such that the error E = ∑i (xi – s)2 is minimized. Making the derivative zero gives us – ∑i 2(xi – S) = 0 or N*S = ∑i xi or S = (∑i xi) / N We call this the Arithmetic Mean. If we want to summarize the height of children in a kindergarten class, we may use the mean: the data is normally distributed and most likely there aren’t any extreme outliers (though in such cases the median and the mode are not any worse summary statistics to use). +++ Mode is used while capturing categorical/nominal data. Mean is used to capture the effect of extreme outliers. Median is used for datasets with extreme outliers which need not be given any higher weightage. The outliers sway the arithmetic mean much more than they sway the median, because of the square-of-the-distance.
  • 9. MandarGadre,July2013. Other Summary Statistics • Geometric Mean: Defined only for dataset with all positive numbers, it is the Nth root of the product of all N data-points. G = ( ∏ (xi) ) 1/N It is used while summarizing/aggregating data with different categories and scales involved. E.g. rating companies on various metrics taken together. Or where the data-points show compounding behavior e.g. summarizing performance of a stock over the past N years.
  • 10. MandarGadre,July2013. Other Summary Statistics • Harmonic Mean: Defined only for dataset with all non-zero numbers, it is the reciprocal of the arithmetic mean of reciprocals of xi. H = 1 / (1/N(∑i (1/xi)) ) It is used while summarizing rates. e.g. the average speed of aircraft between numerous Mumbai-London trips; or the average rate (in ml/min) at which a blood donor fills a bag over multiple visits.
  • 11. MandarGadre,July2013. Other Summary Statistics • Mid-Range Defined as the arithmetic mean of the maximum and minimum data-points Mid-Range = ½ (xmax + xmin) This is one of the least efficient (since it ignores all the data- points except for min and max) and the least robust (since it only depends on the extreme data-points and will be swayed if they are extreme outliers) statistics. It is used in process control. e.g. where the process is tightly controlled and the outliers are already handled/trimmed out.
  • 12. MandarGadre,July2013. Robust Statistics • Robust Statistics are those summary statistics which are insensitive to which sample we choose from the population; or to the presence of contaminated/bad/incorrect data in that sample. ‘Breakdown Point’ represents the degree of robustness of a statistic. • Breakdown Point is the largest proportion of contaminated data- points (e.g. an arbitrarily large data-point) a statistic can handle before yielding an absurd result (e.g. an arbitrarily large statistic). • Since the arithmetic mean depends on all the values and is swayed by changing even one value among N, its Breakdown Point is 0. • The median is the strongest statistic, with its Breakdown Point at 50%. (If more than 50% of the data is contaminated, a statistic cannot be defined anyway since there is no way to distinguish between the actual underlying distribution and the contaminated one.)