Presentation is loading. Please wait.

Presentation is loading. Please wait.

2011 Summer ERIE/REU Program Descriptive Statistics Igor Jankovic Department of Civil, Structural, and Environmental Engineering University at Buffalo,

Similar presentations


Presentation on theme: "2011 Summer ERIE/REU Program Descriptive Statistics Igor Jankovic Department of Civil, Structural, and Environmental Engineering University at Buffalo,"— Presentation transcript:

1 2011 Summer ERIE/REU Program Descriptive Statistics Igor Jankovic Department of Civil, Structural, and Environmental Engineering University at Buffalo, State University of New York

2 Content Statistics terminology 1.Population vs. Sample 2.Descriptive statistics vs. Inferential statistics 3.Data Types Presentation of qualitative data 1.Graphical method 2.Numerical method Presentation of quantitative data 1.Graphical method 2.Numerical method Outliers in a data set

3 Population vs. Sample Population: an entire data set that is the target of our interest Sample: a subset of data selected from a population Example: Electrical engineers recognize that high natural current in computer power system is a potential problem. To determine the extent of the problem, a survey of the computer power system load currents at 146 US sites taken (IEEE Transaction on Industry Applications, July/August 1990). The survey revealed that less than 10% of the sites had high neutral to full-load current ratios. Identify the population of interest (powerload status at all US sites with computer powers systems) Identify the sample (powerload status at 146 US sites with computer powers systems Use of the sample information to make an inference about population (less than 10% of the sites had high neutral to full-load current ratios)

4 Descriptive statistics vs. Inferential statistics Two major applications of Statistics: -Summarizing, describing, and exploring data -Using sample data to infer the nature of the population data set In other words, Descriptive statistics -The branch of statistics devoted to the organization, summarization, and description of data sets Inferential statistics -The branch of statistics concerned with using sample data to make an inference about populations

5 Data Types Quantitative Data: The data that represent the quantity or amount of something Qualitative (categorical) Data: The data that have no quantitative interpretation Example: Length (in centimeters), weight (in grams), DDT concentration (in ppm): quantitative data Location and species: qualitative data

6 Qualitative Data

7 Graphical method for describing qualitative data For qualitative data, we define the categories in such a way that each observation can fall in one and only one category. Example: Student distribution in terms of year at college in EAS 308 Pareto diagram Horizontal Bar Graph Pie Chart

8 Numerical method for describing qualitative data For qualitative data, we define the categories in such a way that each observation can fall in one and only one category. Category frequency for a given category is the number of observations that fall in that category Category relative frequency for a given category is the proportion of the total number of observations that fall in that category Summary frequency table

9 Quantitative Data

10 Graphical method for describing quantitative data (1) Dot plots Steps: 1.Draw a horizontal scale that spans the range of data 2.Place a dot over the appropriate value on the scale representing the value of observations 3.If data value repeats, then the dots are placed on top of each other

11 Graphical method for describing quantitative data (2) Histograms (most popular and traditional method for describing quantitative data) Steps: 1.Calculate the range of data 2.Divide the range into 5-20 classes of equal width 3.For each class, count the number (class frequency) of observations that fall in the class 4.Calculate each relative class frequency = (class frequency)/ total number of measurements

12 Graphical method for describing quantitative data (3) Stem-and-Leaf Display Steps: 1.Divide each observation in the data set into two parts, the stem and the leaf. For example, the stem and leaf of the CPU time 2.41 are 2, and 41, respectively. Stem Leaf 2 41 2. List the stems in order in a column, starting with the smallest stem and ending with the largest. 3. Proceed through the data set, placing the leaf for each observation in the appropriate stem row.

13 Numerical method for describing quantitative data Measures of central tendency - help to locate the center of the relative frequency distribution - -Arithmetic mean (mean) Suppose we have a set of n measurements, y 1,y 2,y 3,…,y n, The arithmetic mean = Generally, we use to represent sample mean and  to represent population mean -Median Median is the middle number when the measurements are arranged in ascending (descending) order y [(n+1)/2], if n is odd Median = { y (n/2) + y (n/2+1) } /2, if n is even Generally, we use m to represent sample median and  to represent population median

14 Numerical method for describing quantitative data Measures of central tendency - help to locate the center of the relative frequency distribution - -Mode The mode of a set of n measurements, y 1,y 2,y 3,…,y n, is the value of y that occurs with the greatest frequency

15 Numerical method for describing quantitative data Measures of central tendency Example: We have 10 sample measurements: 4, 5, 8, 1, 11, 6, 2, 8, 3, 7 Compute the mean, median, and mode. Solution: Mean = 5.5 Median = (6+5)/ 2 = 5.5 Mode = 8

16 Measures of central tendency: Geometric Mean (from Wikipedia)

17 Measures of central tendency: Harmonic Mean (from Wikipedia)

18 Numerical method for describing quantitative data Measures of variation - help to locate the spread of the distribution - -Range Range = largest measurement – smallest measurement -Variance (of n measurements, measurements, y 1,y 2,y 3,…,y n ) Sample variance = Population variance =

19 Numerical method for describing quantitative data Measures of variation - help to locate the spread of the distribution - -Standard Deviation standard deviation of a sample = standard deviation of a population =

20 Skewness: measure of shape Approximate formula (accurate for large “n”) Exact formula where s is the sample standard deviation.

21 Kurtosis: measure of “peakedness” Approximate formula (accurate for large “n”) where s is the sample standard deviation. Exact formula

22 Numerical method for describing quantitative data Measures of relative standing - describes the relative position of an observation within the data set - Two measures used to describe the relative standing of an observation are percentiles and z-scores Percentiles - 100 pth percentile 100pth percentile of a data set is a value of y located so that 100 p% of the area under the relative frequency distribution for the data lies to the left of the 100pth percentile and 100 (1-p)% of the area lies to its right [note: 0  p  1] - Lower quartile, Q L,, corresponding to 25 th percentile. - Midquartile, m, corresponding to 50 th percentile. - Upper quartile, Q U, corresponding to 75 th percentile

23 Numerical method for describing quantitative data Measures of relative standing - describes the relative position of an observation within the data set - Two measures used to describe the relative standing of an observation are percentiles and z-scores Z-scores The z-score for a value y of a data set is the distance that y lies above or below the mean, measured in units of the standard deviation. Sample z-score: Population z-score:

24 Detecting Outliers Definition of an outlier: An observation y that is unusually large or small relative to the other values in a data set is called an outlier. Reasons for outliers in a data set: 1. The measurement is observed, recorded, or entered into the computer incorrectly 2. The measurement comes from a different population 3. The measurement is correct, but represents a rare (chance) event. Rule of Thumb for detecting outliers: Observations with z-scores greater than 3 in absolute value are considered outliers.

25 Detecting Outliers Box Plot Method Interquartile range, IQR IQR = Q U - Q L Steps to construct a Box Plot 1. Calculate the median m, lower and upper quartiles, Q L, and Q U, and IQR, for the y values in a data set 2. Construct a box on the y-axis with Q L and Q U located at the lower corners. The base width will be equal to IQR. Draw a vertical line inside the box to locate the median, m 3. Construct two sets of limits on the box plot. Inner fences are located a distance of 1.5 (IQR) below Q L and Q U ; outer fences are located a distance of 3(IQR) below Q L and above Q U. 4. Observations that fall between the inner and outer fences are called suspect outliers. Observations that fall outside the outer fences are called highly suspect outliers. 5. To further highlight extreme values, use Whiskers.

26 Empirical Rule If a data set has an approximately mound shaped distribution, then the following rules of thumb may be used to describe the data set Example: At least 68% of the measurements will lie within the interval ± s for samples At least 95% of the measurements will lie within the interval ±2s for samples

27 Summary In this lecture, we have learned: Some important statistics terminologies 1.Population vs. Sample 2.Descriptive statistics vs. Inferential statistics 3.Data Type How to deal with Qualitative data 1.Graphical method (Bar graph, Pie chart, Pareto diagram) 2.Numerical method How to deal with Quantitative data 1.Graphical method (Dot plot, Histogram, Stem and Leaf plot) 2.Numerical method How to detect outliers in a data set? Empirical Rule


Download ppt "2011 Summer ERIE/REU Program Descriptive Statistics Igor Jankovic Department of Civil, Structural, and Environmental Engineering University at Buffalo,"

Similar presentations


Ads by Google