For Chi-Squared test on contingency tables there is a proof to get from: sum((O_i−E_i)^2)/(E_i) which equals (N(ad−bc)2)/((a+b)(c+d)(a+c)(b+d)) Can anyone explain the steps in the proof i know how to get from one to other but not sure why certain steps happen!

fofopausiomiava 2022-10-11 Answered
For Chi-Squared test on contingency tables there is a proof to get from: ( O i E i ) 2 E i which equals N ( a d b c ) 2 ( a + b ) ( c + d ) ( a + c ) ( b + d ) Can anyone explain the steps in the proof i know how to get from one to other but not sure why certain steps happen!
Below ill put the proof if anyone wants to see it or can explain it?
You can still ask an expert for help

Expert Community at Your Service

  • Live experts 24/7
  • Questions are typically answered in as fast as 30 minutes
  • Personalized clear answers
Learn more

Solve your problem for the price of one coffee

  • Available 24/7
  • Math expert for every subject
  • Pay only if we can solve it
Ask Question

Answers (1)

Answered 2022-10-12 Author has 8 answers
Same way, but done by human:
Starting with χ 2 = i = 1 4 ( o i e i ) 2 e i , and expand the square:
χ 2 = i = 1 4 ( o i e i ) 2 e i = i = 1 4 ( o i 2 e i 2 o i + e i ) = i = 1 4 o i 2 e i n
(since o i = e i = n)
Substitute the values in:
χ 2 = n a 2 ( a + c ) ( a + b ) a + n b 2 ( b + d ) ( a + b ) b + n c 2 ( a + c ) ( c + d ) c + n d 2 ( c + d ) ( b + d ) d
a n ( a + c ) ( a + b ) = a ( a + b + c + d ) ( a + c ) ( a + b ) = a d b c
a ( a + c ) ( a + b ) [ n a ( a + c ) ( a + b ) ] = a ( a d b c ) ( a + c ) ( a + b )
Do the same thing for b,c,d.
Did you like this example?
Subscribe for all access

Expert Community at Your Service

  • Live experts 24/7
  • Questions are typically answered in as fast as 30 minutes
  • Personalized clear answers
Learn more

You might be interested in

