
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















Introduction Statistics ● Statistics is a set of tools and methods to collect, organize, analyze, and interpret information about the world. ● The objective is to use sample data to make inferences about unknown populations.
Descriptive Statistics vs. Inferential Statistics ● Descriptive statistics describe the main features of a dataset, while inferential statistics use sample data to make predictions about a larger population from which the sample was taken.
Types of Variables ● Categorical ● Ordinal ● Quantitative
Categorical Variables ● Categorical variables take on values that are names or labels. ● Also known as qualitative or nominal variables. ● Examples include the color of a ball, gender, and marital status.
Ordinal Variables ● Categorical variables for which the categories have a natural ordering. ● Examples include socio-economic status or satisfaction rating.
Quantitative Variables ● Quantitative variables are variables that can be counted or measured. ● Examples include height or weight.
Statistical Models ● A statistical model is a simplification of reality that helps us understand how data vary. ● Statistical models are not accurate representations of reality. However, they are useful because they are simple. ○ Examples include maps. They are scaled-down versions of reality that are far from realistic, yet they are useful.
Organizing and Exploring Data Categorical Data ● Data that can be divided into distinct categories. ● Displaying categorical data involves creating one column for the class (i.e. different types of eye color) and one column for the frequency of the different types of classes. ● Categorical data can also be displayed with a relative frequency table, where the frequency of each class is divided by the sample size and multiplied by 100 to get a percentage.
Quantitative Data ● Data that can be measured and expressed numerically. ● Quantitative data can not be summarized using categories because there are no categories. ● Instead, intervals of data values must be created. ○ Create intervals and count the number of data values between them. ● After, the class is the intervals and the frequency is the number of data values between those intervals. ● The relative frequency is equal to the corresponding frequency divided by the sample size and multiplied by 100.
Frequency Table ● A table that partitions data into distinct classes, where each data value falls into exactly one class.
Frequency Table - Categorical Data ● The classes are the categories, and the table lists the number of cases in each category. Frequency Table - Quantitative Data ● For data without any categories, intervals of data values must be created. ○ First, create several ranges of intervals for the data. ○ After, count the number of data values that fit between each interval.
Relative Frequency ● The frequency of a class divided by the sample size, multiplied by
Relative Frequency Table ● A table that displays percentages or proportions rather than the number of cases or values. ● To create a relative frequency table, divide each frequency by the sample size and multiply by 100 to get the percentage.
Purpose of Graphical Displays
Displaying Categorical Data Graphically ● Data for categorical variables are displayed using bar charts, pie charts, or ring charts.
Analyzing a Histogram ● It is important to discuss the shape of a histogram. ○ How many modes does it have? ■ Is it unimodal (one peak), bimodal (two peaks), or multimodal (>2 peaks)? ○ Is it symmetric or skewed? ○ Is it free of outliers? ■ Gaps at the top or at the bottom of a histogram may indicate the presence of outliers.
Symmetry of Histograms - Considerations ● The shape of a histogram is never perfectly symmetric, but always displays some skewness. ● If the histogram is not highly skewed, then you may describe its shape as roughly symmetric. ● There is no clear line separating histograms that qualify as roughly symmetric from those that do not. ● In those cases, you will need to rely on your own judgement to decide if a histogram is skewed or roughly symmetric.
Mode of Histogram ● The mode is the peak or high point of a histogram. ● The appearance of a histogram may seem to change by your choice of number of bins or your choice of bin width. ○ In particular, the number of modes often seems to increase as you increase the number of bins or as you decrease the bin width. ○ NOTE: That the actual number of modes do not change by your choice. Your choice, however, may distort the appearance fo the histogram.
Stem-and-Leaf Display ● A method of displaying quantitative data where each data value is split into a stem and a leaf. ● Shows the distribution of the data while maintaining the actual data values. ● The data values must have at least two digits.
Creating a Stem-and-Leaf Display
Interpreting Stem-and-Leaf Display
● By looking at the stem-and-leaf display “sideways,” you can see the distribution of the data. ● Alternatively, you can rotate the stem-and-leaf display 90 degrees counterclockwise and interpret it as if it were a histogram. ● Large gaps between stems containing leaves at the top of bottom of the distribution suggest the existence of outliers. ● This has an advantage over histograms when the data set is smaller, as no information is lost. However, it is not as valuable for data sets with more than around 50-60 valus.
Contingency Table ● A table used to describe the relationships between categorical variables.
Displaying Contingency Tables ● Side-by-side bar chart ● Stacked bar chart
Side-by-Side Bar Chart ● A graphical display for depicting multiple bar charts on the same display.
Stacked Bar Chart ● A stacked (or segmented) bar chart treats each bar as the "whole" and divides it proportionally into segments corresponding to the percentage in each group (similar to a pie chart).
Measures of Central Tendency and Measures of Variability Central Tendency ● Statistical measures that summarize where the center of a data set is, typically using the mean and median.
Median ● The central value of an ordered distribution is found by sorting data and identifying the middle value. ● The formula to identify the position of the median is. 𝑛+ 2
Median of the Odd Sample
Median of the Even Sample
○ The more spread out the data, the less meaningful the answers the mean and median provide.
Range
● The difference between the largest and smallest value in a data set.
Limitations of the Range ● One problem with the range is that it only looks at the largest and smallest data values. ● It is sensitive to outliers and does not provide information about the distribution of other data points. ● It ignores most of the information about how individual values vary.
Standard Deviation ● The standard deviation, s, measures the average distance of the data from the mean.
● The formula is: 𝑠 = Σ(𝑥−𝑥)^.
2 𝑛− ● The most commonly used measure of variation.
Variance ● The square of the standard deviation represents the average squared distance from the mean. ● The formula is 𝑠 2 = Σ(𝑥−𝑥)^
2 𝑛−
Measure of Relative Standing ● Indicates how a particular value compares to the other values in a data set. ● Percentiles and quartiles are commonly used measures of relative standing.
Percentiles ● Measures that divide data into hundreths, indicating the relative standing of a value within a data set.
Quartiles ● Percentiles that divide data into fourths: ○ Q 1 (25th percentile) ○ Q 2 (50th percentile or median) ○ Q 3 (75th percentile)
Steps to Compute Quartiles
Interquartile Range ● The interquartile range is the measure of variation of choice when we use the median to describe the center of a distribution. ● The interquartile range, or IQR, measures the spread of the middle half of the data and is the difference between the third and first quartiles. ○ The formula is: IQR=Q 3 -Q 1.
Benefits of IQR ● The IQR is almost always a reasonable summary of the spread. ● However, unlike the standard deviation, the IQR ignores most of the information about how individual values vary. ● For roughly symmetric distributions with no outliers, the standard deviation is about ¾ of the IQR. ○ If the standard deviation is much larger than that, check for skewness, outliers, or an unusual distribution shape.
Outliers ● Outliers are data values that are far away from the center of the distribution. ● People often use the rule of thumb to distinguish possible outliers from the rest of the data.
Rule of Thumb: Mean and Standard Deviation ● When the mean and standard deviation measure the center and spread of a distribution: ○ A data value is a possible outlier if it is more than 3 standard deviations away from the mean. ○ That is to say, x is a possible outlier if: ■ 𝑥 > 𝑥 + 3𝑠 ■ 𝑥 < 𝑥 − 3𝑠
Rule of Thumb: Median and IQR ● When the median and interquartile range measure the center and spread of a distribution, a data value is a possible outlier if it is more than 1.5 IQRs above Q 3 or 1.5 IQRs below Q 1. ○ That is to say, x is a possible outlier if: ■ 𝑥 > 𝑄3 + 1. 5 (𝐼𝑄𝑅) ■ 𝑥 > 𝑄1 − 1. 5 (𝐼𝑄𝑅)
Considerations of Outliers ● The previous rules of thumb are meant to be guidelines to identity potential outliers, but nothing more. ● More importantly, those rules tell you nothing about what you should do with those unusual values. ○ Outliers may help you see patterns by being the exception to the rule.
○ Note that: ■ If 𝑥 > 𝑥 then𝑧 > 0 ■ If 𝑥 = 𝑥 then𝑧 = 0 ■ If 𝑥 < 𝑥 then𝑧 < 0
Z-scores and Outliers ● Recall that one of the rules of thumb to distinguish possible outliers states that: ○ A data value is a possible outlier if it is more than 3 standard deviations away from the mean. ● Since z-scores measure how many standard deviations away from the mean a given value is, we can restate the rule as: any data value with a z-score greater than 3 or less than -3 is a possible outlier.
Discussing a Quantitative Variable ● Start by making a histogram, a stem-and-leaf, or box plot and discuss the shape of the distribution (i.e. unimodal, bimodal, or multimodal; symmetric or skewed; free of outliers?). ● Next, discuss the center and spread: pair the median with the IQR or the mean with the standard deviation. ○ If the shape is skewed, be sure to report the median and the IQR. ○ If the shape is symmetric, be sure to report the mean and the standard deviation. ● If there are multiple modes, try to understand why. ● If there are any clear outliers, point them out.
The Normal and Inverse Normal Distributions Empirical Rule ● The empirical rule, or 68-95-99.7 rule, states that for many unimodal and symmetric distributions. ○ About 68% of the values fall within one standard deviation from the mean. ○ About 95% of the values fall within two standard deviations from the mean. ○ About 99.7% of the values fall within three standard deviations from the mean. ● Hence, the threshold of three standard deviations away from the mean to detect potential outliers.
Gaussian Distribution ● In 1809, Carl Friedrich Gauss figured out the formula for the distribution that accounts for the empirical rule. ○ That distribution is called the normal or Gaussian distribution. ○ The distribution is bell-shaped and symmetric around its mean. ● We write N(μ, σ) to represent a normal distribution with mean μ and standard deviation σ. ○ The mean and the standard deviation are the defining features of a normal distribution.
Properties of a Normal Distribution ● As σ decreases, the curve becomes more peaked around the mean μ.
“Approximately Normally Distributed”
● By approximately normally distributed, we often mean data with a roughly symmetric and unimodal distribution, without obvious outliers. ● A histogram or a normal probability plot are good ways to check if a distribution is approximately normal.
Probabilities for Normal Distributions ● The total area under any normal curve will always be 1. ● The portion of the area under the curve within a given interval is the probability that a measurement will lie in that interval. ○ Formally, for any two numbers a and b, if x is a normally distributed random variable with mean μ and standard deviation σ, then: ■ 𝑃 (𝑎 < 𝑥 < 𝑏) ○ That is, the probability that x will take a value between a and b, is equal to the shaded area in the next figure.
The Standard Normal Distribution ● One way to measure the area under the curve within a given interval is to use the density function of the normal distribution (i.e., the formula Gauss used to describe the shape of the normal curve). ● We can also use the standard normal table, which is based on the normal density function.
Standard Normal Table
● An alternative method for finding probabilities is to use z-scores. ○ Recall that a z-score gives the number of standard deviations between the x-score and the mean μ. ● The formula to convert a x score into a z score is: 𝑧 = 𝑥− σμ
Standardized Scores ● Standardized scores from a normal distribution have a special normal distribution with mean 0 and standard deviation 1, known as the standard normal distribution.
Formula for Normal Distribution Probability ● We will use the following result to calculate probabilities for any normal distribution: ○ If x has a normal distribution with mean μ and standard deviation σ, then:
𝑎−μ σ
𝑏−μ σ
● Leave area results with four digits to the right of the decimal point.
Inverse Normal Distribution ● Sometimes we need to find z or x values that correspond to a given area under the normal curve. ● In such cases, we use the standard normal distribution table “in reverse.” ○ That is, we look up the area and find the corresponding z values. ○ In this case, we are using the inverse normal probability distribution.
Examples where the Inverse Normal Distribution is Needed
● For example, we may want to know what is the minimum Verbal SAT score that a student must earn to be accepted into a university that will accept only students whose scores are in the top 10%.
Inverse Normal Distribution - Cases where Z-value is not in the Standard Normal Table ● If the area you are looking for is not in the body of the table, use the z-value corresponding to the nearest area in the table.
Inverse Normal Distribution - Cases Where the Area is Halfway Between Two Areas in the Table ● If the area you are looking for is exactly halfway between two areas in the table: ○ First, find the z-values corresponding to those areas. ○ Then, use the average of the two z-values.
Inverse Normal - Left-tail Cases Summary ● If the area you are looking for is in the table, use the z value corresponding to that area. ● If the area you are looking for is not in the table, use the z value corresponding to the nearest area in the table. ● If the area you are looking for is exactly halfway between two areas in the table, use the average of the two z-values.
Inverse Normal - Right-tail Cases ● The standard normal table you are using is a left-tail table (i.e. it gives you areas to the left of given z-scores). ● If A is at the top of the distribution, then look up area 1-A in the body of the table and use the corresponding z value.
Inverse Normal - Center Cases ● In other cases, we will be given the area at the center of the distribution (the center case). ● If A is at the center of the distribution, look up area in the body of the table and use 1−𝐴 2 the corresponding ± z values.
Inverse Normal - Final Summary ● Left-tail Case: If A is at the bottom of the distribution, then look up area A in the body of the table and use the corresponding z value. ● Right-tail Case: If A is at the top of the distribution, then look up area 1-A in the body of the table and use the corresponding z value. ● Center Case: If A is at the center of the distribution, look up the area in the body of 1−𝐴 2 the table and use the corresponding ± z values.
Converting Z values to X
● Use the formula 𝑥 = μ + 𝑧σ
Sampling Distribution Models for Means + Introduction to Inferential Statistics Population ● A population is the set of all measurements under consideration.
Parameter ● A parameter is a numerical descriptive measure of a population. ○ Depends on the individuals that fall under the sample. ○ For example, μ (population mean) or σ(standard deviation).
Sample ● A sample is a subset of measurements from a population.
Statistic ● A statistic is a numerical descriptive measure of a sample. ○ For example, 𝑥(sample mean) or s (sample standard deviation). ● A statistic is a random variable whose value depends on the sample selected. ● In order to use sample statistics to make inferences about population parameters, we need to know the distribution of those sample statistics.
Sampling Distribution ● The sampling distribution of the mean of a sample of size n is the distribution of the means of all possible samples of size n taken from the same population.
The Central Limit Theorem ● In 1810, Pierre-Simon Laplace proved a result called the Central Limit Theorem (CLT). ● The theory that, as sample size increases, the distribution of sample means of size n, randomly selected, approaches a normal distribution. ● Simply, as n gets larger and larger, the sampling distribution of 𝑥approaches a normal distribution. ● If the 𝑥is the mean of a random sample of size n from a normally distributed population with mean μ and standard deviation σ, then the sampling distribution of 𝑥is normal.
● Thus, we can define an unusual value as a value more than 1.96 standard deviations away from μ. ● If an observed random sample is not likely to be unusual, then: ○ The sample mean 𝑥is likely to lie no more than 1.96 standard deviations away from μ. ○ We could also say: The population mean μis likely to lie no more than 1. standard deviations away from 𝑥.
Assumptions ● All the statistical techniques and tests rely on two basic assumptions. ○ Normality Assumption: The observations in the sample are taken from a normal distribution. ○ Independence Assumption: The observations in the sample are independent of each other.
Normality Assumption ● The distribution of scores in the population is approximately normal. ● The normality assumption matters most when sample sizes are small. ○ Indeed, for sample sizes greater than or equal to 30, we can start to rely on the Central Limit Theorem no matter how the data are distributed. ○ In this case, three is no need to verify if the assumption is tenable because the normality assumption is not an issue for the analysis.
Cases Where CLT Can Not Be Used ● If n < 30, we need to assess the tenability of the normality assumption, that is, we need to check if the data is likely to come from a normal population. ● If the data comes from a normal population: ○ The distribution of scores in the sample should be roughly unimodal and symmetric, without clear outliers. ○ This is known as the nearly normal conditions.
Checking for Nearly Normal Condition ● Histogram ● Skewness test ● Shapiro-wilk test
Histogram ● A histogram should be unimodal and roughly symmetric without clear outliers. ○ The problem is that it is not always easy to assess whether a distribution satisfies the nearly normal condition or not just by looking at a histogram. ○ However, if a distribution distinctly fails to be nearly normal, a histogram usually offers a clear picture of why the distribution fails.
● Thus, a histogram is often more useful as a visual aid to understand why a distribution fails to be normal than as a method to assess the tenability of the normality assumption.
Skewness test
● The p-value of the skewness test should be greater than 0.05. ● The null hypothesis of the skewness test is that your data comes from a normal distribution. ● The normality assumption is tenable if we fail to reject the null hypothesis, i.e. if the p-value of the test is greater than 0.05.
Shapiro-wilk test ● The p-value of the Shapiro-Wilk test should be greater than 0.05. ● The Shapiro-Wilk test provides an assessment of how well the data fits a normal distribution. ● That is, if we fail to reject the null hypothesis, then we must conclude that the normality assumption is tenable. ● One problem with this test, however, is that it may detect departures from normality that are too small to be of practical significance.
Independence Assumption
● Individual scores are independent of each other, that is: ○ The score of any individual provides no information about the score of any other individual in the sample. ○ The independence assumption is likely to be satisfied if the data is a random sample of the population. ■ This is known as the randomization condition.
What Happens when Assumptions Fail? ● The independence assumption is likely to fail if the sample is not a simple random sample. ○ If you believe the sample is representative of some population, you can continue with the analysis. But you should limit your conclusions accordingly. ● The normality assumption is likely to fail if there are outliers or if the sample is bimodal. ○ If there are outliers, perform the analysis both with and without them. ○ If the sample is bimodal, try to analyze subgroups separately. ● Only when there are major issues with the data are you unable to proceed at all. ○ Major issues include a strongly skewed small sample or an obviously nonrepresentative sample.
Additional Assumptions ● When comparing the means fo two or more populations, we often need two additional assumptions. ○ Independent groups assumption: The observations in the samples we are comparing are independent across samples.
Confidence Intervals for Means Point Estimate ● A point estimate is an estimate of a population parameter using a single value—i.e., a point. ● For instance, the sample mean is a point estimate of the population mean. ● Similarly, the sample standard deviation is a point estimate of the population standard deviation.
Central Limit Theorem
● If the sample size is large enough, then the sampling distribution of 𝑥will be approximately normal with a mean equal to the population mean μ. ○ This means that the sample mean 𝑥 is an unbiased estimate of the population mean μ. ○ In other words, we do not expect the sample mean to systematically overestimate or underestimate the true population mean. ● The sample mean, however, does not explicitly account for the uncertainty inherent in estimating a fixed population parameter using a sample statistic.
Uncertainty with Sampling Statistics ● The uncertainty arises because the value of the sample mean varies from sample to sample. ● For some samples, the value of the sample mean will be close to the value of the population mean, for others it will be notably different. ● Similarly, for sample,s the value of the sample mean will be smaller than the value of the population mean, for others it will be larger. ● The problem is that we do not know how close is the value of our sample mean to the value of the population mean, or which of the two is larger.
Confidence Interval ● Confidence intervals explicitly embrace this uncertainty by allowing for a margin of error in our estimates. ● The result is a range—i.e., an interval of possible values for a population parameter. ● A confidence interval for the population mean μ is centered around a sample mean 𝑥as follows: ○ Confidence Interval = (𝑥 − 𝐸, 𝑥 + 𝐸) ● The width of the interval depends on the margin of error, E.
95% Confidence Interval
● If the sample size is larger enough, the sample mean 𝑥has a distribution that is approximately normal with mean = μ and standard deviation =. σ 𝑛 ● Therefore, if the sample size n is larger enough:
○ 95% of the means of a sample of size n will be no more than 1.96 standard deviations away from the population mean μ.
95% Confidence Interval Formula ● That is to say, 95% of the means will satisfy the following condition: μ − 1. 96 𝑥. σ 𝑛 < 𝑥 < μ + 1. 96 𝑥 σ 𝑛 ● We can also say that for 95% of the samples mean 𝑥will satisfy the following condition. 𝑥 − 1. 96 𝑥 σ. 𝑛 < μ < 𝑥 + 1. 96 𝑥 σ 𝑛 ○ The interval 𝑥 ± 1. 96 𝑥 σ is called a 95% confidence interval for the population 𝑛 mean μ. ■ The margin of error is 𝐸 = 1. 96 𝑥 σ. 𝑛 ■ The 1.96 value is called the critical value for a 95% confidence level.
Assumptions ● We need two main assumptions to use the methods covered in this lecture. ○ Normality assumption: The observations in the sample are taken from a normal distribution. ○ Independence assumption: The observations in the sample are independent of each other.
Estimating μ When σ is Known: Steps
Estimating μ When σ is Known: Step 1
● Step 1: Find the sample mean, 𝑥. ● Given a random sample from a population of x values, the formula for the sample mean is: 𝑥 = Σ𝑥𝑛.
Estimating μ When σ is Known: Step 2 ● Step 2: Choose the confidence level, c. ● The confidence level, c, is the percentage of random samples we expect will produce confidence intervals containing the population mean μ. ● In practice, the most commonly used confidence levels are 95% and 99%.
Estimating μ When σ is Known: Step 3 ● Step 3: Find the critical value, zc.