PlanetMath (more info)
 Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: Very high Entry average rating: No information on entry rating
contingency table (Definition)
documentclass[12pt]article pagestyleempty setlengthpaperwidth8.5in setlengthpaperheight11in par setlengthtopmargin0.00in setlengthheadsep0.00in setlengthheadheight0.00in setlengthevensidemargin0.00in setlengthoddsidemargin0.00in setlengthtextwidth6.5in setlengthtextheight9.00in setlengthvoffset0.00in setlengthhoffset0.00in setlengthmarginparwidth0.00in setlengthmarginparsep0.00in setlengthparindent0.00in setlengthparskip0.15in par usepackagehtml par usepackageamssymb,amscd usepackageamsmath usepackageamsfonts usepackagetabls usepackagemultirow par renewedcommandmultirowsetupcentering newlengthLL settowidthLL100 par begindocument par Given a random sample of htmladdnormallinkobservationshttp://planetmath.org/encyclopedia/Polychotomous.html $ textbf{Z}_i=(Y_i,X_{i1},ldots,X_{ik})$ where beginenumerate item the htmladdnormallinkresponse variableshttp://planetmath.org/encyclopedia/Polychotomous.html $ Y_i$ are htmladdnormallinkidentically distributedhttp://planetmath.org/encyclopedia/IndependentIdenticallyDistributed.html as $ Y$ item $ Y$ is htmladdnormallinkcategoricalhttp://planetmath.org/encyclopedia/ContinuityAxiom.html in nature (coming from a htmladdnormallinkmultinomial distributionhttp://planetmath.org/encyclopedia/MultinomialDistribution.html) item each of the htmladdnormallinkexplanatory variableshttp://planetmath.org/encyclopedia/Polychotomous.html $ X_{ij}$ is categorical in nature endenumerate Then we can analyze the data by forming a emphcontingency table. The table is customarily formed by htmladdnormallinklabelinghttp://planetmath.org/encyclopedia/TotalLabeling.html the htmladdnormallinkcategorieshttp://planetmath.org/encyclopedia/Identity2.html for the response across the top, and then the htmladdnormallinkcombinationshttp://planetmath.org/encyclopedia/Choose.html of the levels for each explanatory variable down the left-most htmladdnormallinkcolumnshttp://planetmath.org/encyclopedia/ChuSpace.html. Then the htmladdnormallinkcellshttp://planetmath.org/encyclopedia/AttachingMap.html are filled with counts or frequencies of htmladdnormallinkoccurrenceshttp://planetmath.org/encyclopedia/Occurrence.html corresponding to the specific explanatory variable level htmladdnormallinkcombinationhttp://planetmath.org/encyclopedia/CombinatoryLogic.html to the left and the response to the top. par The simplest example of a contingency table is where the response variable $ Y$ comes from a htmladdnormallinkbinomial distributionhttp://planetmath.org/encyclopedia/BinomialProbabilityFunction.html (with two possible responses $ r_1$ and $ r_2$) and there is only one explanatory variable $ X$, which has only two levels, $ A_1$ and $ A_2$. This is an instance of a emph2 way contingency table: begincenter begintabular|c|c|c| hline & $ r_1$ & $ r_2$
hline $ A_1$ & $ n_{11}$ & $ n_{12}$
hline $ A_2$ & $ n_{21}$ & $ n_{22}$
hline endtabular endcenter where $ n_{ij}$ corresponds to the count or frequency of level $ A_i$ and response $ r_j$. par textbfExample A penny $ P$ and a quarter $ Q$ are each tossed separately 100 times. The htmladdnormallinkoutcomehttp://planetmath.org/encyclopedia/Game.html for each toss is recorded, $ H$ for head and $ T$ for tail. The htmladdnormallinknumbershttp://planetmath.org/encyclopedia/Number.html of heads and tails obtained from the tosses are recorded in the following 2 way table: begincenter begintabular|c|c|c| hline Coin Type & $ H$ & $ T$
hline $ P$ & 45 & 55
hline $ Q$ & 56 & 44
hline endtabular endcenter A emph3 way contingency table consists of one response variable and two explanatory variables. par textbfExample Four dice are used in an experiment to test whether they are more or less the “same” (having the same probability htmladdnormallinkdistributionhttp://planetmath.org/encyclopedia/GeneralizedFunction.html). Each die comes from a combination of one of two casinos, $ C_1$ and $ C_2$, made by one of two manufacturers, $ M_1$ and $ M_2$. Furthermore, no two dice have the same combination. Now, each dice is tossed 120 times and the outcomes (1 through 6) are recorded. We have the following contingency table: begincenter begintabular|c|c|c|c|c|c|c|c| hline Casino & Manufacturer & 1 & 2 & 3 & 4 & 5 & 6
hline multirow2LL$ C_1$ & $ M_1$ & 17 & 21 & 19 & 20 & 22 & 21
cline2-8 & $ M_2$ & 22 & 20 & 20 & 19 & 21 & 18
hline multirow2LL$ C_2$ & $ M_1$ & 21 & 18 & 18 & 23 & 21 & 19
cline2-8 & $ M_2$ & 20 & 19 & 18 & 21 & 21 & 21
hline endtabular endcenter The explanatory variables are the casinos ($ C$'s) and the manufacturers ($ M$'s), and the response variable is the number appearing on the top htmladdnormallinkfacehttp://planetmath.org/encyclopedia/ImproperFace.html of a thrown die ($ 1$ through $ 6$). par enddocument

Anyone with an account can edit this entry. Please help improve it!

"contingency table" is owned by CWoo. [ full author list (3) ]
(view preamble)

View style:

Log in to rate this entry.
(view current ratings)

Cross-references: face, distribution, numbers, outcome, binomial distribution, combination, occurrences, cells, columns, combinations, categories, labeling, explanatory variables, multinomial distribution, categorical, identically distributed, response variables, observations
There are 4 references to this entry.

This is version 8 of contingency table, born on 2004-08-10, modified 2007-12-18.
Object id is 6096, canonical name is ContingencyTable.
Accessed 5554 times total.

Classification:
AMS MSC62H17 (Statistics :: Multivariate analysis :: Contingency tables)

Pending Errata and Addenda
None.
[ View all 1 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)