asked 2022-10-17
Is my answer correct? Are these two events independent?
A B C 78 520 D 156 56
This is a contingency table and the question is if D is independent of A.
Now I know that if they are, then P ( A D ) = P ( A ) P ( D )
So in my case, P ( A D ) = 156 810
P ( A ) = 234 810
P ( D ) = 212 810
P ( A D ) = 0.19
P ( A ) P ( D ) = 0.07
asked 2022-10-20
In a fictional stats class, 40% of students are female, and the rest are male. Of the female students, 30% are less than 20 years old and 90% are less than 30 years old. Of the male students, half are less than 20 years old and 70% are less than 30 years old.
(a) Make a contingency table to describe these two variables
(b) Find the probability that a randomly selected studet is 30 years or older
(c) If a student is 20 years or older, what is the probability that the student is female?
(d) If a student is less than 30 years old, what is the probability that the student is 20 years or older?
My Thoughts:
(b) P(<30 years) = 1 - 0.78 = 0.22
(c) What I first did was find P(S2 given 'not A1'), but the answer doesn't make sense because the denominator ended up being smaller than the nominator.
(d) Do I solve this problem by doing 'not 20 years'?
asked 2022-11-19
why doubling the number in a contingency table changes the p-value?
i am doing a facts trouble, which is checking out if the evaluation of someone is impartial of the individual's intercourse. i'm given a contingency desk, I calculated the expected fee for each access and calculated the chi-rectangular value then I got a p-fee.
Then the query requested me to do the same thing after doubling all entries in the contingency desk, I were given a p-price smaller than the only I got earlier than. Why does this take place? Can all and sundry supply me an cause of the distinction?
asked 2022-11-21
A survey was carried out to find out if the occurrence of different kinds of natural disasters varies from on part of the town to the other. The town was divided into two as center town and town outskirts, and the natural disasters were divided into tornadoes, lighting, and fires.The survey showed these results:
Tornadoe Lightning Fires
Town Center 10 220 120
Town Outskirts 20 150 200
Do the above findings provide enough proof at 95 confidence level to indicate that the happening of natural disasters depends on the part of town?
asked 2022-10-18
Is responses in statistics the equivalent to random variables in probability?
The focus of this class is multivariate analysis of discrete data. The modern statistical inference has many approaches/models for discrete data. We will learn the basic principles of statistical methods and discuss issues relevant for the analysis of Poisson counts of some discrete distribution, cross-classified table of counts, (i.e., contingency tables), binary responses such as success/failure records, questionnaire items, judge's ratings, etc. Our goal is to build a sound foundation that will then allow you to more easily explore and learn many other relevant methods that are being used to analyze real life data. This will be done roughly at the introductory level of the first part of the required textbook by A. Agresti (2013), which covers a superset of A. Agresti (2007)
in which, is responses here (statistics) the equivalent to random variables in probability
another page in that site says
Discretely measured responses can be:
Nominal (unordered) variables, e.g., gender, ethnic background, religious or political affiliation
Ordinal (ordered) variables, e.g., grade levels, income levels, school grades
Discrete interval variables with only a few values, e.g., number of times married
Continuous variables grouped into small number of categories, e.g., income grouped into subsets, blood pressure levels (normal, high-normal etc)
We we learn and evaluate mostly parametric models for these responses.
are variables and responses interchangeable here?
asked 2022-11-05
Mary is certainly one of medical doctor Brown's patients. She has carried out a domestic pregnancy take a look at which has given a high quality end result. what's the possibility that the pregnancy take a look at used by doctor Brown in his surgical procedure will say Mary is pregnant given that the home check became nice?
Home pregnancy test is 85% accurate
Doctor Brown pregnancy test is 95% accurate
20 females are pregnant and 80 females are not
asked 2022-10-15
Why is the expected frequency during a chi square dependence test calculated the way that it is?
I understand the chi square test for testing whether or not a certain model is appropriate. I understand the process based upon which we pick the expected values. But, when it comes to the dependence test (the one where we use a contingency table), I don't understand why the expected frequency is calculated from the observed frequencies in the contingency table using (row total x column total)/grand total.
Someone please explain.

New questions

i'm seeking out thoughts for a 15-hour mathematical enrichment course in a chinese language high faculty. What (pretty) simple concern would you advocate as a subject for any such course?
historical past/issues:
My students are generally pretty good at math, but many of them have no longer been uncovered to rigorous or summary mathematical reasoning. an amazing topic would be one that could not be impossibly hard for students who have by no means written or study proofs in English.
i have taught this magnificence three times earlier than. (a part of the purpose that i'm posting that is that i have used up all my thoughts!) the primary semester I taught an introductory range theory elegance (which meandered its way toward a proof of quadratic reciprocity, though I think this become in the end too advanced/abstract for some of the students). the second one semester I taught fundamental graph idea and packages (with a focal point on planarity and coloring). The 1/3 semester I taught a class at the Rubik's dice.
the students' math backgrounds are pretty numerous: a number of them take part in contest math competitions, and so are familiar with IMO-fashion techniques, however many aren't. a number of them may additionally realize some calculus, however I cannot assume it. all of them are superb at what in the united states is on occasion termed "pre-calculus": trigonometry, conic sections, systems of linear equations (though, shockingly, no matrices), and the like. They realize what a binomial coefficient is.
So, any ideas? preferably, i'd like to find some thing a bit "sexy" (like the Rubik's cube) -- tries to encourage wide variety theory through cryptography seemed to fall on deaf ears, however being capable of "see" institution idea on the cube became pretty popular.
(Responses specifically welcome from folks who grew up in the percent -- any mathematical subjects you desire were protected within the excessive college curriculum?)