instruction
stringlengths
9
38.7k
While I was writing up the analysis in my thesis, I just came across when rechecking my test for normality, that the p-value for most continuous variables was .000, which is less than .05, and it rejects the null hypothesis which means to my understanding my data is not normally distributed. I have already completed th...
For the life of me I cannot find a way to solve this question. Any help would be appreciated! From past experience, a professor knows that the test score of students taking a final examination is a random variable with mean 65. Suppose in addition the professor knows that the variance of a student's test score is equal...
I have some data about users from different regions visiting different directories of some website. Aggregating that data I get the co-occurrence frequency matrix (for regions and directories). Now I want to distinguish two situations: The users visit directories independently from their regions There is a bijective m...
I am puzzled as to why the caret package in R does not allow tuning on the number of trees (ntree) in a random forest (specifically in the randomForest package)? I cant imagine this is an oversight on the part of the package author - so there must be a reason for it? Can anyone shed light?
After a bidirectional step wise, I have the following generalized linear model: Y = -8.18 + 1.18 v1 - 7.32 v2 In a simple linear model (with one explanatory variable), the coefficient of my variable corresponds to the slope of my line. If the coefficient is positive, the line goes up, if it is negative, goes down. If ...
Let $X,Y$ be input and output (observed) continuous variables in $\mathbb{R}$. Let $\{y_1,...,y_n\}$ be the set of $n$ observations. Is there a name for the estimator $\hat x = \int_{x \in X} x \,p(y_1,y_2,...,y_n|x) \,dx $ (mean of likelihood)? I tried googling but I could not find its name.
What is quantile regression? How can I use quantile regression to analyse technical efficiency in rubber farmers? I also want to use the production frontier. The response (y) variable is production. The explanatory (x) variables are tappable tree, fertilizer, chemical, total labour.
I have MLE curve parameter estimates for 3 populations (2 per population), and am looking for a clever way to compare them. At the moment, I am non-parametrically bootstrapping my datasets in order to create n datasets, which I then compare using a standard MANOVA procedure. I have a number of issues with this, one of ...
I was wondering if it is OK to use one-way ANOVA after normalisation to the untreated controls? This is in an animal model of wound healing where there are 4 wounds per animal, one untreated and 3 treated with different drugs. I have noticed that the healing rate differs between animals so in order to reduce the standa...
I'm implementing the k-means algorithm (in R Map-Reduce) and I wanted to verify if the output I'm getting is close enough to the true centroids of the cluster. This is how I'm verifying with a 2D dataset currently: I plot both the dataset and the centroids I've got as output and see if the centroids are close to the ce...
How can I summarize the confidence intervals for several levels of factors? This is what I got: interest rate (1.280393e+01 16.1980844628); fico range 645-649 (-3.581231e+00 1.9591171919); fico range 650-654 (-4.533451e+00 3.7764777115); fico range 655-659 (-2.797205e+00 2.2914947096); fico range 660-664...
E.g. from the Netflix prize I know that the best RMSE = 0.8563 where the test dataset has a size of n=1,408,789. Can I calculate a boundary for the MAE. If not, why can't I calculate a boundary? I started like that: RMSE = $\sqrt{\frac{\sum_{i=1}^{n}(y_{i}-\hat y_{i})^2}{n}}=0.8563$ Now I want to calculate the MAE or ...
I have a set of count data that seems to fit "Poisson" = not overdispersed, alpha = 0. The problem is, I get different results using gamlss vs glmer. Any help explaining the difference would be appreciated: Treatment is a factor with 6 levels. Trial is a random intercept factor with 3 levels. Glmer.POI <- glmer( Y ~ Tr...
This is a basic question. I have been handed a binary logistic regression. The model has significant terms, but the goodness of fit tests indicates the logit model is not appropriate. The author of the study indicates that the goodness of fit data does not invalidate the relationship between the dependent variable a...
Differential entropy of Gaussian R.V. is $\log_2(\sigma \sqrt{2\pi e})$. This is dependent on $\sigma$, which is the standard deviation. If we normalize the random variable so that it has unit variance its differential entropy drops. To me this is counter-intuitive because Kolmogorov complexity of normalizing constant ...
I am trying to fit the Weibull distribution to a dataset in R. I have a dataset, "loss", as a .csv file, and use fitdistr(loss,"invexp"). I received the message: Failure infitdistr(loss, "invweibull") : unsupported distribution How can I fit the inverse Weibull Distribution to a dataset in R? Thank you! I am wonde...
I don't know whether this is the correct forum for this but here goes: I'm trying to implement a Hidden Markov Model to be able to predict and find the best sequence/path for a training file. So far, I have the mel-frequency cepstral coefficients (MFCC) of a signal, and I am looking to train this so I can then compare ...
Suppose I have a stationary time series, does this imply that the series is also N-order stationary?
I want to determine the average difference between 1998 treatment schools (group1=1) and comparison schools (group1=0) in the following two characteristics:Proportion of female children(“female”),Average child year of birth (“yob”) I am new to Stata, so I don’t know what to type in the command window. What should I t...
I'm not quite sure how I should fit a model that has two responses. The data consists of target (x,y) co-ordinates and actual (x,y) co-ordinates. I would like to fit a model to predict a new set of points from the target, however having two variables is putting me off. There also appears to be no relationship between p...
What are popular techniques for feature extraction of shapes? I'm doing image analysis, and I want to classify a smooth object (one with smooth boundaries) from a rough object (has a zig-zag like boundary). Which feature should be fed into a Machine Learning framework?
I would like to calculate the confidence intervals for prevalence differences. If I have the CIs for the prevalence, can I simply subtract the upper limit of one Ci from the upper limit of the other, and do the same for the lower limits as well? Or is calculating the CIs more complicated than this?
I am trying to work out how to generate numbers from a bivariate distribution (any one but the normal distribution) while still being able to control the correlation between the two variables (let's call them $X$ and $Y$). When generating numbers from a normal distribution it is quite easy, as you just specify the cova...
I'm making a comparison of two surgical procedures, and I want to know how I can analyze the data I have for a meta-analysis. The overall surgical procedure is the same, but some authors choose to modify the procedure a bit. So basically I have a large number of studies with the standard procedure and a smaller number...
Given: A coin with unknown bias $p$ (Head). A strictly positive real $a > 0$. Problem: Generate a random Bernoulli variate with bias $p^{a}$. Does anyone know how to do this? For instance, when $a$ is a positive integer, then one can flip the coin $a$ times and see whether all the outcomes were Heads: if they are the...
I have a simple problem involving probability of drawing at least 1 pair of cards in a four card hand. I am not getting the right answer but I dont understand the flaw in my logic. Can anyone explain to me why my approach is wrong? The problem: Bill has a small deck of 12 playing cards made up of only 2 suits of 6...
I recently came upon a discrepancy between Matlab's classify and ClassificationDiscriminant functions. By default, they should both be doing Linear DiscriminantAnalysis, but when given unbalanced classes, they give very different results. I have created a small test script here at Gist which creates some data that is u...
I am a total novice, but I think what I'm looking for is help with an optimization problem. I have a set of about 26 items, each with a certain value. I want to distribute these items into 8 groups as equally as possible, having granted that a perfectly equal distribution is not possible because of the individual item...
Using R, I'd like to test whether multiple parameters in a regression model are equal to specific values (by default, are multiple parameters equal to 0). For example, in this regression model: score ~ beta0 + beta1*i1 + beta2*i2 + beta3*age + beta4*i1*age + beta5*i2*age I want to test H0: (beta2 = 0) and (beta5 = 0)...
I am analyzing some orthopedic data and our outcome is union vs. non-union of a fracture. One of our independent variables is whether or not the initial fracture was closed (skin intact) vs. open. Such an evaluation could be conducted by doing a Fisher exact test. In R one would simply create a 2*2 contingency table a...
Given a coin with unknown bias $p$, how can I generate variates — as efficiently as possible — that are Bernoulli-distributed with probability 0.5? That is, using the minimum number of flips per generated variate.
I've been using package lmrob in R to estimate models with heavy-tailed distribution of the residuals, which I cannot correct even with transformations of the dependent variable. I was now planing to step up the models to a HLM framework, but I would like to know if there is a procedure to estimate robust HLM (maybe in...
Suppose the time-series $X$ is hidden state Gaussian random walk and we observe $Y = X + e$, where $e$ is gaussian white noise independent of $X$. The Kalman estimator of $X$ in this case has a steady state closed form solution and corresponds to an exponential moving average smoother with constant smoothing parameter...
I am new to numerical methods, and I have to solve a problem of medical imaging. My background is computer science. I have a naive, general question. Problem Statement: I have an extremly large set of points, called 'voxels' subsequently. The set is denoted by $V$. For each voxel $v\in V$, I have to solve a standard ...
From the ?rpart documentation - na.action : the default action deletes all observations for which y is missing, but keeps those in which one or more predictors are missing. How does it impute missing values in predictors?
I have $n$, $p$-dimensional vectors and I am constructing the $p \times p$ covariance matrix using the following formula: $$\mathrm{Cov}(j,k) = \frac{1}{n-1} {\sum^n_{i=1}} (x_i(j) - {\mu}(j))(x_i(k) - {\mu(k)}) $$ However, the values in the $p$-dimensional vectors are between 0 and 1, as it is a normalized vector, a...
Suppose you have a bag of 100 coins of which 1 is biased with both sides as Heads. You pick a coin from the bag and toss it three times. The result of all three tosses is Heads. What is the probability that the selected coin is biased? My answer:- P(selecting a biased coin) = 1/100 P(getting a head thrice with the bias...
I'm doing some research into factor analysis and I've hit that barrier where I don't know what search terms to use. I'm trying to see if something is possible. Basically I have a data set with ~100 numerical variables. Each record also has a target variable which is a category. My ultimate goal is to perform knn on thi...
Is there a way to know that? Is this a good stackexchange to ask? Basically I am looking at the number of children within marriage whose biological dad is not the mother's husband during conception.
Background I have several datasets of word frequencies where some datasets have much more data than others: from 3000 samples to 20000 samples. I also have large reference corpora with millions of samples. Question Using term probabilities, I want to compute the pairwise distance between the datasets and the reference ...
I am analysing EEG data. I have data from 19 electrodes from 25 participants divided into two groups (11 and 14 subjects). I asked my student to compare these two groups with some statistical test. Surprisingly, he calculated means for every electrode (giving two groups with 19 numbers in each). I suppose that it is...
How can I calculate R2 or another measure of explained variance for non-negative matrix factorisation. Currently I calculate the total sum of squares (TSS) as the sum of the squared distance of every data point to the mean and residual sum of squares (RSS) as the squared sum of the distance of every residuum to the ori...
As a computer scientist, you often face the problem to empirically analyse the improvements in run time of some algorithm. I stumbled over the following text in a paper: These run times are averages over 10 runs per benchmark, and account for time-outs using maximum likelihood estimation (MLE) [cite]. With 90% confide...
I'm trying to do some really simple Time Series work. I started off looking at monthly counts but the more I thought about it (and the more I read posts by IrishStat) the more I realised my view of this was fundamentally flawed. My main reason for thinking this is the plethora of timing issues there are with using mont...
Assume you have a model of the form $y = x_1\Phi(\beta_0 + \beta_2x_2 +\ldots+ \beta_nx_n)+u$ where $y_i\in(0,x_{1i}]$ and $\Phi$ is the probit function. How can we estimate $\beta$s in e.g. Stata?
Suppose I have a number of samples drawn from a normal distribution $x_i \sim \mathcal{N}(\mu,C)$ with $i = 1 \dots n$. I can make observations $z_i = x_i + e_i$ for those samples which are perturbed by noise $e_i$ of known characteristic $e_i \sim \mathcal{N}(0,\Sigma_i)$. Note that the distribution of the observation...
My question regards validating the legitimacy of representing an AR(1) as a MA($\infty $) process. In my notes this is done by showing convergence in mean square, saying that: $\mathbb{E}[(\sum_{i=0}^{n-1}\phi^i\epsilon_{t-i}-Y_t)^2]=\mathbb{E}[\phi^{2n}Y_{t-n}^2]$ And then noting that: $\phi^{2n}\gamma_0 \rightarrow 0...
I have the following model and have used the effects package to plot the predicted probabilities and the confidence interval lines. However, I was wondering how I'd go about spitting out a data frame in R which has the response value, the low and high ci values, and the predicted values. Kind of like the following mod1...
How to plot the binomial distribution for p = 0.3, p = 0.5 and p = 0.7 and the total number of trials n = 60 as a function of k the number of successful trials. For each value of p, determine 1st Quartile, median, mean, standard deviation and the 3rd Quartile. Present those values as a vertical box plot with the probab...
I am struggling with this problem, can anyone tell me how can I choose the most important variables among several independent variables before fitting any models in GLMs? I really appreciate it. I have already fitted some models but it doesn't make sense for me. Thanks in advance
My teacher gave us 50 possible test questions of which he'll randomly select 25 to test us on. From the 25, we can then select 10 to do of which he'll grade the 8 best. The question is how many problems can I NOT study (of the 50) and still be guaranteed a 100 on the test? (assuming the ones I study I do so perfectly)...
I have the following joint density: $p(x_1,x_2,y_1,y_2) \propto \exp\left(−\left(x_1^2+x_2^2+c_1(y_2-y_1)^2+c_2(y_2-y_1)^4\right)\right)$ Can I use Gibbs sampling to sample from that? How can I get the full conditional distributions, and how can I draw samples from those conditional distributions which are quite compli...
I want to assess the effect of temperature on fish mortality. Both variables are time series, so the residual will be autocorrelated. Is there a regression method to deal with that? Any advice will be appreciated
We have question regarding the analysis of panel data in R (plm) which was observed over two time scales. As way of a background, we have completed an economic experiment with a group of 6-8 students, which is completed over 18 sessions (time 1) with 12 rounds per session (time 2). We have three treatments and each tr...
Two independent random variables, $X$ and $Y$, are uniformly distributed on the unit interval $(-1,1)$. Determine the density for $U=\min(X,Y)$ and for $W=\max(X,Y)$
The answer to this question gave me an interesting idea. The part that interested me was a brief description of kriging concluded by The way, kriging as usually practiced is not quite the same as least squares estimation, because Σ is estimated in a preliminary procedure (known as "variography") using the same da...
For polynomial fitting with a polynomial of degree $n$, we have $n$ degrees of freedom. Is there a similar concept for $k$ nearest neighbors? Is there any way to compare the degrees in general? I come from an EE background so I might not familiar with some of the advanced terminology.
Task: I have e.g. 1 control group and 7 experimental groups which are treated differently. All groups have a dependent binomial variable: 1 = success, 0 = no success. I want to conduct sequential tests, which version is "performing" better, between the control group and the experimental groups and stop the tests, whe...
I try to fit a model of the following form $$ Y = (\beta X - Z)^+ + \epsilon, $$ where $Y,Z \ge 0$ and $X,Y,Z \in \mathbb{R}$ and $(x)^+ = \max(x,0)$. Note that $Y,X$ and $Z$ come from a sample, especially $Z$ is not a constant. I did this in R in the following way: positivePart<- function(x){ x[x<0]<-0 return(x...
I have a short question regarding interaction variables: In a logit regression with 2 independent dichotomous variables (A and B), both variables are significant. By including the interaction (AxB) in the regression, B becomes insignificant. Is the high (0.6) and significant correlation between (AxB) and B the reason ...
I have to write code to implement regression using random forests (by default Weka provides random forests for classification). Is this possible to do?
I am performing some regression task, where I try to discover the underlying multivariate Gaussians from a set of $n$, $p$-dimensional vectors. For example, given a split of the set into $S_i$ and $S_j$ I will calculate the sample means and covariance matrices (${\sum}_{i,j}$)and decide which is the best split based on...
How do computers achieve randomness if they really do ? How to decide whether something is random or not? Is there a measure of randomness?
I have some weekly data about Apple app store ranking of the top apps listed (also of the sub categories such as games, weather, etc.). For example: week1 week2 week3 week4 ... Angry Birds 15 13 1 5 ... Weather Pro ... I am thinking about trying to estimate a paramet...
I have a presumably simple question. What does this mean: with probability 0.3 variable X is simulated as X~N(0,1). How can I simulate X using this?
In Bayesian Inference the following notation is quite common: $P(H|D) = \frac{P(D|H)P(H)}{P(D)}$ where $D$ is data and $H$ is hypothesis. Moreover $P(D)$ is represented as total probability. $P(D) = \sum P(D|H)P(H)dH$ However in my opinion notation seems to be quite sloppy. It is confusing on two fronts: 1) In order fo...
I'm trying to devise a prior for a model parameter $x$ about which I know the following things: It is strictly positive. There is a maximum possible value $x_m$. Larger values are less likely than smaller ones. In terms of a probability distribution $P(x)$, I interpret these as $P(x)=0$ if $x<0$. $P(x)=0$ if $x>x_m$...
I would like to ask you about methods of converting a discrete time Markov chain, represented by a fully known transition matrix, into a relatively small set of transition rules. For example, let there be a transition matrix: $$ \left(\begin{array}{cccc} 1-m & m & 0 & 0 \\ u & 1-u-m & m & 0 \\ 0 & u & 1-u-m & m \\ 0 & ...
I've inherited a survey from an old employee that consists of 27 questions. We have on the order of 500 respondents but not all of them answered every question as some questions are of the type 'if yes then please answer this'. The survey has an overall reported margin of error of +/- 4% at the 95% confidence interval ...
Background I have a series of Principal Components which I'm regressing on some data (it's a Blind Source Separation problem; I assume that my data is a linear combination of signals which I obtained via PCA), and I have to decide on the number of components for the model; I chose to do this via $K$-fold Cross-Validati...
I hope this clearly states the problem I have in hand. Here goes: I've trained a neural network with one initial data set that was normalized in order to guarantee an equal participation of each variable in the learning process. Once the the neural network is trained I'll have new sets of data coming to be classified. ...
I'm having a little trouble analysing a data set from the following experiment: we applied 4 treatments (control, concentration1, conc2, conc3) to 5 plants each for a grand total of 20 plants. We repeated the experiment 3 times independently (bloc). When I visualised the data, I saw that there was important variability...
I have a set of data with measurements X1 and X2 across multiple time points, T1, T2 and T3. I would like to conduct a Poisson regression using X1 and X2 on the counts of a phenomenon. An example of how my dataset would like is as follows (pardon my inelegant code): library(lme4) set.seed(888) df <- data.frame(SubID = ...
I'm trying to output the average partial effects estimated after a regression but am having some difficulty. I realize using the margeff command works around this, but I have some interaction terms in my model and I can't get margeff to work with these. I know margins works, but when I run the code below, the .tex file...
tl;dr - for OLS regression, does a higher R-squared also imply a higher P-value? Specifically for a single explanatory variable (Y = a + bX + e) but would also be interested to know for n multiple explanatory variables (Y = a + b1X + ... bnX + e). Context - I'm performing OLS regression on a range of variables and am t...
I have a cluster of $p$-dimensional data from $n$ samples which is assumed to be normally distributed as a multivariate Gaussian with sample mean ${\bar{\mu}}$ and sample covariance matrix ${\bar{S}}$. Given a new sample $x_i$ I want to test whether or not the sample belongs to this cluster. I am doing the following: ...
I'm writing a program to help me gamble on cricket, but have run into a wee problem. I've got loads of data from previous games already and have compiled various stats from it. I have calculated that after 1 over of a 20 over match, the average score is 4.5 runs, and the average final score will be 145. Assume standard...
I am looking for literature on what I call multivariate proportional data where a single observation is a vector of proportions that sum to 1. For example, each person weights their preferences for each of a fixed number of categories such that the total weight is fixed. More generally this could be multivariate data w...
I am comparing length of stay after laparoscopic and open appendectomy in over 160000 patients. LOS is typically a skewed variable so I use the median and interquartile range and ranksum test to describe the result, which is 2, IQR 2-3 and 2, IQR 2-4, p<0.0001. So there is a highly significant difference but it does no...
I just got a list of 100 p-values, some of which are associated. For details, these 100 p-values could be separated into 7 groups, each group was calculated from a expression dataset. However, these datasets had 10%~60% overlap among each other, that is the pvalues inside a dataset were independent, but were not across...
In a simple linear regression model with two independent variables, if there is a strong correlation found between the variables, it is suggested that we should include only one of them in the model. I am building a model where the dependent variable is Lunch Cost and the independent variables are Number of Class 1 Stu...
Say I have a model $y=f_n(x_1,x_2,x_3)$. Here say $y$ is categorical and binomial response. i.e. $y$ can be only 0 or 1. Data shows 87% 1 and 13% 0 values. I fit a multinomial logit on a test dataset to try to predict $y$. Validation against a validation dataset showed 70% success. (Success meaning Model prediction ma...
Recently I ran into a test using both zipf's and self-similar generated datasets. I followed the description from Jim Gray's paper on generating such datasets (Quickly Generating Billon-Record Synthetic Databases). In that paper it mentions: It is commonly thought that self-similarity and the Zipf distribution are the...
I am using R 2.15.2 GUI1.53 64-bit on MacOSX 10.5.8 to perform these analyses. I am a molecular biologist by training, not a statistician, so all this analysis represents my own bootstrapped learning and I may have lots of follow-up questions. I am performing a cox proportional hazards survival analysis on a large data...
I know how to perform a linear regression on a set of points. That is, I know how to fit a polynomial of my choice, to a given data set, (in the LSE sense). However, what I do not know, is how to force my solution to go through some particular points of my choosing. I have seen this be done before, but I cannot remembe...
I'm a master's level statistician and have been doing logistic regression for a while. I'm helping a friend who is taking an advanced stats course and ran across some terms I'm not familiar with when working with LR. One of the LR homework problems is asking for the model's proportional by chance accuracy rate, full mo...
I am building a binary logistic regression model. I am not sure if using the variables as interactions is a better choice than building separate models for level of a categorical variable. Is there a way to determine this? For ex, there are 2 categorical variable with 2 levels each - 1.Regions - East and West 2.AGI - H...
From what I understood, these models differ from CARTs for regression, mostly because they fit a linear model at the leaves of the tree instead of simply taking an average. They also "smooth" the tree by generating linear models in the intermediate steps of the tree growth process. I have been using the R implementatio...
I've been learning (lurking) from this site for a while and I finally have a question I haven't seen answered yet. I'm doing a flight test and trying to fit the resulting data to linear line. From a combination of ~14 different sensors, I can calculate the 2 values of interest. From uncertainty propagation, I can find ...
In the "Regression to the Mean" chapter of "Thinking, Fast and Slow" by Daniel Kahneman, an example is given and the reader is asked to forecast the sales of individual stores given the overall sales forecast and the sales numbers from the previous year. For instance(the book's example has 4 stores, I use 2 here for si...
OK so I have a working code to do what I want but I am new to R and feel like my solution is very clunky and there is likely a more efficient way to get the same result. I have a set of data that contain records with a date, city, and quality score. For each city and each date, I want to create an exponentially weight...
Suppose I've a random variable $X$ and a sample of it with size $N$. I count how many element of the sample fall in a specific range $a<x<b$ and I found $n$ entries, so if I use Poisson statistics I can say that the error on $n$ is $\sqrt{n}$. Now suppose I've a function $f$, quite close to the unit function, and I def...
I have a dataset like +--------+------+-------------------+ | income | year | use | +--------+------+-------------------+ | 46328 | 1989 | COMMERCIAL EXEMPT | | 75469 | 1998 | CONDOMINIUM | | 49250 | 1950 | SINGLE FAMILY | | 82354 | 2001 | SINGLE FAMILY | | 88281 | 1985 | SHOP & HOUSE ...
The formula for the standard deviation of n numbers is the same as the formula for the distance between two points in n dimensions. Could someone explain why this is and how these are related?
I am studying for a test, one section of which will cover the delta method. This problem came from that section: Let $X\sim N(\mu,n^{-1})$. Find an approximate distribution of $X^2$. (It also asks for exact distribution, but I can do that). Can you help me get started? I can't see how I can apply delta method or centr...
library(ltm) fit <- rasch(LSAT) factor.scores(fit) This code can generate latent trait scores for response patterns. How can I extract latent trait scores for each observation?
Consider a response y and data matrix X. Suppose I'm creating a model of the form - y ~ g(X,$\theta$) (g() could be any function of X and $\theta$) Now, for estimating $\theta$ using Maximum Likelihood (ML) method, I could go ahead either with Conditional ML (assuming I know the form of conditional density f(y|X) ) o...
I am trying to calculate the marginal maximum likelihood estimate of a parameter ρ given a vector of data x for person i across n items. This is in the context of Item Response Theory. The first (usual IRT) parameter, θ, is the ability (theoretically unbounded but usually between -3 and 3). The second parameter, ρ, is ...
I am having some trouble debugging an application of a linear discreet Kalman Filter. From time to time, I find that there are diagonal elements of the covariance matrix that become negative. This is clearly erroneous and causes the whole filter to blow up. What are the possible causes and remedies for this problem? I ...
I want to compare the distributions of $K$ contingency tables, where each table is $N \times M$. To make things clearer, let's work on $K=M=N=2$. Suppose I have a classical cases and controls test, where I have $2$ variables, treated or not, and cured or not. Suppose that besides testing whether the treatment is effect...