instruction
stringlengths
9
38.7k
I just finished "An Introduction to Statistical Learning". I wondered whether using cross-validation to find the best tuning parameters for various machine learning techniques is different from data snooping? We are repeatedly checking which value of the tuning parameter results in a best predictive result in the test...
What formula should be used for sample size calculations for paired ordinal data? Imagine we have an intervention and we want to measure the effect based on before and after measurements of an ordered outcome (say a Likert scale). I know how to calculate for a t-test for paired continuous data and how to calculate for...
By the definition (1) $S(x)=\begin{cases} S_0 = a_0x^3 + b_0x^2 + c_0x + d_0, & \text{if }t_0\le x\le t_1\\ .....\\ S_{k} = a_kx^3 + b_kx^2 + c_kx + d_k, & \text{if }t_{k-1}\le x\le t_k\\ \end{cases} $ Using the necessary conditions which ensure that $S(x)$ is twice differentiable at the knots $t_0,...,t_k$...
I run two univariate linear regressions within one sample (same subjects, two different conditions). Now I would like to know how to compare the regression coefficients in order to find out whether they differ significantly. All of the methods I find apply to a case with two different independent samples. How do I do t...
I know there are similar posts, and I've read a few of them already, but none of them give explanations that I actually understand. I'm completely new to statistics and am finding it more difficult that there seems to be many versions of tests suggested when comparing 2 poisson distributions. The worst part, is I'm not...
I am confronted with the exercise below. I have no given solution, so I hope someone can tell me whether my solution is right or wrong. I want to show the deterministic linear model $\quad \boldsymbol y = \boldsymbol X \boldsymbol \beta + \boldsymbol u,\quad \boldsymbol u \sim N(0,\sigma^2 \boldsymbol I) \quad$ corre...
Why do statisticians discourage us from referring to results as "highly significant" when the $p$-value is well below the conventional $\alpha$-level of $0.05$? Is it really wrong to trust a result that has 99.9% chance of not being a Type I error ($p=0.001$) more than a result that only gives you that chance at 99% ($...
For a linear regression model obtained by the R function lm, I would like to know if it is possible to obtain the Mean Squared Error by a command. I had the following output of an example: > lm <- lm(MuscleMAss~Age,data) > sm<-summary(lm) > sm Call: lm(formula = MuscleMAss ~ Age, data = data) Residuals: Min ...
Thanks in advance for the help. Suppose I have a set of data of the form [feature, rating]. For the sake of argument lets assume feature can be movie A or movie B and rating is a ranked, continuous value on the interval [0,100]. Suppose also that the data set is very large. In reality I have several more features bu...
For $n$ distinct observations, there are ${2n - 1 \choose n-1}$ distinct bootstrap (re)samples. Could someone please provide a simple explanation? I found http://statweb.stanford.edu/~susan/courses/s208/node11.html, which includes the following: The set of all bootstrap resamples is the $n$ dimensional simplex $$C_...
I am trying to understand a neuroscience article by Karl Friston. In it he gives three equations that are, as I understand him, equivalent or inter-convertertable and refer to both physical and Shannon entropy. They appear as equation (5) in the article at http://www.fil.ion.ucl.ac.uk/spm/doc/papers/Action_and_behavior...
Is it possible to apply the law of the iterated logarithm (e.g. http://en.m.wikipedia.org/wiki/Law_of_the_iterated_logarithm) to derive non-trivial (i.e. bounded) 100% confidence intervals for population averages? An abstract (http://www.tandfonline.com/doi/pdf/10.1080/10485250410001713963) gives at least such hint. Ho...
Imagine you would like to use a simple Gibbs sampling to resample from a joint probability distribution which is difficult to model (but you know all the conditionals $Pr\left(X_i|X_1,...,X_{i-1},X_{i+1},...,X_N\right)$, for $i=1,...,N$, hence the Gibbs sampling). At the end, you would have a set of many drawn vectors ...
I have a random variable $X$, which can take $n$ values and is distributed according to multinomial $\Theta=(\theta_1, \theta_2, \cdots, \theta_n)$. I observe a random variable $Y$, where I have that $P(Y=j|X=i)=c_{j,i}$. Let $C$ be the matrix $[C_{j,i}]_{1\leq j,i \leq n}$. I have that $C$ is a full rank matrix. The...
I'm trying to calculate the probability of drawing specific cards in a deck. I know that I can use multivariate hypergeometric distribution to calculate for a defined success. I'm wondering how I can do the same for a range of acceptable successes. For example (if k is the number of successes): Drawing less than k c...
I wrote a Naive Bayes Classifier and want to be able to test how much information one variable gives about another. The idea is to use the ones that are the most orthogonal and avoid using highly redundant variables. My idea was to use the mutual information, but have found that it is not as clear cut as I first thoug...
I want to normalize all of my preprocessing techniques between 0 and 1 so I want to know what the PCA range of values is so that I can apply a proper normalization to it. I applied PCA by using the result of SVD. For example, I saw that the SVD range of values was limited to positive values, so I feature scaled to norm...
Is it meaningful and possible to perform a one-tailed KS test? What would the null hypothesis of such a test be? Or is the KS test inherently a two-tailed test? I would benefit from an answer that helped me understand the distribution of $D$ (I am working through Massey's 1951 paper, and find the description challengin...
I am currently trying to analyze some pupillometry data. The device I use gives me X and Y measurements of the pupil area (from which I compute the total area via $A = \pi \times \left(\frac{d}{2}\right)^2$ ). The X-Y plot of my data looks like this: In gray you can see my raw data points. As you see, though this effe...
I am working on a high-dimensional dataset (1776 variables). When I read the csv file, R loads variables (with 0 or 1 values) as class of "integer". Is it important to convert these variables to factors before building predictive models (e.g gbm, randomForest, SVM, etc.)? What if I want to use PCA to reduce the dimensi...
Suppose age is normally distributed with mean 20 and standard deviation 5. How do you ensure that you get only positive values when you sample age from this distribution? I am trying to impute missing data. I am assuming that it is MAR (missing at random) since the missingness depends on gender. The missing ages come f...
I have balanced training data: 300 positives and 300 negatives, but the test data is unbalanced: I have 15 positives and 60 negatives. Will the unbalanced test data impact classification accuracy? Actually, I tried to collect balanced test data (30 pos & 30 neg). The precision on positives are better. Is the reason the...
I have a collection of training documents with publication dates, where each document is labeled as belonging (or not) to some topic T. I want to train a model that will predict for a new document (with publication date) whether or not it belongs to T, where the publication date might be in the past or in the future. A...
I'm looking into the possibility of using a non-causal time series filter for some data. The goal is filtering (for the purpose of anomaly detection). However, this is not particularly relevant. I'm wondering how simulation of such a time series would work? Say for example your time series model were: $$y_t = y_{t-1}+y...
We call the integral of a probability density function (PDF) a cumulative distribution function (CDF). But what's the cumulative sum of a probability mass function (PMF) called? I've never heard the term "cumulative mass function" before, and the Wikipedia page for it redirects to the CDF page, so I'm confused what the...
Z-normalization means rescaling the feature $X$ by subtracting the average $\mu$ and dividing by its standard deviation $\sigma$, i.e., $(X-\mu)/\sigma$. What is the usefulness of normalizing data for machine learning?
I recently read an online discussion about confidence levels and confidence intervals. To be honest, I'm confused. What's the bottom line there? For a specific statement, say, Foobar is 3.45 (with CI = [3.08, 3.82] at 99% confidence level) my understanding is that if the experiment/measurement is done many times ...
I'm running a Ridge regression with about 1200 parameters (and about 30000 datapoints). I noticed that for some values of ridge, the weights look qualitatively different beyond a certain point. In particular, higher values for the ridge parameter will yield weights that clearly have some kind of structure to them, whe...
I am trying to learn multivariate time series using R. I have two time series and I want to see if I could use one of those to predict the other one, and after that check if the model holds or there is no relationship between both variables. Does anyone have an example that I could use to understand this concept? Thank...
Has euclidean distance any advantage in compare to another distance based methods like Manhatan distance or Maximum difference metric?
I am trying to figure out the 'standard' way of handling multiplicative error in a linear model, i.e. my model reads: $$ Y_i = (ax_i + b)\varepsilon_i , \quad \varepsilon_i\sim\mathcal{N}(1, \sigma^2) $$ How do I fit this (in R)? My idea was to use a log transform on both sides: $$ Z_i = \log(Y_i) = \log(ax_i + b) + \l...
I need to understand the Rayleigh distribution for a homework assignment in computer networks. Unfortunately, I lack the background knowledge in the field of statistics and probability theory to understand the descriptions that are given elsewhere about the Rayleigh Distribution, as it leads me from one page to another...
I was wondering if anyone had ever used down-sampling to build random forests with data that has unbalanced classes. Basically down-sampling samples (with replacement) x*min from the population where x is the number of classes and min is the size of the smallest class. So it is sampling min number of observations from ...
I learned bootstrap is used to treat non-normality of residual and it basically does resampling. I did bootstrapping on Stata and compared the result with normal regression. reg salary salbegin educ, vce(bootstrap, reps(1000)) ------------------------------------------------------------------------------ ...
I have a cognitive architecture solving a set of tasks. Also I have data of human subjects solving the same set of tasks. Now I want to see whether I can find a relationship between the performance of the architecture and that of human subjects (e.g: if its hard for the architecture its also hard for human subjects). ...
I'm looking at p. 355 of Gelman's Bayesian Data Analysis (3rd ed.), for which there is no errata, and I see this: In the normal regression model, a convenient non-informative prior distribution is uniform on $(\beta,\, \log\sigma)$ or, equivalently, $$p(\beta,\, \sigma^2|X) \propto \sigma^{-2}$$ Shouldn't it say ...
Is there a way to test for the significance of the difference-in-differences in adj. R²s in Stata? Let's say I have four subgroups: pre-treatment, pre-control, post-treatment, post-control and I want to figure out whether the difference-in-differences of the adj. R² of the same regression (e.g., R² of Y = b0 + b1*X + e...
I have a vector of observed frequencies that have zero values in some cells and a vector of expected frequencies generated by a model. I would like to do a likelihood ratio test rather than a chi squared test because I have different nested models and would like to use $2 \ln\cal{L}$ difference to evaluate the models....
I am working on a multinomial logistic regression problem which involves features from the dependent variable. It might be better to describe the problem by using the example in mlogit mlogit manual Here comes the training data, The goal is to predict the fishing mode based on three features, 1) price, 2) catch - bot...
I have a set of vectors $\{V_i\}$ in $n$-dimensional space. There is a number corresponded to each vector $\alpha_i = f(V_i)$ ($\alpha_i$ can be negative). I want to find a hyperplane which would maximize the difference between sums of $\alpha_i$ on the different sides of the space, divided by plane. What is the best ...
My endogenous variable is very likely to be measured with error, but also confounded by unobservables. I have an instrument that rises with the value of the endogenous variable, at the same time it is exogenous to the the error in the outcome equation.
I am trying to figure out what I did wrong or what I could do to get accurate results. I have n vectors of data, and I am trying to decide whether each dataset is unimodal or bimodal. I assumed that it could be a mixture of Gaussians, so in MATLAB I attempted: fit1 = gmdistribution(data(:,x),1) %x is the index for ea...
When using the combinef function from Rob Hyndman's very useful hts package for forecasting hierarchical and grouped time series, there does not seem to be a way to constrain the optimally combined forecasts to be positive- the starting forecasts can be positive, but can go negative through the reconciliation process. ...
The application here is interpreting the correlation coefficient $r$ in terms of $X$'s ability to predict $Y$ for extreme values of $X$. For example, if $r = .8$, then what is $p(Y < 0 | X < -2)$?
Read something about the Hausman test that didn't sound right in some grad course handout online. It stated that the Hausman null of OLS and IV not being statistically different, if not rejected, means there is no evidence of endogeneity. It also states that under the null it is assumed that OLS is consistent+efficient...
There are well-known HOV tests, for example Levene's, Brown-Forsythe's, Bartlett's available in SAS and R. But $C_v$ also deals with dispersion, can we use it to understand the degree of HOV? July 15, 2014 UPDATE: For example, if $C_{v_1}$ > $C_{v_2}$, where $C_{v_1}$ is the coefficient of variation for sample 1 an...
My question is not about statistical programming. We know how to code the software in a regression with many independent variables. My question is about how the computer software controls for all variables at the same time mathematically. Simple correlation of two variables is easy to understand, as each variable has t...
What is the benefit of optimizing our neural network error function using back prop rather than just using gradient or stochastic gradient descent directly on the error function? How come we don't just take the partial derivative of the error function with respect to every weight and do gradient or stochastic gradient ...
I am hoping to use a regularised regression technique, using cross validation, to fit a linear model to a set of predictors which have some highly correlated variables. However, I also know (highly suspect) that there is a significant amount of heteroskedasticity in the errors. I saw this question: Ridge and LASSO give...
What is the difference between multi-label classification and multiclass classfication. Speficially, what is the difference between a label and a class? Please provide a clear example. "Multiclass classification should not be confused with multi-label classification, where multiple labels are to be predicted for each ...
When I am reading Murphy's Machine Learning A Probabilistic Perspective. In chapter 3.2. I have some doubt. I think the author want to express is two things. First, we can use Bayes formula to computer posterior, combine likelihood and prior. Second, if data is big enough, we can compute it directly. $1$ or $0$ depend...
I need to calculate the difference between six time series in three ways: Time Series are: Kamel, Dumper, Graben, Traktor, Generator Methods are: Euclidean distance, Manhattan distance and maximum distance For example, I show the differences between these time series for Euclidean distance in a table like this: (...
When I started with ANN I thought I'd have to fight overfitting as the main problem. But in practice I can't even get my NN to pass the 20% error rate barrier. I can't even nearly beat my score on random forest! I'm seeking some very general or not so general advice on what should one do to make his NN start capturing ...
I am currently doing a study into factors that affect mortality in a particular type of bacterial infection. I would like to compare certain patient characteristics. One of which is the specialty that the patient is under. I currently have a variable in SPSS that has three values according to the three specialties I ha...
I want to test for the effect of interaction between two variables using a repeated measures logistic regression but I don't know how. I am using Stata and the following lines: xtset participant xtgee FIRST_VAR SECOND_VAR, fam(binomial) link(logit)
I have a dataset where the predictive variables contain only ones and zeros, and the response variable also contains only ones and zeros. I would like to build a model in R to describe their relationship. I know that a logistic model is suitable for a binary response variable, but what is an appropriate model for binar...
I often hear about the bias-variance tradeoff to evaluate classifiers. Now I want to calculate them. I often compute the AUC of a binary classifier to evaluate its performance and do a 10-fold cross-validation. My advisor told me to compute the variance of the 10-folds cross-validation AUCs. He said that this variance ...
I have a sample of 100 groups, each with 50 elements. All elements in each group are characterized with a single "size" value. The sizes of all the elements in a group (with 50 elements) are normalized by dividing them with the size of the maximal element (in their group, regardless of the other 49). Hence I have 100 g...
Suppose you impute a variable using a normal distribution with mean 10 and sd 5. Is it better to draw 1000 random samples from this normal distribution, take the average, and then use this to impute this missing value? Or can I just take one draw from this distribution and use this as the value to impute the missing da...
I have a data set that includes the different response times of a user that is visiting a web application. For example, a visitor enters www.test.com in the browser and navigates through this domain watching child pages like www.test.com/news, www.test.com/overview, www.test.com/overview/current, etc. If a user watches...
(i) Is it true to say that if the sample frame is not a random selection (such as a convenience sample), then the sample frame is not representative of the true population? (ii) We can always do a G*Power analysis to determine the sample size. But how do we determine if the sample frame represents the true population o...
I am trying to understand how to obtain $p$-values for the one-sided Kolmogorov-Smirnov test, and am struggling to find CDFs for $D^{+}_{n_{1},n_{2}}$ and $D^{-}_{n_{1},n_{2}}$ in the two-sample case. The below is cited in a few places as the CDF for $D^{+}_{n}$ in a one-sample case: $$p^{+}_{n}\left(x\right) = \text{P...
Objective: I want to test the effect of a regulatory change using a classical pre-post/treatment-control DiD design (Y = POST + TREAT + POSTxTREAT + e). Problem: Treatment & control obs. are from different countries. Although these countries are similar with respect to many relevant aspects, a visual check of the paral...
I'm really new to stats and R and I suspect I'm missing something obvious. I have a set of memberships all who start after a point in time (six months ago). I have done my query to estimate the number of days in the membership to today marking those still ongoing as censored. I've done my plot from the data so the max...
I paper I am trying to replicate used Eviews to estimate their state space model (by maximizing the associated maximum likelihood). They used the BHHH and Marquardt algorithms. My question is given that the Marquardt algorithm is generally used to solve least square type problems what is Eviews doing to allow it to be ...
I performed multiple pooled cross-sectional regressions with the same time-intervals (5years) in different years. I'm wondering now on how to aggregate the different regression outputs. Does it make sense to average the estimated coefficients or do you rather use one simple pooled regression over all $t$s? And assuming...
I often hear the claim that Bayesian statistics can be highly subjective. The main argument being that inference depends on the choice of a prior (even though one could use the principle of indifference o maximum entropy to choose a prior). In comparison, the claim goes, frequentist statistics is in general more object...
I am working with time series values which are all in the closed interval [0, 1]; these values represent relative frequencies, i.e., empirical probabilities. I would like to create a model such that all forecasted values are within [0, 1], but it would also be fine if the model's output was strictly within the open int...
I'm trying to estimate a binary function of $Y$~$Bernouli(p_{i})$ where $p_{i}=f(age)$ where f is an unknown continuous function. There are obviously a lot of methods to try to reconstruct f (splines, Gaussian processes, etc), but what if my age observations are collapsed into buckets (18-29, 30-44,etc)? Obviously, it'...
I have read many articles, but they are hard to understand. Please explain regression adjustment for propensity scores in a mathematical way. My understanding of regression adjustment is to include propensity score as an independent variable into the model (where Y is outcome variable): Y = intercept + coefficent$_a\c...
If I generate a random float value between 0…1, say to 40 digits, or n digits, aren't the chances of getting a true zero (0) or a true one (1) incredibly small? On the zero condition, every 0–9 digit has to be zero, and on the one condition, the first integer must be one and the rest should default to zero. Does that l...
I understand that if a process depends on previous values of itself, then it is an AR process. If it depends on previous errors, then it is an MA process. When would one of either of these two situations occur? Does anyone have a solid example that illuminates the underlying issue regarding what it means for a process...
There seems to be many different methods of calculating $C_p$/$C_{pk}$ values in SPC, and I need help in determining which one to use at any given situation. Currently, we need to show $C_p$/$C_{pk}$ values when drawing two different chart. X-MR Chart X-Bar R Chart Let's assume we have an LSL/USL of 3.0/3.2 respecit...
I have a problem where I want to use a classifier for it. So I defined a set of features and created a dataset. Now I want to generate some plots to understand the features. I came across the Scatterplot Matrix or the Correlation Matrix, but I'm so confused about if they are the same thing or not. 1 - Visualizing corre...
Hi guys I am trying to writ e a code on python to correct forecast data using Kalman Filter. I am following the equations and recommendations in this link : http://www.swarthmore.edu/NatSci/echeeve1/Ref/Kalman/ScalarKalman.html. At some point, I have written a function which satisfies me since I don't know whatsoever h...
I understand that PCA is used for dimensionality reduction to be able to plot datasets in 2D or 3D. But I have also seen people applying PCA as a preprocessing step in classification scenarios where they apply PCA to reduce the number of features, then they use some Principal Components (the eigenvectors of the covaria...
I am using a support vector regression is order to get estimates of a variable y. I want to receive a probability distribution of my estimates and not just point estimates. I want to predict Gaussian Distributions for every point where the mean should be my point and I will also give a variance. What I am thinking in o...
PROBLEM There is an urn with a set of balls where each ball is labeled with a different integer. The numbers on the balls are known and are not a range of integers. For example the set of balls could be $B_k$ = {1,4,67,3,12}. There are two robots, $A$ and $B$, which draw a set of $n$ balls with replacement. Let $a_i$ r...
I am trying to implement a mixture model of probits to infer the best decision boundary for every latent subpopulation. When doing Gibbs sampling, we eventually have to compute $P(y^* | w_c)$ where $y^*$ is the auxilary variable in the augmented version and $w_c$ are the weights or the $\beta$ coefficients in a regress...
Consider the constraint optimization $\text{argmin}_{\beta}(f(\beta)+\lambda g(\beta))$ can someone define $\beta(\lambda)$. That is, what is the relationship between $\lambda$ and $\beta$?.
I want to compare the frequency of retweets between 2 groups of unequal size. I've got the total tweet count and the retweet count for each user. I was hoping the R Cookbook webpage would help but the tests presented there seem to be more suited for repeated measures and equal sample sizes for the two groups: http://ww...
I'm building regression models on four the different but related data set and at the end, I want to test the significance of models. Since my models are built in a different data set, it's not comparable. But there are some hierarchy in my dataset. 1) The output in my main dataset is the sum of the outputs of data se...
I am applying binary logistic regression as my dependent variable is a dichotomous variable with 740 sample size. I have used enter method to input my variables and have designed two blocks. In block 1 I have tried to see the impact of only demographic variables and in block 2 I have added 10 new predictors. Chi-Square...
I'm investigating environmental effects (wind) on acoustic receiver detection probability for two types of transmitters using a binomial glmer. While my model analysis indicates that there's a significant effect between wind speed and transmitter type, graphical visualisation does not confirm this. If I'm correct, an i...
I am doing a correlation analysis testing summated likert scales. However, one of the correlation analysis shows an unsignificant pearsons r (p = 0.068), BUT spearman's rho is 0.044. What should I conclude from that? I know that likert scales are ordinal, but to run the correlation analysis I am assuming interval scale...
I found somewhere such statement, but on the other hand in some sources I found, that it is ok. What about risk of overfitting while using 1-NN in binary classification problem where explanatory variables are TF-IDF values (cosine measure)?
I want to test whether Alzheimer's disease causes a change in brain aging compared to healthy patients. Therefore I have constructed a linear regression model of spectral parameters of brain recordings(the features, or dependent variables) versus age (age is the independent variable). Now I wish to fit the model on the...
I am doing data analysis in the mobile ad targeting domain. I have around 18 features and for a combination of these features, the result is either True or False (1/0) depending on whether the impression was clicked or not. The problem here is that the output class is highly skewed. Click though rate is around 0.4%. (...
I want to study the economy of an online game. In specific I want to examine if there is a possibility to create a prediction model. I would try to describe the whole concept and I am asking for papers or models that could fit in my occasion. I have made a research for papers, but I haven't found anything. Users have m...
Given the following ANCOVA model: $Y_{ij}=\mu+\alpha_i+\beta X_{ij}+\epsilon_{ij}$, $e_{ij}\sim N(0,\sigma^2)$ i.i.d., $\alpha_1=0$, $i=1,..., m$, $j=1,..., n$ Given I have already computed $SC_{W}=\sum_i\sum_j(y_{ij}-\bar{y}_{i.})(x_{ij}-\bar{x}_{i.})$ and $SS_W(X)=\sum_i\sum_j(x_{ij}-\bar{x}_{i.})^2$ how can the c...
There is an exercise which is used to illustrate how normal distribution works. The exercise starts by saying "Suppose scores on an IQ test are normally distributed..."; What does it mean for the scores to be normally distributed. Also there is a curve associated to the Normal Distribution, what does this curve tell, ...
I am trying to run a panel OLS predictive regression on stock returns for 7 countries using 8 macro economic variables. I have already done the simple linear regression analysis that has highlighted the presence or absence of predictive power for each variable per country, and i am aware of the various problems of samp...
The two most popular types of loss functions are 1) squared error: $L(y,f(x))=(y-f(x))^2$ --> best estimate is the $E(Y|x) $ 2) absolute error: $L(y,f(x))=|y-f(x)|$ --> best estimate is the $median(Y|x)$ I have two questions. 1) Why do people use the squared error method? The absolute error method makes much more intui...
I have conducted Pearson's correlation in R and need help interpreting the results. Pearson's product-moment correlation data: A.C$Average.tortuosity and A.C$Area t = -0.6168, df = 14, p-value = 0.5473 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: -0.6092369 0.3622606 sa...
I have plotted price histograms which seem to follow and exponential tail very well. However, I would also like to parametrize the initial peak in the low price range. Can suggest what distribution would be appropriate for this? How can I research this in general?
I have a problem with statistics. I'm looking at whether variation in the concentration of a certain substance affects how strongly insects are drawn towards it. I did this by baiting insect traps with the substance in different concentrations. I spread the traps out as pairs with the traps in the pair having different...
So I have multiple questions about the different types of analyses that can be used on a 2x2 contingency table and when different analyses should be used. To open, I'll note that this stems from my efforts to find the appropriate analyses to run for research using categorical data in a 2x2 contingency table. In my cas...
I am interested in the way in which data are analysed in education. In England, pupils' reported test results are compared to national test results using z-tests. These results are then used to judge the effectiveness of schools. My hypothesis is that students in a school are not IID, and that therefore analyses using ...
I understand how to calculate multivariate hypergeometric distributions. For example, if you have an urn with 2 red marbles, 4 white marbles, 8 blue marbles, and 12 orange marbles, the probability of drawing 5 marbles and getting 1 red marble and 2 white marbles is as follows: $P = \frac{{2 \choose 1}{4 \choose 2}{20 ...
I have been studying a linguistic construction (let’s call it C) in a language L1 trying to individuate several factors (F1, F2, ..., Fn) which can influence / trigger the presence of C in L1. All factors are categorical variables with several levels. I ran basic significance tests (Goodness of fit) which revealed a ...