I. Intro to Statistics II. Various Variables III.Scales of Measurement I. Intro to Statistics II. Various Variables III.Scales of Measurement A. Data on a ratio scale – Data on a ratio scale have a constant and defined unit of measurement that assigns a real number to all measurements. • Such data has a constant size interval between any adjacent units on the measurement scale. – A zero point on the measurement scale must exist and there must be a physical significance to this zero. – Ratio scales include things like mass, length, number, volumes, lengths of time, etc. I. Intro to Statistics II. Various Variables III.Scales of Measurement A. Data on a ratio scale B. Data on an interval scale – Same as ratio scale, except that in an interval scale no true zero exists on the measurement scale – it is ‘arbitrary’ – Example - temperature on the Celsius or Fahrenheit scales. I. Intro to Statistics II. Various Variables III.Scales of Measurement A. Data on a ratio scale B. Data on an interval scale C. Data on an ordinal scale – This scale uses ranked variables. I. Intro to Statistics II. Various Variables III.Scales of Measurement A. Data on a ratio scale B. Data on an interval scale C. Data on an ordinal scale D. Data on a nominal scale – This ‘scale’ uses attributes. Thus even relationships like greater than or less than don’t apply I. Intro to Statistics II. Various Variables III.Scales of Measurement IV. Taking Measurements A. Precision and Accuracy Accuracy – the closeness of a measured or computed value to its true value I. Intro to Statistics II. Various Variables III.Scales of Measurement IV. Taking Measurements A. Precision and Accuracy Accuracy – the closeness of a measured or computed value to its true value Precision – the closeness of repeated measurements of the same quantity to each other PRECISE ? YES ACCURATE ? YES NO NO I. Intro to Statistics II. Various Variables III.Scales of Measurement IV. Taking Measurements A. Precision and Accuracy How accurate? 30-300 rule. Range should be about 30-300 unit steps. Length of shells 4-9mm? 4 units steps. 4.2-9.4? 52 unit steps. I. Intro to Statistics II. Various Variables III.Scales of Measurement IV. Taking Measurements A. Precision and Accuracy B. Significant Figures http://www.chem.sc.edu/faculty/morgan/resources/sigfigs/index.html (1) All nonzero digits are significant: 1.234 g has 4 significant figures, 1.2 g has 2 significant figures. (2) Zeroes between nonzero digits are significant: 1002 kg has 4 significant figures, 3.07 mL has 3 significant figures. (3) Leading zeros to the left of the first nonzero digits are not significant 0.001 g has only 1 significant figure ….change unit! = 1 mg (4) Trailing zeroes to the right of a decimal point in a number are significant: 0.0230 mL has 3 significant figures, (5) When a number ends in zeroes that are not to the right of a decimal point, the zeroes are not necessarily significant: 190 miles may be 2 or 3 significant figures, 50,600 calories may be 3, 4, or 5 significant figures. (6) EXACT numbers, often integers (counts) – infinite sig figs The potential ambiguity in the last rule can be avoided by the use of standard exponential, or "scientific," notation, or a change in the unit. For example, depending on whether the number of significant figures is 3, 4, or 5, we would write 50,600 calories as: 5.06 × 104 calories (3 significant figures) 5.060 × 104 calories (4 significant figures), or From Morgan 2012 5.0600 × 104 calories (5 significant figures). Mathematical Operations: When adding/subtracting: last common digit farthest to right: 100 (assume 3 significant figures) + 23.643 (5 significant figures) = 123.643 (124) When multiplying/dividing: same as one with smallest number of sig. figs. 3.0 (2 significant figures ) × 12.60 (4 significant figures) = 37.8000 (38) Carry all numbers and round at the end: In a long calculation involving mixed operations, carry as many digits as possible through the entire set of calculations and then round the final result appropriately. For example, (5.00 / 1.235) + 3.000 + (6.35 / 4.0)=4.04858... + 3.000 + 1.5875=8.630829... The first division should result in 3 significant figures. The last division should result in 2 significant figures. The three numbers added together should result in a number that is rounded off to the last common significant digit occurring furthest to the right; in this case, the final result should be rounded with 1 digit after the decimal. Thus, the correct rounded final result should be 8.6. This final result has been limited by the accuracy in the last division. From Morgan 2012 Rules for Rounding: If you need to reduce the number of significant figures in a number, look at the value of the next number to the right: If that value is > 5, round up. 1.23 1.2 If that value is < 5, round down. 1.26 1.3 If that value = 5: if there is a non-zero number to the right, round up 1.251 1.3 otherwise, round UP if last sigfig is ODD 1.35 1.4 down if last sigfig is EVEN. 1.25 1.2 ALWAYS CARRY NUMBERS FORWARD THROUGH A COMPUTATION, THEN ROUND AT THE END BASED ON THE MOST RESTRICTIVE SIGFIG RULE. “Warning: carrying all digits through to the final result before rounding is critical for many mathematical operations in statistics. Rounding intermediate results when calculating sums of squares can seriously compromise the accuracy of the result” (Morgan 2012). (11.6)2 = 134.56 135 (12)2 = 144 V. Looking at Your Data: Frequency Distributions V. Looking at Your Data: Frequency Distributions A. What are they? -“Frequencies” are counts of the number of observations in a category V. Looking at Your Data: Frequency Distributions A. What are they? -“Frequencies” are counts of the number of observations in a category - They can be taken on any scale: Number of nurses by sex, Greenville Memorial Hospital Fake data Male Female V. Looking at Your Data: Frequency Distributions A. What are they? -“Frequencies” are counts of the number of observations in a category - They can be taken on any scale: Medal Count, U.S.A., 1984 Summer Olympics Fake data Gold (1st) Silver (2nd) Bronze (3rd) V. Looking at Your Data: Frequency Distributions A. What are they? -“Frequencies” are counts of the number of observations in a category - They can be taken on any scale: Maple Seedlings/m2 From M. Hamas in H&H V. Looking at Your Data: Frequency Distributions A. What are they? B. What can you do with them? 1. Compare distributions from different samples Number of nurses by sex, Greenville Memorial Hospital St. Francis Medical Center Fake data Male Female V. Looking at Your Data: Frequency Distributions A. What are they? B. What can you do with them? 1. Compare distributions from different samples Medal Count, U.S.A., 1984 Summer Olympics 2008 Summer Olympics Fake data Gold (1st) Silver (2nd) Bronze (3rd) V. Looking at Your Data: Frequency Distributions A. What are they? B. What can you do with them? 1. Compare distributions from different samples 2. Compare distributions against a theoretical standard V. Looking at Your Data: Frequency Distributions A. What are they? B. What can you do with them? 1. Compare distributions from different samples 2. Compare distributions against a theoretical standard Number of nurses by sex, Greenville Memorial Hospital Even Distribution Fake data Male Female V. Looking at Your Data: Frequency Distributions A. What are they? B. What can you do with them? C. Why? - Sometimes, these are the contrasts of interest V. Looking at Your Data: Frequency Distributions A. What are they? B. What can you do with them? C. Why? - Sometimes, these are the contrasts of interest - A wide range of statistical tests that analyze data on ratio or interval scales are only appropriate IF the data has a particular frequency distribution (normal). V. Looking at Your Data: Frequency Distributions A. What are they? B. What can you do with them? C. Why? D. Distributions for Measurement Variables 1. Discontinuous (meristic, discrete) Discrete Variable - Example 3.1 0 0 1 0 1 2 3 0 0 1 1 2 0 3 3 3 1 1 0 2 3 2 4 5 0 0 0 2 5 4 0 2 0 2 0 1 0 1 3 1 1 0 0 1 Maple seedlings per quadrat 0 0 4 0 0 0 4 0 1 2 2 0 0 1 5 1 2 1 1 0 1 2 0 0 1 1 0 2 0 3 0 0 1 2 5 0 1 4 0 1 3 1 5 1 1 3 1 1 4 3 2 0 0 4 1 2 Table… Example 3.1 Maple seedlings per quadrat Number of plants/quadrat 0 Frequency 35 1 28 2 15 3 10 4 7 5 3 Or a figure… a “bar graph” for discrete variables, in which bars don’t touch. Creating a Bar Chart with SPSS (for discontinuous data): - Analyze - Descriptive Statistics - EXPLORE 1) Drag the variable (mapleseeds) into the ‘dependent variable’ window 2) Click the ‘Statistics’ button to the right… - select ‘Descriptives’. - select ‘continue’ 3) Click the ‘Plots’ button. - in ‘Boxplots’ select ‘none’ - in ‘Descriptives’ select ‘histogram’ deselect ‘stem and leaf’ - select ‘Normality plots with tests’ 4) In the ‘Display’ box, select ‘both’ for plots and statistics 5) Hit the ‘OK’ button to run. Creating a Bar Chart with SPSS (for discontinuous data): 6) OUTPUT is in a new window 7) Descriptives: mean, s.e., sd, etc….. SKEWNESS and s.e. of skewness: Generally, if the skewness value is more then twice the s.e., the data is not normally distributed. Creating a Bar Chart with SPSS (for discontinuous data): 6) OUTPUT is in a new window 7) Descriptives: mean, s.e., sd, etc….. KURTOSIS and s.e. of kurtosis: Generally, if the kurtosis value is more then twice the s.e., the data is not normally distributed. Creating a Bar Chart with SPSS (for discontinuous data): 6) OUTPUT is in a new window 7) Descriptives: mean, s.e., sd, etc….. 8) Tests of Normality Kolmogorov-Smirnov: if ‘sig’ < 0.05, then the data is not normally distributed. Creating a Bar Chart with SPSS (for discontinuous data): 6) OUTPUT is in a new window 7) Descriptives: mean, s.e., sd, etc….. 8) Tests of Normality Kolmogorov-Smirnov: if ‘sig’ < 0.05, then the data is not normally distributed. Again, this would be important to know if you had been planning to use a ‘parametric test’ to analyze these data or compare them with other data. Creating a Bar Chart with SPSS (for discontinuous data): 6) OUTPUT is in a new window 7) Descriptives: mean, s.e., sd, etc….. 8) Tests of Normality 9) Plots of values against predictions from a normal distribution (points are near the line for normally distributed data) Creating a Bar Chart with SPSS (for discontinuous data): Creating a Histogram with SPSS (for continuous data): Same as above. But sometimes, like here, there are many values that need to be ‘binned’ into a smaller number of categories/intervals. First, make sure that ‘length’ is a scale variable. If not, select ‘variable view’ on bottom tab, and change entry in last column of table. Then select ‘data view’ to return. Chart Builder - ‘ok’ - select ‘histogram’, and drag ‘histogram’ icon into figure box. - drag ‘length’ variable into x-axis - In the ‘element properties’ window, beneath ‘histogram’… - select ‘set parameters’ - anchor first bin at ‘16.5’ - set interval at ‘2’ - select ‘continue’ - select ‘display normal curve’ - select ‘apply’ - select ‘OK’ to run. Check output. Continuous Variable - Example 3.2 30 17 19 22 19 22 24 23 23 19 22 22 19 22 19 22 22 22 24 22 20 19 23 21 22 23 21 22 21 22 23 24 21 17 22 20 22 22 25 23 25 20 23 23 20 28 20 20 22 21 24 23 22 25 22 22 21 22 23 20 Length of mosquito fish 19 20 20 23 23 24 24 21 24 24 20 24 22 20 22 23 23 21 20 24 28 21 25 24 20 20 22 21 21 20 22 21 21 18 22 22 23 19 24 24 20 21 23 18 18 19 20 19 24 20 23 20 20 21 23 20 22 21 22 24 20 21 21 21 22 24 23 21 22 21 24 25 21 20 23 21 20 24 20 24 22 22 22 22 20 22 22 23 20 19 24 22 21 21 21 19 24 26 23 29 21 21 21 21 24 23 24 22 22 21 20 24 Length of mosquito fish (mm) Measured length Implied length Class Mark (midpoint) Frequency 17-18 19-20 21-22 23-24 25-26 27-28 29-30 17.5 19.5 21.5 23.5 25.5 27.5 29.5 5 40 70 47 6 2 2 16.5-18.5 18.5-20.5 20.5-22.5 22.5-24.5 24.5-26.5 26.5-28.5 28.5-30.5 Measurements rounded to nearest mm, so implied length represents the ranges of actual lengths included in the category.