Analyzing Univariate Data
Introduction to Data Analysis
Data analysis is defined as the process of collecting and organizing data in order to draw helpful conclusions from it.
The primary purposes of analyzing data are:
To understand relationships and trends in the world around us.
To make predictions based on that information.
Examples of applications for data analysis include:
Personal Health Data: Tracking the number of COVID-19 cases per day.
Weather Data: Monitoring daily temperature or the amount of rainfall.
Election Results: Polls tracking which candidates voters are likely to vote for.
Sports Data.
Census Data.
Methods of Data Collection
Data can be collected from two primary sources:
Sample: A small group of people or items.
Census: An entire population.
Data collection methods include:
Surveys.
Measurements.
Records.
Observations.
Advancements in technology directly correlate with an increased ability to measure and store data.
Categorizing Data Analysis Approaches
The approach to data analysis is determined by the number of variables involved in the data set.
Univariate (Single-Variable) Analysis
Univariate sets provide measures of exactly one attribute.
Example: The analysis of a set of test scores for a single class.
Visualization tools for univariate analysis:
Bar graphs.
Pie graphs.
Boxplots.
Stem and leaf plots.
Statistical tools for univariate analysis:
Mean.
Median.
Mode.
Bivariate (Two-Variable) Analysis
Bivariate sets provide measures of two attributes for each specific item in a sample.
Example: Comparing a student’s test score to the amount of time that student spent studying for the test.
Visualization and trends in bivariate analysis:
Scatterplots: Used to see the relationship between variables.
Line of best fit or Curve of best fit: Used to represent the overall trend in the data.
Identification of Data Types (Example 1)
Situation A: Noah researches how many cups of coffee Canadians drink.
Classification: Univariate data.
Situation B: A study compared the length of time children spend playing video games and the time they spend reading.
Classification: Bivariate data.
Univariate Analysis: Measures of Central Tendency
Measures of central tendency (mean, median, and mode) identify the center of a data set.
Mean:
Definition: The mathematical average of a set.
Procedure: Add all the numbers in the set, then divide the resulting sum by the total number of items.
Formula:
Median:
Procedure: Arrange the numbers in numerical order. The median is the middle number.
Handling Even Sets: For an even number of values, the median is calculated as the mean of the two middle numbers.
Mode:
Definition: The number in the data set that occurs most frequently.
Calculations of Central Tendency (Example 2)
Data Set #1
Raw Data:
Order of Operations:
Sum =
Total Items () =
Mean Calculation:
Numerical Order for Median:
Median:
Mode:
Data Set #2
Raw Data:
Order of Operations:
Sum =
Total Items () =
Mean Calculation:
Numerical Order for Median:
Median Strategy for Even Set: Determine the mean of the () and () values.
Median Calculation:
Mode:
Measures of Spread
Definition: Measures of spread summarize data by showing how scattered the values are and the extent to which they differ from the mean value.
Key measures include:
Range.
Standard deviation.
Quartiles.
Percentiles.
Application: Measures of spread are used in conjunction with measures of central tendency to provide a comprehensive understanding of the data.
Quartiles and Boxplots
Quartiles:
Function: They divide a data set into four equal quarters, similar to how a median divides a set into halves.
Requirement: Data must be placed in numerical order from smallest to largest before quartiles can be identified.
Boxplots:
Used to visually graph quartiles and the range of a data set.
Spread Formulas:
Range: The difference between the maximum and minimum values.
Interquartile Range (IQR): The difference between the third quartile () and the first quartile ().
The Five-Number Summary and Boxplot Steps (Example 3)
Execution Steps
Step 1: Order the data from smallest to largest.
Step 2: Find the median (), which splits the data into two halves.
Step 3: Find the median of the lower half () and the median of the upper half () to split the data into four parts.
Step 4: Identify the minimum and maximum values.
Step 5: Consolidate the five-number summary.
Data Set #1 Analysis
Sorted Data:
Five-Number Summary:
Minimum (Lower Extreme):
Lower Quartile ():
Median ():
Upper Quartile ():
Maximum Value (Upper Extreme):
Calculated Metrics:
Range:
Interquartile Range ():
Data Set #2 Analysis
Raw Data:
Smallest to Largest Sorting:
Five-Number Summary ():
Minimum (Lower Extreme):
Lower Quartile (): (Mean of and items)
Median (): ( item)
Upper Quartile (): (Mean of and items)
Maximum Value (Upper Extreme):
Calculated Metrics:
Range:
Interquartile Range: