Skip to main content

ChiSquare.qvw

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Anthony_Ventura
Former Employee
Former Employee

ChiSquare.qvw

Last Update:

Nov 26, 2014 7:56:37 AM

Updated By:

Anthony_Ventura

Created date:

Nov 26, 2014 7:56:37 AM

Attachments

Comparing Data…

When collecting and comparing data, is the variation of the "expected" data, compared to the "observed" data due to chance or is it due to one of the variables you’re actually using in the test?

The ChiSquare QlikView App is based on a "coin flipping" experiment shown in the YouTube video, https://www.youtube.com/watch?v=WXPBoFDqNVk


Coin Flipping Experiment:

After flipping a coin 50 times, there was an observed result of 28 heads and 22 tails. Was the result due to chance, is there something wrong with the coin, or a possible an error in the way the coin is being flipped. The Chi-Square test allows you to answer those questions.


Factors involved:

Null Hypothesis – There is no difference between the observed and expected frequency results

The YouTube video goes on to explain the null hypothesis, degrees of freedom, Chi-Square value (0.72) and critical values (3.841)


ChiSquare QlikView App

Uses the INPUT DATA, and computes the


Table:
LOAD * Inline [
Gender, Coin,   Observed, Expected
Male, Heads,     28,             25
Male, Tails,     22,             25
]
;

Bottom Line

The whole point of the Chi-Square test is to accept or reject the null hypothesis. You have to either exceed or not exceed the critical value. Because the Chi-Square value (0.72) is lower than the critical value (3.841) you will accept the null hypothesis.

The ChiSquare QlikView App will provide an example of how to create the Chi2-Test using the Statistics Chart Wizard.

Tags (1)
Version history
Last update:
‎2014-11-26 07:56 AM
Updated by: