心理健康與遠端工作
你已經檢驗過兩者之間是否存在關聯:願意與直屬主管討論心理健康議題,及當員工使用雇主提供的心理健康治療資源時,其匿名性是否會受到保護。
現在,你要檢驗「目前是否有心理狀況」current_condition 與「是否遠端工作」work_remotely 之間是否存在關聯。
pandas 與 scipy.stats 已分別以 pd 和 st 匯入,清理後的問卷資料為 tech_mh。
本練習屬於課程
使用 Python 分析問卷資料
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Perform cross tabulation and assign to variable, cross_table
cross_table = ____
# Conduct chi-square analysis
chi_analysis = ____
print(chi_analysis)