# Recent questions in Contingency Table

Recent questions in Contingency Table
Widersinnby7 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 200Do the above findings provide enough proof at 95 confidence level to indicate that the happening of natural disasters depends on the part of town?

dannigurl21ck2 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?

piopiopioirp 2022-11-17

### How do I generate doubly-stochastic matrices uniform randomly?A doubly-stochastic matrix is an n×n matrix P such that$\sum _{i=1}^{n}{p}_{ij}=\sum _{j=1}^{n}{p}_{ij}=1$where ${p}_{ij}\ge 0$. Can someone please suggest an algorithm for generating these matrices uniform randomly?

clealtAfforcewug 2022-11-16

### Over a period of 100 days, weather forecasters issue forecasts for rain on a daily basis. Based on the forecasts and actual observations, you are supposed to help them ﬁnding out if the forecasts were any good. A forecast is simply one of the following three possible statements: “no rain”, “maybe rain”, or “certainly rain”. The forecasters record the number of days they issued each of these three forecasts, and also the corresponding number of days it rained. The results are collected below:Forecast: "No rain" , Days with rain: 4, Days without rain: 18Forecast: "Maybe rain" , Days with rain: 25, Days without rain: 22Forecast: "Rain" , Days with rain: 25, Days without rain: 6Show that ${n}_{ij}$ has a multinomial distribution with unknown probabilities ${p}_{ij}$, which are the unknowns parameters in this problem. Write down the likelihood of the data ${n}_{ij}$ as a function of ${p}_{ij}$ and N.This is a past exam paper and I have no clue how to answer this in a way that could get me marks! I've written the multinomial distribution:$\frac{n!}{{X}_{1}!...{X}_{n}!}{p}_{1}^{{x}_{1}}\ast {p}_{2}^{{x}_{2}}...\ast {p}_{n}^{{x}_{n}}$But I can't work out how to do this question for the life of me! Can anyone help?

piopiopioirp 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% accurateDoctor Brown pregnancy test is 95% accurate20 females are pregnant and 80 females are not

Hallie Stanton 2022-11-04

### I have two binary matrixes, of the same size (e.j. 5000x5000). Those matrixes represent the same area, divided in cells of the same size. Each cell of one matrix can be true or false, meaning some property is present or not in this cell. One matrix represents the presence of a property A, and the other one the property B.Therefore, I can easily build a 2x2 contingency table using as variables the presence/absence of A and B: A=1 A=0B=1 a b B=0 c d a= number of cells where both A and B are presentb= number of cells where only B is presentetc.And I can apply a chi-square test on this table, building an "expected" contingency table, to assess the independency of both properties.But I also need to assess if the number of cells that "overlap" (cells that are are true in both matrixes, i.e. where both A and B are present) is higher or lower than expected if both properties were independent. Of course I can compare real and expected value of a in the real and the expected contingency tables, but what I need is some thing like a probability or a measure of how much overlap is higher or lower than expected. In some way, it can also be seen as a measure of the "correlation" between both properties? I know if I had a smaller number of cells I could use Fisher's exact test, where obtained p-value will indicate the "direction" of the relationship between A and B. But as Fisher's exact test implies factorials, it is not possible.

Payton George 2022-10-31

### If 99% of all new applicants tell the truth on their applications, then are submitted to a polygraph test which is 90% accurate what is the probability that: for an applicant who did not lie his test will confirm this for an applicant who did lie, the test will confirm this? for an applicant who did lie he will pass the polygraph for an applicant who is truthful will pass the polygraph for an applicant who failed the polygraph, lied on the application for an applicant who passed the polygraph, was fully truthful on his applicationHow do I set up a 2-way contingency table or a tree diagram for these?

Ryder Ferguson 2022-10-30

### i am seeking to solve a query regarding contingency table as a ways as I know contingency desk display matter no longer densities,and i am having difficult time comprehending this simple desk. My tries turned into basically calculating the marginal distribution however the possibilities failed to sum to one. for example I tried solving the first question via:$P\left(A,B\right)=\int \left(P\left(A,B,C\right)dC$but I'm missing something is dC probabilities or just count?

Nayeli Osborne 2022-10-27

### Can a contingent argument be proved invalid with natural deduction?I know that when it is a non-contingent contradiction it can be refuted, but for example in this reasoning:P⊢P∧QI don't know how to refute it.EDIT: What I mean is how someone can figure out that for example the fallacy of Affirming the consequent P→Q,Q⊢P is invalid reasoning without making truth tables. A mathematician could use a contingency in his reasoning inadvertently, so how could he be aware of his error?

Diego Barr 2022-10-20

### Problem: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'?

Aydin Jarvis 2022-10-18

### Using percentages to apply Fisher's exact testI have a $2×2$ contingency table, but the total sample size is too large to be able to directly apply Fisher's exact test (as it involves factorials, so I'll obtain NaN or infinity). Data are like that: A=1 A=0 B=1 10000 6900 B=0 89333 120033I know I could use chi.square instead, but I wanted to provide Fisher's exact test results. Among other reasons, because calculating left and right p-values of Fisher's exact test I can have the probabilities of positive or negative associations between variables.Could it be appropiate and acceptable to firstly transform the contingency table in percentajes, so sample size=100, then apply Fisher's exact test?

Nigro6f 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 probabilityanother page in that site saysDiscretely measured responses can be:Nominal (unordered) variables, e.g., gender, ethnic background, religious or political affiliationOrdinal (ordered) variables, e.g., grade levels, income levels, school gradesDiscrete interval variables with only a few values, e.g., number of times marriedContinuous 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?

Yazmin Sims 2022-10-17

### Is my answer correct? Are these two events independent?$\begin{array}{|ccc|}\hline & A& B\\ C& 78& 520\\ D& 156& 56\\ \hline\end{array}$This is a contingency table and the question is if D is independent of A.Now I know that if they are, then $P\left(A\cap D\right)=P\left(A\right)\cdot P\left(D\right)$So in my case, $P\left(A\cap D\right)=\frac{156}{810}$$P\left(A\right)=\frac{234}{810}\phantom{\rule[-3ex]{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}$$P\left(D\right)=\frac{212}{810}$$P\left(A\cap D\right)=0.19$$P\left(A\right)\cdot P\left(D\right)=0.07$

Kayla Mcdowell 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.

ajanlr 2022-10-15

### the use of a fact table, is the sentence below a tautology, contradiction or contingency?$\left(P⇒Q\right)⇔\left(⌝P\vee Q\right)$Also, I am not sure what the double headed arrow is supposed to mean. I know a single headed arrow means "implies" but I am not sure about the double headed one.

fofopausiomiava 2022-10-11

### For Chi-Squared test on contingency tables there is a proof to get from: $\sum \frac{\left({O}_{i}-{E}_{i}{\right)}^{2}}{{E}_{i}}$ which equals $\frac{N\left(ad-bc{\right)}^{2}}{\left(a+b\right)\left(c+d\right)\left(a+c\right)\left(b+d\right)}$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?

herraviuj 2022-10-08

### this is probably going to be a very dumb question, so my apologies in advance for that.besides, i'm seeking to decide if there may be a large difference inside the quantity of testimonies that mention sweet, that point out fruit, or that mention neither candy nor fruit, among (a) the instances and the put up, (b) the times and the herald, and, (c) the publish and the usher in.I ran this Chi-Square test with all three newspapers (from socscistatistics.com):Chi-Square contingency tableHowever, is that a correct approach to make these three separate conclusions?Or do I need to - instead - run three separate Chi-Square tests: (1) the Times and the Post (2) the Times and the Herald (3) the Post and the Herald

Jannek93 2022-10-06