Final Exam Review 1 ISDS 2000 Introduction About the Final Exam The final exam contains 25 questions About half of the questions come from Unit 4 The other half come from Tests 1–3 (cumulative topics) Purpose of This Review This review is an expanded version of the study guide posted on Moodle Covers major concepts, definitions, and interpretation skills needed for the exam Helps reinforce what you need to know before working practice problems This review does not replace the need to include practice problems in preparation for Final Exam! Test 1: Variable Types Categorical (Qualitative) • Represent labels, groups, or categories • Examples: Marital status, Yes/No, Major • No meaningful arithmetic • Used to count frequencies or percentages Numeric (Quantitative) • Represent measurable amounts • Examples: Income, Age, Test Scores • Arithmetic is meaningful • Used for means, variances, histograms, etc. Test 1: Variable Subtypes Categorical Subtypes • Nominal: Categories with no natural order • • Example: Eye color, Type of car Ordinal: Categories with a meaningful order • Example: Customer satisfaction (Poor → Excellent) • Differences between categories not measurable Numeric Subtypes • Discrete: Countable values (often integers) • • Example: Number of students in a class Continuous: Infinite possible values in a range • Example: Weight, Time, Temperature Test 1: Variable Measurement Scales Nominal Scale Labels or names No ranking, no arithmetic Example: Phone provider, State of residence Ordinal Scale Ordered categories Interval Scale • Numerical scale with meaningful differences • Zero is arbitrary (not a true zero) • Cannot make ratio statements • Example: Temperature (°F or °C) Ratio Scale • Highest level of measurement Ranking is meaningful • Differences between ranks not meaningful True zero represents absence of the characteristic • Example: Movie ratings (1–5 stars) Ratios are meaningful (twice as much, half as large) • Example: Income, Height, Weight Test 1: Mean What the Mean Represents The mean is the “typical” or “central” value of a numerical variable Found by adding up all the values and dividing by the number of values Test 1: Mean Formula (Population or Sample): ˉ 𝑥= 𝑥𝑖 Σ (“sigma”) means “add everything up.” Example: Σx just means x₁ + x₂ + x₃ + … + xn xᵢ (“x-sub-i”) means the i-th value, or “each individual data point” n is the number of observations 𝑥 (x-bar) is the mean ˉ In Plain English Step 1: Add all the numbers together Step 2: Divide by how many numbers there are That’s the mean. 𝑛 Breaking the Formula Down Test 1: Median Median (Middle Value) The median splits the data into two equal halves Steps to compute: Sort the data from smallest to largest If n is odd → median is the middle number If n is even → median is the average of the two middle numbers Why it's useful: Not affected much by outliers Often better than the mean when data is skewed Quick Example Data: 8, 2, 5, 9, 3 Sorted: 2, 3, 5, 8, 9 Median = 5 Test 1: Mode Mode (Most Frequent Value) The mode is the value that occurs most often A dataset may have: One mode (unimodal) Two modes (bimodal) More than two or no mode at all Best for categorical data or when identifying common values Quick Example Data: 4, 2, 6, 4, 3, 4 Mode = 4 (because it appears the most) Test 1: Variance What Variance Measures Simple Explanation Variance measures how spread out the data are Take each value’s distance from the mean It looks at the average squared distance from the mean Square each distance Add them up Divide by N (for population) or n − 1 (for sample) Larger variance → data values are more spread out Formulas (population, sample): Important Concept Squared distances give more weight to larger deviations Test 1: Standard Deviation (SD) What Standard Deviation Measures The standard deviation is the square root of the variance Puts the measure back into the original units (e.g., dollars, inches, points) Formulas (population, sample): Key Concept Because it's the square root of variance, the standard deviation is always smaller than variance (except when variance = 0) Test 1: Population vs Sample Variance/SD Key Relationship Sample variance is larger than population variance because it divides by n − 1 instead of n Likewise: sample standard deviation > population standard deviation Why? Using n − 1 corrects for the fact that a sample tends to underestimate the true population variability Test 1: Descriptive Statistics - Measures of Center Measures of Center (Where is the “middle”?) Mean (Average) Sensitive to outliers Best for symmetric data Center of gravity of the dataset Median (Middle Value) Mode (Most Frequent Value) Not affected by outliers Best for categorical data Best for skewed data Shows what occurs most often Represents the “typical” middle value Can indicate clusters or common patterns Test 1: Descriptive Stats - Measures of Spread Measures of Spread (How spread out are the data?) Variance Average squared distance from the mean Larger variance = data more spread out Units are squared (harder to interpret directly) Standard Deviation Square root of variance Same units as the data (easier to interpret) Tells how much values typically differ from the mean Larger SD = more variability Test 1: Descriptive Stats – Measure of Shape Measure of Shape (Is the distribution symmetric or skewed?) Skewness Positive skew → right tail longer; mean > median Negative skew → left tail longer; mean < median Skewness = 0 → symmetric Helps decide whether mean or median is the better center Test 1: Descriptive Stats – Interpretation Guide Interpreting Skewness If mean > median → Positively skewed Long right tail Outliers on the high end Median is better measure of center If mean < median → Negatively skewed Long left tail Outliers on the low end Median is better measure of center If skewness coefficient > 0 → Positively skewed If skewness coefficient < 0 → Negatively skewed Interpreting Spread If standard deviation (SD) is large Data values are very spread out More variation around the mean If standard deviation is small Values are tightly clustered Very little variation If variance is large Same interpretation as SD, but in squared units Test 2: Probability of Joint Events What Is a Joint Event? A joint event occurs when two events happen at the same time How to Compute Joint Probability If Events Are Independent Example: Selecting a student who is a business major AND a sophomore Notation 𝑃 𝐴∩𝐵 Interpretation Occurrence of one does not affect the other Formula: 𝑃 𝐴∩𝐵 = 𝑃 𝐴 ×𝑃 𝐵 If Events Are Not Independent Joint probability tells you how likely it is that both conditions happen together One event affects the probability of the other Always smaller than or equal to each individual probability Use conditional probability: 𝑃 𝐴∩𝐵 = 𝑃 𝐴 ×𝑃 𝐵 ∣𝐴 Test 2: Probability of Joint Events: Example A student is: Business major: 𝑃 𝐴 = 0.30 A sophomore: 𝑃 𝐵 = 0.40 Probability of being a sophomore given the student is a business major: 𝑃 𝐵 ∣ 𝐴 = 0.50 Joint Probability (Not Independent) 𝑃 𝐴 ∩ 𝐵 = 0.30 × 0.50 = 0.15 Interpretation: There is a 15% chance a randomly selected student is both a business major and a sophomore. Test 2: Probability of Conditional Events What Is a Conditional Event? A conditional event is the probability of event A happening given that B has already happened Think of it as “restricted to a smaller group” Notation 𝑃 𝐴 ∣ 𝐵 (“Probability of A given B”) Formula for Conditional Probability 𝑃 𝐴∣𝐵 = 𝑃 𝐴∩𝐵 𝑃 𝐵 Interpretation You only consider the group where B is true From within that group, find the proportion that also has A Test 2: Probability of Conditional Events Key Points Conditional probability shrinks the sample space It is not the same as 𝑃 𝐴 or 𝑃 𝐵 Example Scenario 40% of students are business majors (B) 25% are business majors and sophomores (A and B) Used when events are not independent Find: 𝑃 Sophomore ∣ Business Major If events are independent, then: 𝑃 𝐴∣𝐵 = 𝑃 𝐴∣𝐵 =𝑃 𝐴 𝑃 𝐴∩𝐵 𝑃 𝐵 = 0.25 = 0.625 0.40 Interpretation: Among business majors, 62.5% are sophomores. Test 2: Probability of the Union of Two Events What Is a Union of Events? The union represents the probability that A happens OR B happens (or both) Think of it as all outcomes in A, or in B, or shared by both Notation 𝑃 𝐴∪𝐵 Formula for the Union of Two Events 𝑃 𝐴∪𝐵 =𝑃 𝐴 +𝑃 𝐵 −𝑃 𝐴∩𝐵 Why Subtract the Joint? 𝑃 𝐴 + 𝑃 𝐵 double-counts the overlap Subtracting 𝑃 𝐴 ∩ 𝐵 removes that double-counting Test 2: Probability of the Union of Two Events Key Points Union = either event happens The union is larger than each individual probability But it cannot exceed 1 If events are mutually exclusive (cannot happen together): 𝑃 𝐴∩𝐵 =0 In that case, the formula becomes: 𝑃 𝐴∪𝐵 =𝑃 𝐴 +𝑃 𝐵 Example Scenario Compute the Union Event A: Student is a business major → 𝑃 𝐴 = 0.30 Event B: Student is a sophomore → 𝑃 𝐵 = 0.40 Joint probability: 𝑃 𝐴 ∩ 𝐵 = 0.15 𝑃 𝐴 ∪ 𝐵 = 0.30 + 0.40 − 0.15 = 0.55 Interpretation: There is a 55% chance a randomly selected student is a business major OR a sophomore (or both). Test 2: Determining Independence of Two Events What Does Independence Mean? Two events are independent if knowing one happens does NOT change the probability of the other. What Does Dependence Mean? Two events are dependent if knowing one event happens changes the probability of the other. Test 2: Determining Independence of Two Events How to Determine Independence (Three Equivalent Tests) Test 1: Compare Conditional Probability to Marginal Probability Events A and B are independent if 𝑃 𝐴 ∣ 𝐵 = 𝑃 𝐴 . If 𝑃 𝐴 ∣ 𝐵 ≠ 𝑃 𝐴 ,the events are dependent. Test 2: Reverse the Test Events are independent if𝑃 𝐵 ∣ 𝐴 = 𝑃 𝐵 . If not equal → dependent. Test 3: Use the Multiplication Rule Events are independent if 𝑃 𝐴 ∩ 𝐵 = 𝑃 𝐴 × 𝑃 𝐵 . If this is not true → dependent. Test 2: Determining Independence of Two Events Key Points Example Scenario If conditional probability changes, the events are dependent. 𝑃 𝐴 = 0.30, 𝑃 𝐵 = 0.40, 𝑃 𝐴 ∩ 𝐵 = 0.15 If conditional probability stays the same, the events are independent. Check Independence Using Test 3 Independence rarely occurs in realworld categorical datasets. Independence ≠ mutually exclusive Mutually exclusive events cannot be independent unless one has probability 0. 𝑃 𝐴 × 𝑃 𝐵 = 0.30 × 0.40 = 0.12 But: 𝑃 𝐴 ∩ 𝐵 = 0.15 ≠ 0.12 Conclusion: A and B are dependent (knowing one changes the probability of the other). Test 2: Using Z-Table to Answer Probability Questions Step 1: Convert a Raw Score to a Z-Score Use the z-score formula: 𝑧= 𝑥−𝜇 𝜎 What the Formula Means 𝑥= the value you want to find probability for 𝜇= mean of the distribution 𝜎= standard deviation The z-score tells you how many standard deviations the value is above or below the mean Test 2: Using Z-Table to Answer Probability Questions Step 2 — Use the Z-Table The z-table gives the probability that a value is to the left of a given z-score Look up the row using the first two digits of z Look up the column using the second decimal place Important Notes Z-table always gives left-tail probability To find a right-tail probability: 1−𝑃 𝑍 <𝑧 For probabilities between two z-values: 𝑃 𝑧1 < 𝑍 < 𝑧2 = 𝑃 𝑍 < 𝑧2 − 𝑃 𝑍 < 𝑧1 Test 2: Using Z-Table to Answer Probability Questions Example 1 — Left-Tail Probability Find 𝑃 𝑋 < 90 when 𝜇 = 100, 𝜎 = 15 𝑧= Look up z = –0.67 → 0.2514 90−100 = −0.67 15 Example 2 — Right-Tail Probability Find 𝑃 𝑋 > 115 𝑧= Left-tail: 0.8413 Right-tail: 115−100 = 1.00 15 1 − 0.8413 = 𝟎. 𝟏𝟓𝟖𝟕 Example 3 — Between Two Values Find 𝑃 85 < 𝑋 < 120 Compute z for both values Subtract left-tail probabilities Test 2: Characteristics of the Sampling Distribution of the Mean What Is a Sampling Distribution? The sampling distribution of the mean is the distribution of sample means Imagine taking many samples of size n and computing a mean each time Those means form their own distribution Key Characteristics 1. Center (Mean of the Sampling Distribution) 𝜇ˉ = 𝜇 The average of all sample means equals the population mean Sample means are unbiased estimators of µ 𝑋 2. Spread (Standard Error of the Mean) 𝜎 𝑛 𝜎ˉ = Called the standard error (SE) As sample size n increases, the spread of the sample means gets smaller Larger samples give more stable and precise estimates of µ 𝑋 3. Shape (Normality from CLT) If the population is normal → sample means are normal for all n If the population is not normal: For large enough n (usually n ≥ 30), sample means are approximately normal This is the Central Limit Theorem (CLT) Test 3: Identifying the Null and Alternative Hypotheses Purpose of Hypotheses in Statistics Hypothesis testing compares evidence from a sample to a claim about a population We set up two competing statements: One is assumed true unless evidence suggests otherwise The other is what we look for evidence in favor of Test 3: Identifying the Null and Alternative Hypotheses Null Hypothesis (H₀) The default or “status quo” claim Alternative Hypothesis (Hₐ) The statement we are testing for Assumes no effect, no difference, or no change Represents change, difference, or effect Always includes equality (=, ≥, or ≤) Uses <, >, or ≠ (never uses =) Examples: Examples: 𝐻0 : 𝜇 = 50 𝐻0 : 𝜇1 − 𝜇2 = 0 Interpretation: “There is no difference,” or “nothing is happening.” 𝐻𝑎 : 𝜇 ≠ 50(two-tailed) 𝐻𝑎 : 𝜇 > 50(right-tailed) 𝐻𝑎 : 𝜇1 − 𝜇2 ≠ 0 Interpretation: “There is a difference,” or “something is happening.” Test 3: Identifying the Null and Alternative Hypotheses Choosing the Correct Alternative Hypothesis Two-Tailed Test (≠) Use when testing for any difference Example: “Does the mean change?” Right-Tailed Test (>) Use when testing if the mean is greater Example: “Has the average increased?” Left-Tailed Test (<) Use when testing if the mean is smaller Example: “Has the average decreased?” Test 3: Find Critical Values for One-Sample Tests Step 1 — Determine the Type of Test Z-test Step 2 — Identify the Tail Type Use when population standard deviation (σ) is known t-test Use when σ is unknown Uses degrees of freedom: df = n − 1 Two-tailed test (≠) Right-tailed test (>) Split α into two tails → α /2 in each tail Entire α in the right tail Left-tailed test (<) Entire α in the left tail Test 3: Find Critical Values for One-Sample Tests Step 3 — Find the Critical Value Z-Critical Values (from Z-table) Two-tailed, α = 0.05 → ±1.96 Right-tailed, α = 0.05 → +1.645 Left-tailed, α = 0.05 → –1.645 Z-values do not use degrees of freedom Example 1: Z-Test (Two-Tailed) Example 2: t-Test (Right-Tailed) t-Critical Values (from t-table) Use df = n − 1 Two-tailed tests use α /2, df One-tailed tests use α, df α = 0.05 Critical values = ±1.96 n = 12 → df = 11 α = 0.05 (right-tail) Critical value = t₀.05,11 ≈ 1.796 Example 3: t-Test (Two-Tailed) n = 20 → df = 19 α = 0.05 → α/2 = 0.025 Critical values = ±t₀.025,19 ≈ ±2.093 Test 3: Calculate Z or t test Statistic for Hypotheses of Means Step 1 — Identify Which Test to Use Z-test Population standard deviation σ is known t-test σ is unknown Use sample standard deviation (s) instead of σ Test 3: Calculate Z or t test Statistic for Hypotheses of Means Step 2 — Use the Correct Formula Z-Test Statistic ˉ 𝑥 − 𝜇0 𝑧= 𝜎/ 𝑛 t-Test Statistic ˉ 𝑥 − 𝜇0 𝑡= 𝑠/ 𝑛 Simple Explanation Numerator: How far the sample mean is from the hypothesized mean (“difference between what you observed and what H₀ claims”) Denominator: Standard error (“typical amount of variation you'd expect just by sampling”) Test 3: Calculate Z or t test Statistic for Hypotheses of Means Step 3 — Interpret the Value (i.e., by calculating Test Statistic – Critical Value) 1. Positive difference → evidence the mean is greater than μ₀ 2. Negative difference → evidence the mean is smaller than μ₀ Value near 0 → sample mean is close to μ₀ Above is for one-tailed tests. For two-tailed tests, evaluate both1 and 2 above. Example 1 — Z-Test Given: μ₀ = 100, σ = 15, n = 36, x̄ = 104 𝑧= 104−100 4 = = 1.60 15/ 36 2.5 Example 2 — t-Test Given: μ₀ = 50, s = 8, n = 16, x̄ = 54 𝑡= 54−50 4 = = 2.00 8/ 16 2 Unit 4 : Hypotheses for Mean Differences Interpretation Two-tailed → “Is there any difference?” Right-tailed → “Is group 1 greater than group 2?” Left-tailed → “Is group 1 less than group 2?” Unit 4: Two-Sample Z-Test (σ Known) When Do We Use This Test? Comparing two population means Population standard deviations σ₁ and σ₂ are known Samples are independent Sample sizes can be small or large Unit 4 : Two-Sample Z-Test (σ Known) Test Statistic Formula ˉ 𝑍= ˉ 𝑋1 − 𝑋2 − 𝜇1 − 𝜇2 𝜎12 𝜎22 𝑛1 + 𝑛2 Simple Interpretation Numerator: Difference between sample means minus what H₀ claims (often μ₁ − μ₂ = 0) Denominator: Standard error of the difference A large value of |Z| means our sample result is so extreme that it probably didn’t happen by chance. Therefore, it suggests the null hypothesis is not a good explanation for the data. Unit 4 : Conducting the Test Two-Sample Z-Test (σ Known) Step 1. State the Hypotheses Step 3. Make the Decision 𝐻0 : 𝜇1 − 𝜇2 = 0 (no difference) If |Z| > Zcritical, reject H₀ 𝐻1 :choose <, >, or ≠ depending Otherwise, fail to reject H₀ on the research question Step 2. Find the Critical Value Use Z-table Two-tailed: ±Zα/2 Right-tailed: +Z α Left-tailed: −Z α 4. Interpret in Context Clearly state whether the data provide evidence of a difference between the two population means Unit 4 : Conducting the Test Two-Sample Z-Test (σ Known) Using the p-Value Compute p-value from the Z-statistic ˉ If p < α, reject H₀ If p ≥ α, fail to reject H₀ Interpretation Rejecting H₀ → “There is evidence the alternative hypothesis is true.” Failing to reject H₀ → “Not enough evidence to conclude a difference.” ˉ 𝑋1 − 𝑋2 Decision rule: Using the Confidence Interval for (μ₁ − μ₂) 𝜎12 𝜎22 ±𝑍 + 𝑛1 𝑛2 How to Interpret the CI If CI contains 0 → no significant difference If CI does not contain 0 → significant difference between means Unit 4 : Two-Sample Z-Test (σ Unknown) When Do We Use This Test? Comparing two population means Standard deviations σ₁ and σ₂ are unknown Samples are independent We assume equal variances, meaning the two groups have similar spread Unit 4 : Two-Sample Z-Test (σ Unknown) Step 1 — Calculate the Pooled Variance 𝑆𝑝2 = 𝑛1 − 1 𝑆12 + 𝑛2 − 1 𝑆22 𝑛1 − 1 + 𝑛2 − 1 Plain English Explanation Take each sample’s variance Weight each by its sample size Average them together This gives one shared estimate of variance for both groups Unit 4 : Conducting the Test Two-Sample Z-Test (σ Unknown) Step 2 — Calculate the t Test Statistic ˉ 𝑡= Step 4 — Find the Critical Value Use the t-table ˉ 𝑋1 − 𝑋2 − 𝜇1 − 𝜇2 Two-tailed: tα/₂,df 1 1 𝑆𝑝 𝑛 + 𝑛 1 2 One-tailed: tα,df Step 3 — Degrees of Freedom 𝑑𝑓 = 𝑛1 + 𝑛2 − 2 Step 5 — Make the Decision If |t| > tcritical, reject 𝐻0 Otherwise, fail to reject 𝐻0 Unit 4 : Conducting the Test Two-Sample Z-Test (σ Unknown) Using the p-Value Confidence Interval for (μ₁ − μ₂) If p-value < α, reject the null hypothesis ˉ 𝑋1 − 𝑋2 ± 𝑡 ⋅ 𝑆𝑝 Interpretation Rejecting H₀ → “There is evidence the alternative hypothesis is true.” Failing to reject H₀ → “Not enough evidence to conclude a difference.” ˉ 1 1 + 𝑛1 𝑛2 How to Interpret If CI contains 0 → no significant difference between means If CI does NOT contain 0 → significant difference between means Unit 4 : Chi-Square Test of Independence Purpose Used to determine whether two Step 1: Calculate Chi-Square Test Statistic categorical variables are related 𝜒2 = Example: Gender vs. Major, Region vs. Voting Preference Null and Alternative Hypotheses ሺ𝑜𝑖 − 𝑒𝑖) 𝑒𝑖 𝑂 =Observed frequency 𝐸 = Expected frequency 𝐻0 :The variables are independent (no relationship) How to Calculate Expected Frequencies 𝐻1 :The variables are not ei = independent (there is a relationship) Row Total Column Total Grand Total Unit 4 : Chi-Square Test of Independence Step 2. Calculate Degrees of Freedom 2 If 𝜒calc > 𝜒2 critical ,reject 𝐻0 𝑑𝑓 = 𝑟 − 1 𝑐 − 1 𝑟 =number of rows 𝑐 = number of columns Step 3. Find the Critical Value Use the chi-square table with: Degrees of freedom (df) Significance level (α) Step 4. Decision Rule Otherwise, fail to reject 𝐻0 Step 5. Interpretation Reject 𝐻0 →There is evidence that the variables are related Fail to reject 𝐻0 →No evidence of a relationship Unit 4 : Chi-Square Test of Independence p-Value Decision Rule If p < α, reject the null hypothesis Rejecting 𝐻0 →Evidence that the variables are NOT independent A small p-value means the observed pattern is unlikely if the variables were truly unrelated Unit 4 : When to Use Mean Difference Tests vs. Chi-Square Tests Use a Mean-Difference Test (Two-Sample Z or t-Test) When: You have one categorical variable (with 2 groups) AND one numeric variable Goal: Compare mean differences Example: Mean income of Men vs. Women Example: Average test score for Two Teaching Methods Use a Chi-Square Test of Independence When: You have two categorical variables Goal: Determine whether the categories are associated Example: Gender vs. Class Standing Example: Region vs. Preferred Product Unit 4 : When to Use Mean Difference Tests vs. Chi-Square Tests Summary (Quick Decision Guide) Detect relationship between two categorical variables? → Use Chi-Square Test of Independence Detect relationship between one categorical and one numeric variable? → Use Two-Sample Z or t Test Mean differences? → Use Two-Sample Z or t Test Association between two categories? → Use Chi-Square Test of Independence
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )