ETX1100/5900 | Business Statistics
✉ ETX5900.AllCampuses-x@monash.edu
5 January 2027
Source: Workshop_slides_Week_4_with_solutions.pdf, page 1
The Chi-Square Test for Independence: Assessing relationships between categorical variables
Visual from source page 1.
Press E, then Ctrl/Cmd + P and choose Save as PDF.
OR
Click ☰ (menu) > Tools > PDF export mode, then Ctrl/Cmd + P and choose Save as PDF.
Source: Workshop_slides_Week_4_with_solutions.pdf, page 2
Textbook references: Berenson et al Basic Business Statistics 5th edition, Chapter 15, Section 15.3.
Source: Workshop_slides_Week_4_with_solutions.pdf, page 3
Due date: 19 December 2025, 11:55 pm Weighting: This assignment is worth 15% of the total assessment for this unit. Submission location: Submit via the Assignment submission link available under the Assessment tab on Moodle. Number of attempts: Only ONE (1) attempt is permitted. - Dataset: Use the Excel file titled “Assignment Data.xlsx”, available under the Assessment tab on Moodle.
Source: Workshop_slides_Week_4_with_solutions.pdf, page 4
A statistical framework for using data to derive evidence-based decisions. Define business problem and variables relevant to that problem Formulate a hypothesis around these variables that are relevant to business decisions Collect representative data Conduct hypothesis testing to establish the degree of evidence for the hypotheses Based on evidence, make business decisions
Source: Workshop_slides_Week_4_with_solutions.pdf, page 5
H1: Defendant is guilty (experimental/research hypothesis) Reject H0: There IS enough evidence against H0 GUILTY! Do not reject H0: There IS NOT enough evidence against H0 NOT GUILTY (INNOCENT!) 5 An hypothesis test is conducted to decide between two hypotheses: the null H0 and the alternative, H1. Hypothesis Testing ……..Is a familiar process
Source: Workshop_slides_Week_4_with_solutions.pdf, page 6
What types of variables are “Education Level” & “Smoking Status”, respectively. Note: Start presenting to display the poll results on this slide.



Source: Workshop_slides_Week_4_with_solutions.pdf, page 7
If two variables are independent Note: Start presenting to display the poll results on this slide.



Source: Workshop_slides_Week_4_with_solutions.pdf, page 8
For a contingency table with r rows and c columns, use the \chi^2 test of independence for two categorical variables.
Visual from source page 8.
Source: Workshop_slides_Week_4_with_solutions.pdf, page 9
H0: The two categorical variables are independent (No relationship between variables) H1: The two categorical variables are dependent (i.e. there is a relationship). Note: We test on the assumption that the Null hypothesis (H0) is true i.e. that the attributes are independent. What we actually observe in the datavs What we would expect to see if the two variables were independent If the observed counts are very different from the expected counts, that’s evidence that the variables are related. 5 Steps
Source: Workshop_slides_Week_4_with_solutions.pdf, page 10
The test statistic is \chi^2=\sum\frac{(f_o-f_e)^2}{f_e},\qquad f_e=\frac{(\text{row total})(\text{column total})}{\text{overall total}}. Here f_o is an observed count and f_e is its expected count if H_0 is true. Degrees of freedom are (r-1)(c-1). Expected counts below 5 make this approximation unreliable.
Visual from source page 10.
Source: Workshop_slides_Week_4_with_solutions.pdf, page 11
Critical value approach/ p-value approach Critical value approach: Look up \chi{}2 table OR P-value: Use Excel =chisq.test(actual range,expected range) 5 Steps
Visual from source page 11.
Source: Workshop_slides_Week_4_with_solutions.pdf, page 12
Reject H_0 when \chi^2_{\text{calc}}>\chi^2_{\text{crit}}, or when the p value is below \alpha. Reject Ho when p-value < \alpha{} Step 5: Conclusion State the conclusion within the context of the problem. Always refer to H1 Eg: The sample provides sufficient evidence at the 5% level of significance that the variables xxx and xxx are dependent. Steps 4 and 5: Decision and Conclusion 0 alpha Reject H0 Do not Reject H0 chi-square critical value


