Jannek93

2022-10-06

If ${\chi}^{2}$=0 for a dataset, are the frequencies of the values in the contingency table all the same?

Could I say that if the ${\chi}^{2}$ value of a dataset is 0, then the frequencies of the values of the cells in the contingency table are all the same? I have noticed that if I change the frequency of any of these values to be more than the other, that ${\chi}^{2}$ stops being 0.

$$\begin{array}{lcc}\phantom{\rule{1em}{0ex}}& 1& 2\\ 1& 8& 8\\ 2& 8& 8\end{array}$$

${\chi}^{2}=0$

Could I say that if the ${\chi}^{2}$ value of a dataset is 0, then the frequencies of the values of the cells in the contingency table are all the same? I have noticed that if I change the frequency of any of these values to be more than the other, that ${\chi}^{2}$ stops being 0.

$$\begin{array}{lcc}\phantom{\rule{1em}{0ex}}& 1& 2\\ 1& 8& 8\\ 2& 8& 8\end{array}$$

${\chi}^{2}=0$

Peutiedw

Beginner2022-10-07Added 9 answers

It depends on which chi-square test you're talking about. There are many. One frequently used chi-square test with contingency tables is a test of independence of rows and columns. Consider this table:

$$\overline{)\begin{array}{rrr}2& 12& 14\\ 3& 18& 21\\ 5& 30& 35\end{array}}$$

The numbers in the rightmost column to the right of the vertical line are the sums of the numbers in the rows to the left of the line; the numbers in the bottom row below the horizontal line are the sums of the numbers in the columns above the line; the 35 in the lower right is the sum of the two numbers above it, or equivalently, of the two numbers to its left, or, again equivalently, of the four numbers in the $2\times 2$ table above and to the left of the margins.

Take the number in each cell in the $2\times 2$ table to be the number of individuals in the sample that fall in that cell. The null hypothesis says the probability that an individual is in a particular row is independent of which column that individual is in and vice-versa. The observed numbers are totals in the sample rather than in the population, so you generally won't see perfect independence in the sample even if the null hypothesis is true. Since they're based on the sample rather than on the whole population, if we say the probability of being in the first row is $14/35=2/5$ (taking the numbers 14 and 21 from the right margin), that is an estimate. Similarly we can estimate the probability of being in the first column as $5/35=1/7$. The probability of being in the cell that is the upper left corner of the table, assuming that the null hypothesis of independence is true, is therefore estimated as $(14/35)\times (5/35)=2/35$ Since the sample size is 35, the expected count in the first cell is therefore $(14/35)\times (5/35)\times 35$ (and the obvious cancelation of 35 with 35 would happen even if all of the numbers had been different). Call this estimated expected value the expected count in the first cell.

In various chi-square tests (not all chi-square tests, but most chi-square tests that involve categorical data), the test statistic can be written as

$$\sum \frac{(\text{observed}-\text{expected}{)}^{2}}{\text{expected}}.$$

If you work out the chi-square test statistic for the table with the particular numbers I've put there, you'll find it's exactly 0, simply because I chose the numbers to make that happen.

But the four numbers are not equal.

On the other hand, if you're doing the simple chi-square test of the null hypothesis that says an ordinary six-sided die is "fair", then the "expected" counts will each be 1/6 of the sample size---thus all equal to each other---and the chi-square test statistic then won't be 0 unless all six counts in the sample are equal.

Bottom line answer to your question: No.

$$\overline{)\begin{array}{rrr}2& 12& 14\\ 3& 18& 21\\ 5& 30& 35\end{array}}$$

The numbers in the rightmost column to the right of the vertical line are the sums of the numbers in the rows to the left of the line; the numbers in the bottom row below the horizontal line are the sums of the numbers in the columns above the line; the 35 in the lower right is the sum of the two numbers above it, or equivalently, of the two numbers to its left, or, again equivalently, of the four numbers in the $2\times 2$ table above and to the left of the margins.

