시작하기무료로 시작하기

Are gender and number of roommates independent?

As it turns out, the dating website also has information on gender and the number of roommates each profile has, so let's "pivot" for a moment and explore whether the two are independent using a chi-squared independence test.

Although you believe age and roommates could be related, you suspect that gender has no impact on the number of roommates.

On the right is a frequency pivot table from 200 profiles. Check out DataCamp’s Pivot Tables in Google Sheets learn all about pivot tables. Your hypotheses:

H0: The `roommates` & `gender` variables are independent
H1: The `roommates` & `gender`  variables are not independent

Assume a 0.05 p-value cutoff. As a refresher, if the p-value result is less than the significance level (0.05), you can reject the null hypothesis.

이 연습은 강의의 일부입니다

Google Sheets로 배우는 통계 입문

강의 보기

연습 안내

  • In K2, conduct a chi-squared test by passing in the observed range B3:C7 and then the expected range 'G3:H7' to get the p-value.
  • Enter REJECT or FAIL TO REJECT demonstrating your interpretation of the test.

실습형 인터랙티브 연습문제

이론을 실습으로 바꾸는 인터랙티브 연습 중 하나를 만나보세요

연습 시작