Chi Square Test of Alcohol Consumption and Age Category

Introduction

Nesarc dataset is used for alcohol consumption, related age category, and depression data.

Getting Data



In Nesarc dataset, four columns are needed for analysis. 

Consumer: Alcoholic Consumption
Age : Ages
S2AQ4B : How often drank coolers in the last month
Majordeplife: The people who experience depression

Preparing Data



The people who are current and Ex drinkers and their ages between 20 and 50 are filtered for this research.

S2AQ4B (How often drank coolers in the last month) is also recoded as year in a new variable USFREALC

Null Hypothesis

There is no connection between age and alcohol consumtion.

Observer and Percentages



The Proportion of Age Category Over Alcohol Consumption


The diagram shows there is not much diffrence between age category.


CHI SQUARE and P-Value


The p value is very low. It is lower than 0.001.

We can accept the null hypothesis.

Comments

Popular posts from this blog

Logistic Regresion in Nicotine Dependence and Alcohol Dependence

Lasso Regression in Income per Person

CO2 Emissions Corelations