Take the number in each cell in the $2\times 2$ table to be the number of individuals in the sample that fall in that cell. The null hypothesis says the probability that an individual is in a particular row is independent of which column that individual is in and vice-versa. The observed numbers are totals in the sample rather than in the population, so you generally won't see perfect independence in the sample even if the null hypothesis is true. Since they're based on the sample rather than on the whole population, if we say the probability of being in the first row is $14/35=2/5$ (taking the numbers 14 and 21 from the right margin), that is an estimate. Similarly we can estimate the probability of being in the first column as $5/35=1/7$. The probability of being in the cell that is the upper left corner of the table, assuming that the null hypothesis of independence is true, is therefore estimated as $(14/35)\times (5/35)=2/35$ Since the sample size is 35, the expected count in the first cell is therefore $(14/35)\times (5/35)\times 35$ (and the obvious cancelation of 35 with 35 would happen even if all of the numbers had been different). Call this estimated expected value the expected count in the first cell.

In various chi-square tests (not all chi-square tests, but most chi-square tests that involve categorical data), the test statistic can be written as

$$\sum \frac{(\text{observed}-\text{expected}{)}^{2}}{\text{expected}}.$$

If you work out the chi-square test statistic for the table with the particular numbers I've put there, you'll find it's exactly 0, simply because I chose the numbers to make that happen.

But the four numbers are not equal.

On the other hand, if you're doing the simple chi-square test of the null hypothesis that says an ordinary six-sided die is "fair", then the "expected" counts will each be 1/6 of the sample size---thus all equal to each other---and the chi-square test statistic then won't be 0 unless all six counts in the sample are equal.

Bottom line answer to your question: No.

Assume that when adults with smartphones are randomly selected, 54% use them in meetings or classes (based on data from an LG Smartphone survey). If 8 adult smartphone users are randomly selected, find the probability that exactly 6 of them use their smartphones in meetings or classes?

Write formula for the sequence of -4, 0, 8, 20, 36, 56, 80, where the order of f(x) is 0, 1, 2, 3, 4, 5, 6 respectively

A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes in the n independent trials of the experiment.n=20,

p=0.7,

x=19

P(19)=

In binomial probability distribution, the dependents of standard deviations must includes.

a) all of above.

b) probability of q.

c) probability of p.

d) trials.The probability that a man will be alive in 25 years is 3/5, and the probability that his wifewill be alive in 25 years is 2/3

Determine the probability that both will be aliveHow many different ways can you make change for a quarter??

(Different arrangements of the same coins are not counted separately.)One hundred people line up to board an airplane that can accommodate 100 passengers. Each has a boarding pass with assigned seat. However, the first passenger to board has misplaced his boarding pass and is assigned a seat at random. After that, each person takes the assigned seat. What is the probability that the last person to board gets his assigned seat unoccupied?

A) 1

B) 0.33

C) 0.6

D) 0.5The value of $(243{)}^{-\frac{2}{5}}$ is _______.

A)9

B)$\frac{1}{9}$

C)$\frac{1}{3}$

D)01 octopus has 8 legs. How many legs does 3 octopuses have?

A) 16

B 24

C) 32

D) 14From a pack of 52 cards, two cards are drawn in succession one by one without replacement. The probability that both are aces is...

A pack of cards contains $4$ aces, $4$ kings, $4$ queens and $4$ jacks. Two cards are drawn at random. The probability that at least one of these is an ace is A$\frac{9}{20}$ B$\frac{3}{16}$ C$\frac{1}{6}$ D$\frac{1}{9}$

You spin a spinner that has 8 equal-sized sections numbered 1 to 8. Find the theoretical probability of landing on the given section(s) of the spinner. (i) section 1 (ii) odd-numbered section (iii) a section whose number is a power of 2. [4 MARKS]

If A and B are two independent events such that $P(A)>0.5,P(B)>0.5,P(A\cap \overline{B})=\frac{3}{25}P(\overline{A}\cap B)=\frac{8}{25}$, then the value of $P(A\cap B)$ is

A) $\frac{12}{25}$

B) $\frac{14}{25}$

C) $\frac{18}{25}$

D) $\frac{24}{25}$The unit of plane angle is radian, hence its dimensions are

A) $[{M}^{0}{L}^{0}{T}^{0}]$

B) $[{M}^{1}{L}^{-1}{T}^{0}]$

C) $[{M}^{0}{L}^{1}{T}^{-1}]$

D) $[{M}^{1}{L}^{0}{T}^{-1}]$Clinical trial tests a method designed to increase the probability of conceiving a girl. In the study, 340 babies were born, and 289 of them were girls. Use the sample data to construct a 99% confidence interval estimate of the percentage of girls born?