Introduction to Statistical Variation, Quartiles, and Standardization
Review of Measures of Central Tendency and Sample Variance
Recap of Last Lecture: The discussion began with a review of mean, median, and mode, as well as the initial introduction to measuring variation through range and standard deviation.
Calculating Sample Variance (Method 1):
Step 1: Find the Sample Mean (): In an example dataset containing 6 data points, the sample mean is identified as .
Step 2: Calculate Deviations: For every data point (), subtract the sample mean. These are known as the deviations: . Note that subscript refers to the number's position in the dataset list, not an interval.
Step 3: Calculate Squared Deviations: Multiply each deviation by itself to obtain the squared deviation: .
Step 4: Summation: Get the total sum of all squared deviations: .
Step 5: Variance (): Divide the summation of squared deviations by (where is the sample size).
Step 6: Standard Deviation (): The standard deviation is the positive square root of the variance.
Alternative Formula for Variation:
A second way to calculate the sum of squared deviations is:
This formula can also be expressed as:
Interpreting Variation:
Standard deviation is the most widely used measure of variation.
The more the data is spread out, the larger the standard deviation will be.
City Comparison Example: In a comparison of two cities, City B () has a much larger standard deviation than City A (). This implies that the data points for City B are distributed more widely than those in City A.
Linear Transformations of Data
Effect on Mean:
If a constant is added to every data point in a dataset (), the new sample mean () will increase by that same value .
Effect on Variance and Standard Deviation:
Additive Shifts: Shifting data points to the left or right by adding or subtracting a number does not change the spread or variation. Therefore, adding a constant does not affect the variance or standard deviation.
Multiplicative Scaling: Multiplying the data by a number does affect the variation. If you multiply by a large number (e.g., ), the data becomes more spread out. If you multiply by a very small number, the data points become more clustered.
Quartiles and Interquartile Range (IQR)
Process for Finding Quartiles:
Step 1: Order the Data: Arrange all values in increasing order.
Step 2: Find the Median (): Determine the middle value of the dataset. If there is an even number of data points (e.g., ), the median is the average of the two middle numbers.
Step 3: Divide into Halves: Split the ordered dataset into a bottom half and a top half.
If there is an odd number of data points (e.g., ), exclude the median from both halves.
Example: For data points , the median is . The bottom half is and the top half is .
Step 4: Find : Calculate the median of the bottom half of the data.
Step 5: Find : Calculate the median of the top half of the data.
The Interquartile Range (IQR):
The IQR is a measure of variation that is less affected by outliers than the range.
Formula:
Identifying Potential Outliers
Definition: Outliers are observations that fall far outside the overall pattern of the data, being either significantly larger or smaller than the rest of the points.
The 1.5 IQR Rule (Fences):
Potential outliers can be identified by building two "fences" (lower and upper limits).
Lower Limit:
Upper Limit:
Any data point falling outside these two limits is considered a potential outlier.
Example Calculations:
HILD Temperature Dataset:
Median ():
: Approximately
:
:
(Note: Transcript mentions , possibly a calculation variant or error).
Second Exercise:
Median ():
:
:
Data points such as may be checked against limits to see if they are potential outliers.
Five-Number Summary and Box Plots
Five-Number Summary:
The dataset is described using five specific values: Minimum, , Median (), , and Maximum.
These numbers divide the data into four quarters, each containing of the observations.
Box Plots:
A visual tool to display the five-number summary and the variation within the data.
It is particularly useful for comparing several different samples or datasets.
Modified Box Plot: In a modified version, outliers are indicated with stars (). Whiskers extend to the largest and smallest values that are not outliers.
Measures for Population Data
Statistics vs. Parameters:
Statistics: Measures calculated from a sample (e.g., sample mean , sample variance ).
Parameters: Measures calculated from the entire population (e.g., population mean , population variance ).
Notation Differences:
Mean: Sample is ; Population is (mu).
Variance: Sample is ; Population is (sigma squared).
Standard Deviation: Sample is ; Population is (sigma).
Size: Sample size is ; Population size is .
Formula Difference for Variance:
For sample variance, the sum of squared deviations is divided by .
For population variance, the sum of squared deviations is divided by the total population size .
Standardization and Z-Scores
Standardized Variable ():
A standardized version of a variable is created to allow for fair comparisons between datasets with different units (e.g., meters vs. inches).
Formula:
Centering: Subtracting the mean () ensures the new mean of the standardized data is .
Scaling: Dividing by the standard deviation () ensures the new standard deviation of the standardized data is .
Interpreting Z-Scores:
If , the value is equal to the mean ().
If , the value is two standard deviations below the mean.
Example Calculation: Given and :
For a value : .
If the score is , is the mean.
Negative scores indicate the number of deviations below the mean.