instruction
stringlengths
9
38.7k
I am applying a GLM model with binomial family: glm(response ~ Treatment, family = binomial, data=dat) The only explaratory variable treatment is a categorical variable. The model fit turns out that the residuals clearly do not have equal variances among the treatment levels (heteroscedasticy). My question is 1) what...
I have one interval variable on a 1-25 point interval scale, i.e. placement test scores where 25 is the highest competence score (data not normally distributed), and six different ordinal variables on a 1-7 likert scale (where 7 is the highest score) in my data set. There are 12 participants (12 interval test scores) ...
Difference between parametric and nonparametric statistical tests and What is the difference between distribution free statistics/methods and non-parametric statistics? is a good read for beginners. So, does system identification of linear models like Auto regressive, Moving AVerage, ARMA And learning of neural network...
I have multiple environmental time series variables (for example: temperature, dissolved oxygen, conductivity, depth) measured every few minutes for several months. The variables are measured at different intervals but I could create an interpolated data set such that all data are placed at the same times. I want to b...
For instance, a prediction of 1 million could be: A weighted average of various predictions. ex. a .5 chance of 2 million, a .5 chance of 0, for an expected value of 1 million; or The prediction could be a distribution centered around 1 million where the 'peak' of the distribution happens to be 1 million; or The mode...
I want to analyze results from a computer simulation in which I will vary two factors: (1) fan location, and (2) fan flow rate. After the simulation, I will query the results for gas concentrations on a reference plane located 1" above the perforated tank lid. At the end of five minutes of fan operation, I will calc...
How does one compare means between two groups that contain repeated measures. For instance: Group 1 = has mutation A Group 2 = has mutation B Dependent variable = blood pressure (continuous variable) Group 1 has 140 data points and 52 participants. Group B has 120 data points and 30 participants. Some participants have...
I am learning Maximum likelihood estimators for a inference class. And this is a problem I came across. Let $X_1,X_2,X_3,\ldots, X_n$ be a random sample with p.m.f $$p(X)=\theta(1-\theta)^x; x=0,1,2,\ldots\quad \mathrm{and}\quad 0<\theta<1$$. As maximum Likelihood estimator I obtained $\hat{\theta}=\frac{1}{\bar{x}+1}...
What are the odds of the following: Great Grandmother was born January 14 (1/14) My Grandfather was born April 11 (4/11) I was born on January 14 (1/14) My son was born on April 11 (4/11) FYI: My Great GrandMother lived to be 100 years old. She passed just a few years ago.
Imagine that you have $1000 that you can split however you want. You bet in a cockroach run, but it is not the finish that's interesting. You can bet for the cockroach to go left or right, and you gain proportionally to how much he moved in or against your favour from the time you enter to the moment you decide to quit...
Very often in the research we want to establish a linear relationship without intercept: $y=\beta x + \epsilon$ and the sample has many double zero observations $x=0, y=0$. I am wondering how to deal with these many zeros. On one hand, they are the actual observations and we should not exclude them. On the other hand, ...
I have one dependent variable (continuous data) and 4 independent data (mix of continuous and count) collected over 35 years across several states. I am using a linear mixed effect models with a random intercept and a random slope. model<-lmer(y ~ x1 + x2 + x3 + x4 (1+x1+x2+x3+x4|state),data=data,method="ML") If some ...
Assume I have a dataset for a supervised statistical classification task, e.g., via a Bayes' classifier. This dataset consists of 20 features and I want to boil it down to 2 features via dimensionality reduction techniques such as Principal Component Analysis (PCA) and/or Linear Discriminant Analysis (LDA). Both techni...
While I was preparing an internet survey, I read from multiple sources which says it is more important to have a high response rate than large sample size. Q1. I don't quite understand the logic behind this. Can you explain? If i can afford to survey the entire population, would that be better than a random sub-sample?...
I have a model where the error is proportional to the throughput. This is, the observations I got come from a measurement instrument that has some error and it measures material going through in little buckets. I am approximating the model as follows $$ x_i = x~(1 + \epsilon_X) \\ \epsilon_X \sim N(\mu_X,\sigma_X) $$ I...
I am learning MLE's at my inference class and this is a problem I came accross. Consider two simple linear models. $y_{1j}=\alpha _1+\beta_{1}x_{1j}+\epsilon_{1j}$ and $y_{2j}=\alpha _2+\beta_{2}x_{2j}+\epsilon_{2j}$ , $ j=1,2,...,n>2$ where $ \epsilon_{ij}$~$N(0,\sigma^2)$ , $\epsilon$ are independent and identi...
According to Armstrong there is ample empirical evidence that dampening trends in uncertain and complex long term forecasting helps improve accuracy/reduce forecasting errors. What I'm not able to find is a formula or an implementation of dampening trends. I know there exists dampening trends in exponential smoothing ...
I have built an ARIMA(p,d,q) model, m using say, m <- Arima(ts.data, c(p,d,q)) Given some starting values, I want to simulate future values based on the model m. I can manually code it but there must be a way to simulate it. In arima.sim there doesn't seem to be a way to specify the starting values.
From edX MIT probability course - Widgets and Crates: Let $X_i$ be the number of widgets in a particular box $i$. Let $N$ be the number of boxes in a crate. Assume $X$ and $N$ are independent, both with expected value equal to 10 and variance equal to 16. Evaluate the expected value of $T$, where $T$ is the total wid...
I'd like to recruit your help in coming up with an Excel-based method to analyse a set of raw ordering data where each item is on its own row. So, in the data below, order 111 contains two part numbers, ABC and DEF, in quantities of 2 and 3, respectively. Order Number | Part Number | Quantity | 111 | ABC ...
I have to analyze the results of a survey. The questions regard different motivators that the interviewees encounter ("I do it to help my colleagues" as a motivator for instance); all the answers are ordinal (1=strongly disagree -> 5=strongly agree) and the aim of this study is to see which factor (or set of factors) (...
I'm planning a study using Structural Equation Modelling to test different accounts of language learning. I would like to study a group of children with language difficulties. However, they are very hard to recruit and I'm aware that these models typically require at least 200 participants. One possibility would be (1)...
I am currently trying to correct forecast data using Kalman filter (python). I do not know where to start. I wanted to know how can I do a test to Know if my time series is linear or non linear? Is there a test?
I would like to develop a test to identify which variables in my data set have a variation higher than the "average variability". I'm struggling with that since days, and I also tried in vain to look for help in other forums. I have data from biological experiments, that look like this: v1 2 1.8 1.5 1.9 2.1 1.78 1.95 2...
I have a data set derived from administrative registers covering the population of a small European country, containing a large number of defined groups (15 000+). For each of these groups I have multiple observations (different years), and two explanatory variables that characterize the exposure of each group to a pol...
I would like to be able to predict when I will exhaust a particular resource. My situation is analogous* to a water tank. Each day zero or more rain will fall, filling up the tank. I can not tell in advance how much rain will fall each day, if any at all. There will never be any outflow from the tank. Each day I ca...
Normally the marginal probablity is computed as $p(x) = \sum_y p(x | y) \cdot p(y) $ Now, suppose I have all these probabilities at the right-hand side in logspace (so as logprobabilities). How do I do this?!?
I have a variable whose values vary between $-\infty$ and $\infty$. I'd like to change its limits from $0$ to $1$. I want to give extremely low values when the values are less than $-1$ or greater than $1$ and want to give the highest value to the value $0$. Which distribution would be the best here, and what's the for...
I have a proposed a model for Corporate Social Responsibility determinants (not important). Among my independent variables I obtain two that are statistically not significant. Following Wooldridge approach, in order to know if I should take out these two variables from the model, I should run a F-test, with the restric...
I have pre - post data on quality of life, depression, and self-esteem. I hypothesize that changes in self-esteem from pre to post cause changes in depression, which in turn cause changes in quality of life, from pre to post. This looks to me like two separate multiple regressions, but I am unsure whether this could ...
I've a distribution of numeric scores computed using real data ( my reference distribution ). After that I generated 100000 random distributions of numeric scores computed using points picked at random in a space of possible points. So now I want to compare my reference distribtuion with these random distributions and ...
I want to run a regression in R with different datasets. The question is whether stock performance (daily log return) is influenced by factors like interest rates (the one set by fed or ECB), size of the board of directors (e.g. has been long 7 and then switches to 8) and whether there is an audit committee or not (bin...
I'm searching for a library or tool that allows me to classify emails of a mailing list into what mails are very likely questions and what mails are very likely answers. Can anybody recommend such a tool? Anything else than counting the fraction of question marks against periods?
I am studying the definition of leverage, and I understand it in terms of formulas. However, if I would have a plot like this for instance, how could I see which of these points has the highest leverage? Which one would it be in this plot for instance?
I'm attempting to fit this model: $P = C_0 + C_1*U^r$ Given known vectors of observations $P$ and $U$, I want to fit values for $C_0$, $C_1$ and $r$. How do I make this fit in R? or preferably GSL in C? Is it possible?
This question regards the problem of Generalized Least Squares. Vectors and matrices will be denoted in bold. Premises. Let $N,K$ be given integers, with $K \gg N > 1$. The transpose of matrix $\mathbf{A}$ will be denoted with $\mathbf{A}^T$. Suppose the following statistical model holds $$ (*) \quad \mathbf{y} = \math...
I cannot verify the following theorem. Maybe I am doing something wrong, but I don't know what?! Additionally, I'm not sure about the meaning of a constant matrix in the theorem. Theorem: cov(AX)=Acov(X)A' if A is a constant matrix. (A' means transpose of A, i.e., A^T) Example: A (10x5): 0.8727 0.7145 0....
Suppose one has two features: color = {R, G, B} and t-shirt size = {S, M, L} and wants to regress these features on the probability of a sale, call it p. So the model is p ~ color + size. Now, the design matrix will have an intercept, and colors can be represented as R -> [1 0 0] G -> [1 1 0] B -> [1 0 1] Similarly fo...
I have panel data and for the I have a following equation $$ logY = \beta_1 + \beta_2 logX + \beta_3 m logW $$ Problem is with $\beta_3$ coefficient. Since m is outside the log and it is a very small value, the overall $mlogW$ is very small and the resulting coefficient is very large (in thousands). One alternative ...
I am fitting a linear regression in R now, and I find that there is one parameter showing linear relationship before certain point and cubic relationship after that point. What I did is to separate the whole dataset with reference to that point and fit the model with parameter value and cubic value respectively. Howev...
Suppose I have I have a random variable $X$ that I know is doubly bounded on support $[0,\theta]$ but I dont know $\theta$ (we don't know anything on the distribution of $X$, but assume it is not crazy so usual regularity conditions apply when you need them). Consider $Y:=X+Z$, where $Z$ is standard normal ($X$ and $Z$...
I like the idea of ensemble learners, especially Bagging, but I always wondered as why they are not the most powerful learners since they have a clean motivation. I don't have the answer to that question but I had another idea. Normally in Bagging people use the same classifier for learning. So they divide the dataset ...
Mean shift is an iterative procedure for locating the maxima of a density function, given discrete data sampled from that function. It is useful for detecting the modes of this density. How accurate does the kernel density estimate need to be for this algorithm to work? For example, is it okay if it performs poorly in ...
In few papers I read that - kernel used doesn't really matter for kernel density estimation but bandwidth of the kernel is the most important factor. But I did not see any mathematical explanation to this and can't completely believe in this.
I'm using the randomSurvivalForest package for R, version 3.6.4. I have been using it for a project for a while, with no problem. However, now I have added some additional predictors to my dataset, and find that now some of them are not scored (importance). It looks like 100 is the magic number; before I had 95 and th...
I am looking for a way to test whether a boundary threshold exists in a physiological response – a sample of the data is plotted below. My hypothesis is that the X-variable imposes a physiological constraint on Y-values, thus producing a boundary 'ceiling' for maximum Y-values that decreases at higher X-values (indicat...
We have lot of 3D data and we reduced it to 2D for performing fuzzy clustering and obtaining prototypes. We used some matlab functions that were very well documented. Now we would like to see to which initial 3D points the first prototype found corresponds, so I wonder if we can perform the reverse of MDS, is that poss...
I have the following data with factor 1 (A, B and C) and factor 2 (D and E): $$ \begin{array}{ccc} \hline & D & E\\ \hline A & 68 & 59\\ & 65 & 57\\ & 63 & 54\\ & 59 & 56\\ & 67 & \\ \hline B & 59 & 51\\ & 50 & 45\\ & 51 & 46\\ & & 48\\ & & 49\\ \hline C & 40 & 47\\ & 39 & 39\\ & 35 & 40\\ & 36 & 40 \...
I have 2 groups of patients (control and treated) and 1 variable measured at two time moments (before and after treatment). Using paired T test I am able to determine the mean (with 95%CI) difference in each group (at baseline and after treatment). Using split-plot ANOVA I can say that the effect of the treatment is no...
I want to combine data from different sources. Let's say I want to estimate a chemical property (e.g. a partitioning coefficient): I have some empirical data, varying due to measurement error around the mean. And, secondly, I have a model predicting an estimate from other information (the model has also some uncertaint...
I have a set of data (~ 90 cases) and an outcome of a diagnostic test. I have collected factors that were determined before the test that could predict the outcome of the test. Now some of the data are binary, some are continuous (lab tests), one is categorical (the original diagnosis leading to the symptom with 5 cate...
I am going to implement the Bayesian version of a perceptron that I read in the Statistical Mechanics of learning, by Engel-Van Den Broeck. The idea to improve the performance is to use many Gibbs perceptrons J to define a golden one using their center of mass $J^\beta$. Formally: $$J^\beta = \lim_{m\rightarrow \infty}...
I am calculating an equation with several random components a large number of times, and in order to select my final answer I choose that with the minimum value for $\chi^2$. I am hoping to find some way to decide how probable it is that I should end up with this value of $\chi^2_{min}$, to take into account the number...
As a background, I am not familiar with stats except on a basic level. I have been tasked with doing some analysis that is out of my comfort zone. I am trying to figure out how to compute necessary sample sizes for an ROC analysis based on desired statistical power. I have read Hanley and McNeil's paper (http://www.med...
Consider four random complex vectors $\mu_i$ of length $K$ whose entries are drawn from the complex normal distribution $\mathcal{CN}(\mathbf{0},\mathbb{1})$ centered in zero and of unit variance. Then form the $2 \times 2$ complex "normalized" matrix $$ \chi=\frac{1}{\sum_i|\mu_i|^2}\begin{pmatrix}\mu_1^*\\\mu_2^*\end...
Suppose I roll 10 dice (six-sided). What is the probability of seeing k faces that appear more than (or equal to) 3 times? For example, if I see 1, 1, 1, 2, 2, 2, 3, 4, 5, 6 then I have observed 2 faces that appeared more than (or equal to) 3 times (1 and 2). I guess I can try running a simulation but was wondering if ...
I'm using a Cox proportional hazards model, estimate the hazard rate for Levamisole relative to 5-FU, adjusting for Age and Sex. library(survival) Colon<-subset(colon,etype==2 & rx!='Obs') fitcox<-coxph(Surv(time,status)~rx+age+sex,data=Colon) Now if I want to make some prediction about the conditional expected lifeti...
In ridge regression with design matrix $X$, outcomes $y$, fixed regularization parameter $\lambda$, and errors $\epsilon\sim\mathcal{N}(0, \sigma^2I)$, the computations for the ridge regression coefficients $\hat\beta$ (aka the solution to $\arg\min_b \big[(y-Xb)'(y-Xb) + \lambda b'b\big]$) and their variance-covarianc...
I'm trying to go from a radial distribution in polar coordinates to cartesian coordinates. I'm using Matlab and have tried pol2cart, but are having some trouble getting a matrix with probabilities. The distribution is a log-normal along the radius, homogenous along theta.What I'd like to have is a 2D matrix with the pr...
I'm trying to build a recommendation system, but I only have data on what my users have "liked", i.e. all non-missing data has the same numeric value. Is it possible for me to use matrix factorization methods without actually having "ratings"? (Multiple numeric values for user ratings rather than just an indicator that...
I use SPSS, but am forced to use R for exact logistic regression. So I'm brand new to R (and hating it so far) and also new to logistic regression. I've read the original elrm paper and looked at examples of its use. However, I can't find information on the questions below (after the data description). The fit of two...
Can anyone please tell me why the results of random slope model is different for the same dataset when I use lme and lmer. I first fitted a random intercept model as follows using both lme as well lmer mdl1<-lmer(yld.res ~ rain + (1|state),data=data) #random intercept model using lmer mdl2<-lme(yld.res ~ rain,random=...
I have data in the following form: Day Kurtosis Skewness Total Inflows 163 .3 .5 435670 I'm attempting to do some modeling of an inflow regime between a river and a reservoir. To do this, I need a simulated inflow regime based on observed data. My original plan was to build a distribution bas...
The typical instrumental variable setup seeks a consistent estimate of $\beta$ from $$ y = \alpha + \beta x + \epsilon $$ where $cor(x,\epsilon) \neq 0$, in the univariate case, without loss of generality, by instrumenting with some variable $z$ that is uncorrelated with $y$ conditional on $x$ (the "exclusion restrict...
I am working on a time-series project in which I am forecasting the daily activity of something (let's call it 'Y') based on three years of historical data. I know that Y is affected by calendar effects such as Holidays (e.g., it will go down on Christmas). When I analyze the data, I want to account for the calendar ...
I am doing a survival analysis in R with the survival package. I think I am working with left-truncated data, but I'm not entirely sure how to handle it. I have a cohort of patients diagnosed between 1990 and 2012. All the patients have a well-defined time of diagnosis (entry time). However, the outcome of interest (sp...
How do you calculate an estimate for the variance covariance matrix of a logistic regression with elastic net regularization? Starting from the variance-covariance matrix of a plain vanilla logistic regression, how does the formula need to be augmented: $\hat{\Sigma}=-\left[\hat{p}(1-\hat{p})XX^{T}\right]^{-1}$ where $...
In a log-log model, such as $\log(y) = b_0 + b_1 \log(x)$, I know that with OLS the standard interpretation is a "1% increase in x is associated with a $b_1$% increase in y." I have three related questions: If x is a percentage variable that was logged to correct skew (ex: x ranges from .01 to .99), what is the corre...
I'm attempting to take a list of products and rank them according to rating and votes. This is tricky! Lets suppose product A is rated at average 5.6 at 310 votes. Product B is average 7.3 at 10 votes. Product C is 3.4 at 1 vote. Product B has hardly earned a winning place with 10 votes, but product A is lesser rated ...
When the confidence interval of an odds ratio includes one, can the p-value be less than 0.05? For example, odds ratio = 0.54 confidence interval ( 0.29 - 1.01 ) and p value is 0.039. In this situation can we consider the effect to be statistically significant or not? Or is something wrong?
It is true that the Laplace transform of a (positive) random variable characterises that random variable, just like its density? ($L_X(z) = E(exp(-Xz))$)
I'm learning stratified random sampling and I'm having hard time to solve this problem. consider the following population of six units: x1=1, x2=2, x3=2, x4=4 x5=4 x6=5 Suppose units 2 3 4 and 5 are in one stratum and units 1 and 6 are in a second stratum. Take a simple random sample of 2 units from the first stratum ...
I use NN for my mini project research, and I found out the newest trick for feed forward NN is using dropout for regularization instead of L1/L2 norm and rectified linear unit as an activation function. But when I tried it, I always got worse results compared to a standard NN with sigmoid / hyperbolic tangent activatio...
I'm coding a McMC algorithm for geophysical applications. Using the Metropolis–Hastings scheme to accept/reject the proposed models is something that I thought I understood completely, but I don't. To be clear: normally you have a current model $m$, you perturb one parameter (in my case velocity $v_i$), and in this wa...
Suppose that you have jointly distributed $N$ (~100) random variables, $\{X_1,\ldots,X_N\}$, and this distribution is unknown to you. However you do know that their sum is zero by construction. Having $L$ (~3000) observations of $\max(X_1,\ldots,X_N)$ and $\min(X_1,\ldots,X_N)$ each, how can you make a statement about ...
I have two versions of the same program. I apply a number of performance tests to both and measure their response time, for instance https://gist.github.com/valtih1978/d2cc2fe96fbbe1987ada // random(10000) //> compressed 10000-char msg into 66271 bits //| in 59 (tree) vs 20 (table) msec //| in 68 (tree) vs 17 (table) ...
I have been training MLPs for a binary classification problem in the Weka explorer and now have one with an acceptable level of accuracy. I've written some code to parse the text of the model which is output, and write it out as array literals (in my C# code) for the weights and bias terms. I then have my own code to...
Beginning with noisy data vectors $\mathbf{x}$ and $\mathbf{y}$, I have binned the data to vectors $\mathbf{x}_b$ and $\mathbf{y}_b$ of length $N_b$ with fixed linear ($\mathbf{x}_b^i - \mathbf{x}_b^{i-1} = \delta$) or logarithmic spacing ($\mathbf{x}_b^i/ \mathbf{x}_b^{i-1} = \rho$). I would now like to calculate a ...
I am studying now Hypothesis Testing. I use for it book High-Yield Biostatistics, Epidemiology, and Public Health and videos of Brandon Foltz (recommending these videos for everyone, they are great!) from here https://www.youtube.com/channel/UCFrjdcImgcQVyFbK04MBEhA . In High-Yield Biostatistics, Epidemiology, and Publ...
$X_1, \ldots, X_n$ iid ~ Pois($\lambda$). Suppose, you don't know the value of each $X_i$, but you know if $X_i = 0$ or not for every i. Find MLE for $\lambda$. Does MLE always exist? I know how to find MLE. My problem is that I don't understand how to deal with the limited knowledge of the sample. I used to think ...
I have following type of associated data. The following example step to generate associated variable. p number of variables and n is number of observations. p = 500 n = 200 mat <- matrix(NA, ncol = 500, nrow = 200) for (i in 1:p){ if(i ==1){ fs <- sample (c("AA", "AB", "AB", "BB"), n, replace=TRUE) mat[,i]...
I have used the R lme function (nlme package) to construct linear mixed models, with a single random effect (as a random intercept) and a varIdent variance structure on a fixed effect (that is a factor). The data is from a commercial fishery and I am looking to see which are the most important variables that need to b...
I'm accumulating a lot of vital signs from emergency department patients, and would like to assess if different features yield significantly different distributions. Eg. for heart rate I have 888.424 measurements (stored in all_hr) for all patients and 321.357 measurements for geriatric patients (stored in g_hr). Summa...
Let $z$ a random variable with PDF : $f_z= Cz^{k-1}(1-\frac{z}{d})^bF(-a+k+1,b;b+1;1-\frac{z}{d})$, where $0\leq z \leq d$, $F$ is the Hypergeometric function, $k$ is a positive integer, $-a+k+1 >0$, $C$ is a constant and $a ,b$ are 2 real positive numbers. Please I need to compute a closed form of the Moment generati...
I wish to perform Jeffries-Matusita distance on 14 spectral bands. Is there anyone who can help with how it is done in R?
let consider following probability distributions X P Q Kullback Kullback_divergence 1 0.526810511 0.6557 -0.166341349 11.97922287 2 0.213080233 0.0357 0.54919316 3 0.02600177 0.8491 -0.130769473 4 0.088595233 ...
Suppose we have a moving object (a horizontal projectile motion as one of the most basic examples). Is there any way to predict where it will hit finally? Please note that I'm looking for a machine learning method not a closed form solution. Although we can track the motion, using Kalman filter, that is only applicable...
The cost function of neural network is $J(W,b)$, and it is claimed to be non-convex. I don't quite understand why it's that way, since as I see that it's quite similar to the cost function of logistic regression, right? If it is non-convex, so the 2nd order derivative $\frac{\partial J}{\partial W} < 0$, right? UPDATE ...
Wikipedia provides the following definition for a confidence interval for a parameter $\theta$: A confidence interval for the parameter θ, with confidence level or confidence coefficient γ, is an interval with random endpoints (u(X), v(X)), determined by the pair of random variables u(X) and v(X), with the prope...
I have data for several individuals that takes the following form over time. Many individuals are flat over the course of a year, meaning their measurements stay roughly the same. Others have a peak or two and are then flat. And others have many peaks. For each individual I must find an average (representative) value t...
My question is if data are in paired groups (before and after treatment), where the pre-treatment group is normally distributed and the post-treatment group is not normally distributed (i.e. it is skewed), then which test should be applied? Is the Wilcoxon sign rank test appropriate?
Suppose a logistic regression model is used to predict whether an online shopper will purchase a product (outcome: purchase), after he clicked a set of online adverts (predictors: Ad1, Ad2, and Ad3). The outcome is a binary variable: 1 (purchased) or 0 (not purcahsed). The predictors are also binary variables: 1 (clic...
Suppose a survey has five items with a six-point Likert scale. It has been rolled out with ill-formed labels: *the (2) was labelled by "somewhat disagree" instead of "disagree" - and vice versa the (3) was labelled by "disagree" *analogous ill-forming for (4) and (5): "somewhat agree" and "somewhat disagree" were mixed...
I have an interview with a top company for a data scientist position. I was made aware that they will be testing probability/statistical theory concepts. So the question: If you had 1 hour tops to do an all-inclusive interview about a range of topics, and wanted to test someone's knowledge of probability/statistica...
I am somewhat familiar with various ways of testing mediation for factors in different types of regression analysis. (I'm using R and currently working with a multilevel binary logistic regression.) But now I have a situation in which I'd like to test whether one interaction between factors mediates another, and I'm ...
Suppose one has a matrix of data $X$, which is $n$ observations by $p$ dimensions. Let $P_\perp$ be a projection onto some $k<p$ dimensional subspace. Suppose one computes the principal direction of $P_\perp(X)$. Is there a principled way to reconstruct this principal direction in the full $p$-space?
Let me explain my scenario in which I need to calculate absolute error. Lets say the X is the actual value. And X' is the value of X with some error 'e'. So X' = X + e'. Lets say i = 1 to 10000. I have X(i) as well as X'(i). Now I want to know (also want to plot on graph) that How much X' differs from X. One way to do ...
This question is intentionally written in a very abstract way, because I am interested in a generic solution, or for pointers to different possible concrete cases in different fields: I am measuring a particular quantity in a sample of subjects taken from a given population, and I want to apply a null hypothesis test t...
I calculated the Spearman's rank correlation coefficient interpretation for a given 2D dataset. I then tested its significance by doing a permutation test and obtained a p-value. I have a problem with the interpretation of the coefficient value. While I understand that a Spearman's rank coef. value should not be mista...
Is it right that both Cramér's $\phi_{c}$ (and consequently Cramér's $V$ as well) are similar to the Pearson correlation coefficient, $r$, (and so, to Spearman's $\rho$) in its interpretation, as it is written here (http://en.wikipedia.org/wiki/Phi_coefficient)? Does a Cramér's $V$ value of 0.30 indicate a stronger rel...