Source: Workshop_slides_Week_4_with_solutions.pdf, page 13
Task 1: Education Level vs Smoking Status Education Level Smoking Status Did not quit Quit Did not finish high school 9 16 High school graduate 26 21 TAFE graduate 4 15 University bachelors or postgraduate degree 7 17
Source: Workshop_slides_Week_4_with_solutions.pdf, page 14
Source: Workshop_slides_Week_4_with_solutions.pdf, page 15
Proportion of TAFE Graduates = 19/115 = 0.1652 or 16.52% b) We wish to test the hypothesis that Education Level and Smoking Status are independent at a 5% level of significance. What type of test is appropriate? Explain. The Chi-square test of independence is an appropriate test since the variables “Smoking status” and “Education Level” are both categorical variables. c) State the hypotheses for the test stated above. H0: The variables Smoking Status and Education Level are independent H1: The variables Smoking Status and Education Level are dependent Task 1: Education Level vs Smoking Status
Source: Workshop_slides_Week_4_with_solutions.pdf, page 16
Source: Workshop_slides_Week_4_with_solutions.pdf, page 17
Test statistic = 8.778 (refer to Excel sheet for working or next slide for screenshot) P-value = 0.032391 Task 1: Education Level vs Smoking Status
Visual from source page 17.
Source: Workshop_slides_Week_4_with_solutions.pdf, page 18
Visual from source page 18.
Source: Workshop_slides_Week_4_with_solutions.pdf, page 19
Source: Workshop_slides_Week_4_with_solutions.pdf, page 20
A car importer believes that there is a relationship between buyers’ gender and their preference of sedans or convertibles. The importer gathered some information on the preference of male and female buyers and this is shown in below. Task 2: Convertibles
Source: Workshop_slides_Week_4_with_solutions.pdf, page 21
TABLE 1 Gender Male Female Total Preference Convertibles 30 8 38 Sedans 56 38 94 Total 86 46 132 Calculate the test statistics and p-values for Tables 1 and 2 above TABLE 2 Gender Male Female Total Preference Convertibles 15 4 19 Sedans 28 19 47 Total 43 23 66 We created another contingency table, halved all observed frequencies, and labeled it as Table 2.
Source: Workshop_slides_Week_4_with_solutions.pdf, page 22
Solutions for part a: Test statistic for Table 1: 4.47 p-value for Table 1: 0.0345 Test Statistic for Table 2: 2.23 p-value for Table 2: 0.1354
Source: Workshop_slides_Week_4_with_solutions.pdf, page 23
Source: Workshop_slides_Week_4_with_solutions.pdf, page 24
Source: Workshop_slides_Week_4_with_solutions.pdf, page 25
Visual from source page 25.
Source: Workshop_slides_Week_4_with_solutions.pdf, page 26
There are 4 statistical puzzles! Work in your group to crack each statistical puzzle level by level. Solve the statistical tasks correctly to unlock the next stage. After each level, solve a short riddle to collect a keyword. There are also some emojis to help you answer the riddles. Once all levels are completed, combine the collected words into a final answer. Accuracy matters more than speed. Good luck, detectives!
Source: Workshop_slides_Week_4_with_solutions.pdf, page 27
P(UsedCoupon = Yes) = P(UsedCoupon = Yes | AgeGroup = Young) Using these probabilities, determine whether the two categories (UsedCoupon and AgeGroup) are dependent or not. Select the correct answer.
Source: Workshop_slides_Week_4_with_solutions.pdf, page 28
Find the p-value The evidence has been laid out, and it’s time to make a decision. Is there enough evidence to send the Disruptor to jail? We reject the null at the 5% level of significance. The categories are dependent. We can send the Distorter to jail. We do not reject the null at the 5% level of significance. The categories are not dependent. The Distorter goes free.
Source: Seminar Week 8 ETF1100 S1 2026 Updated.pdf, page 4
This section prepares you to:
Source: Seminar Week 8 ETF1100 S1 2026 Updated.pdf, page 5
Source: Seminar Week 8 ETF1100 S1 2026 Updated.pdf, page 6
In the real-estate example, area is the explanatory variable X and price is the response variable Y. The plot suggests a positive relationship.
Real-estate price against area, cropped from the source slide.
Source: Seminar Week 8 ETF1100 S1 2026 Updated.pdf, page 7
We expect area and price to have positive covariance.
Source: Seminar Week 8 ETF1100 S1 2026 Updated.pdf, page 8
s_{XY}=\frac{1}{n-1}\sum_{i=1}^{n}(X_i-\bar X)(Y_i-\bar Y).
In the source RealEstate workbook, area is column K and price is column L. Excel =COVARIANCE.S(K:K,L:L) gives 51,447.661. Covariance has mixed units, which makes its size hard to interpret.
Source: Seminar Week 8 ETF1100 S1 2026 Updated.pdf, page 9
r=\frac{s_{XY}}{s_Xs_Y},\qquad -1\le r\le 1.
Dividing by the sample standard deviations makes correlation unit free. In Excel, =CORREL(K:K,L:L) gives 0.566 for area and price.
Source: Seminar Week 8 ETF1100 S1 2026 Updated.pdf, page 10
Source: ETF1100 Week 8 seminar, page 11
Correlation measures linear relationships. A strong curved pattern can have correlation near zero.
Curved relationship.
Source: ETF1100 Week 8 seminar, page 11
Two series can move together without one causing the other. Margarine consumption and Maine’s divorce rate are a spurious correlation in the source.
Spurious correlation.
Regression analysis uses sample data to model relationships and predict a numerical dependent variable (response, Y) from one or more independent variables (predictors, X).
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 5
A professor predicts exam score from hours studied. Which is the dependent variable? Which is the independent variable?
Answer: exam score is Y; hours studied is X.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 6
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 7
Predict exam score from hours studied. Is this simple or multiple regression?
Answer: simple linear regression, because there is one predictor.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 8
We focus on simple linear regression: the relationship between one numerical predictor and one numerical response. Multiple regression follows in Week 6.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 9
Plot Y against X before fitting a line. A roughly linear pattern supports regression; curvature suggests another model. Compare plots A and B.

Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 10
Which source plot is more suitable for a straight-line model? Look for an approximately linear cloud rather than curvature. Return to the two plots before deciding.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 11
For observation i, the population model is Y_i=\beta_0+\beta_1X_i+\varepsilon_i. Here \beta_0 is the population intercept, \beta_1 is the population slope, and \varepsilon_i is the random error.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 12
We estimate the unknown population coefficients from a sample: \widehat{Y}_i=b_0+b_1X_i. The slope b_1 is the average change in predicted Y for a one-unit increase in X. Its sign gives the direction of the fitted relationship.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 13
Excel estimates b_0 and b_1 using least squares. Choose the line that minimises the sum of squared residuals: SSE=\sum_{i=1}^{n}(Y_i-\widehat{Y}_i)^2. A residual is the observed value minus its fitted value.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 14
Each vertical distance from an observation (X_i,Y_i) to the fitted line is a residual e_i=Y_i-\widehat{Y}_i. Least squares minimises \sum e_i^2. See the source plot for the illustrated observations.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 15
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 16
Use the source workbook’s RealEstate sheet. Plot price (Y, AUD thousands) against area (X, sqm), fit a linear trend, and obtain Excel regression output. Interpret coefficients, correlation, predictions for 600 and 900 sqm, and the slope confidence interval.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 17
The trendline is \widehat{\text{Price}}=539.36+1.0928(\text{Area}), with R^2=0.3204. Price is in AUD thousands; the slope is positive.
Real estate scatterplot and trendline from the source.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 18
In Data → Data Analysis → Regression, set Y to Price and X to Area. Tick Labels if headings are included, then choose an output location.
Excel regression setup from the source.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 19
The source Excel output gives 329 observations (price in AUD thousands):
| Measure | Estimate |
|---|---|
| Multiple R | 0.5660 |
| R Square | 0.3204 |
| Intercept coefficient | 539.3572 |
| Area coefficient | 1.092774 |
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 20
From the Excel output, the intercept is about 539.357 and the Area coefficient is about 1.0928 (Price in AUD thousands). Thus \widehat{\text{Price}}=539.357+1.0928(\text{Area}).
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 21
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 22
The sample correlation r measures the direction and strength of a linear relationship, with -1\le r\le1. A positive value indicates variables tend to rise together; a negative value indicates they tend to move oppositely. Values nearer \pm1 indicate a stronger linear pattern.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 23
Read Multiple R in the Excel output. In a one-predictor model, give it the sign of the slope to obtain the sample correlation r. You can also use Excel =CORREL(price_range, area_range).
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 24
The sample correlation is r=0.566: a moderate positive linear association between area and price. The positive sign agrees with the positive fitted slope.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 25
Use the exact Excel coefficients for two predictions: \widehat{Y}_{900}-\widehat{Y}_{600}=b_1(900-600). The source output gives a difference of about AUD $327,832. The larger property has a higher fitted price because b_1>0.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 26
Locate the Lower 95% and Upper 95% values for the Area coefficient in Excel’s output. The interval estimates the population change in mean price for one additional sqm.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 27
The source interval corresponds to approximately AUD $920 to $1,266 per additional sqm. We are 95% confident that the population mean price increase per additional sqm lies in this range.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 28
Use the source workbook’s Marketing sheet. Predict spend (Y, dollars) from income (X, dollars). Draw the scatterplot, fit the model in Excel, interpret the coefficients and correlation, predict spend at $50,000 income, and interpret the slope interval.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 29
Before analysing the data, expect a positive association: a customer with higher income may spend more on non-essential items. Compare this expectation with the fitted scatterplot.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 30
The chart shows a positive pattern. In dollars, \widehat{\text{Spend}}\approx8254.6+0.2956(\text{Income}) and R^2\approx0.5508.
Spend versus income scatterplot and fitted line from the source.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 31
Use Data → Data Analysis → Regression. Set Spend as Y and Income as X. The source page shows the resulting output; read the coefficients, Multiple R, R Square and confidence interval from it.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 32
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 33
The sample correlation is r=0.742, a moderately strong positive linear association between income and spend. Its positive sign agrees with the fitted slope.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 34
Insert income X=50{,}000 into the fitted equation: \widehat{\text{Spend}}=b_0+b_1(50{,}000)\approx\$23{,}035. Use the exact Excel coefficients when available.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 35
The source 95% interval for the income slope is approximately 0.277 to 0.314 dollars of spend per income dollar. Equivalently, a $1,000 increase in income is associated with $277 to $314 higher mean spend.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 36
After estimating and interpreting a line, examine how much variation it explains using R^2, then test whether the population slope differs from zero.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 37
For the RealEstate sheet, interpret the coefficient of determination R^2 and test whether the slope is statistically significant.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 38
R^2 is the share of total variation in Y explained by its fitted linear relationship with X: 0\le R^2\le1. A larger R^2 means a greater share of sample variation is accounted for by the fitted model.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 39
The total sum of squares splits into explained and unexplained variation: SST=SSR+SSE,\qquad R^2=\frac{SSR}{SST}=1-\frac{SSE}{SST}. Here SSR is regression variation and SSE is residual variation.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 40
If SSR is a large share of SST, the line explains much of the observed variation. If SSE is large, much remains unexplained. Use R^2=SSR/SST to express this share as a percentage.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 41
Read R Square in the Excel output for the RealEstate model. What percentage of variation in observed prices is accounted for by area in the fitted line?
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 42
The model has R^2\approx0.3204. About 32% of the sample variation in property prices is explained by area through this linear model; about 68% remains unexplained.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 43
Least squares produces a fitted line even when the population relationship might have zero slope. Test the population coefficient \beta_1 before claiming evidence of a linear relationship.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 44
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 45
Excel reports t=\frac{b_1-0}{SE(b_1)},\qquad df=n-2. Its default regression output gives a two-sided p value. For a one-sided test in the direction of the estimated slope, halve that value.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 46
At significance level \alpha, reject H_0 when p<\alpha; otherwise, do not reject it. State the conclusion in terms of the business variables and the population relationship.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 47
Test H_0:\beta_1=0 versus H_1:\beta_1\ne0 at \alpha=0.05. Excel gives t=12.415 and two-sided p=2.9314\times10^{-29}. Reject H_0: there is evidence of a linear relationship between area and price.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 48
Test H_0:\beta_1=0 versus H_1:\beta_1>0 at \alpha=0.05. The slope is positive, so the one-sided p value is 2.9314\times10^{-29}/2. Reject H_0: there is evidence of a positive linear relationship.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 49
For Spend versus Income, interpret R^2, then test at the 5% level whether the population slope is positive.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 50
Use the Marketing regression output to locate R Square, the Income coefficient, its t statistic and its two-sided p value.
Selected Marketing output from the source.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 51
The fitted model has R^2=55.08\%. It explains about 55.08% of observed variation in spend. The other 44.92% remains unexplained by this one-predictor line.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 52
At \alpha=0.05, test H_0:\beta_1=0 versus H_1:\beta_1>0. Excel gives t=31.377 and two-sided p=1.1097\times10^{-141}. The one-sided p is half of this. Reject H_0: there is evidence of a positive linear relationship between income and spend.
Source: Workshop6_Regression_Analysis_and_Correlation.pdf, page 53