instruction
stringlengths
9
38.7k
I'd like to determine the "representative" range for a series of data points. For example, I'd like to know the range where 98% (or any other given ratio) of points are located. I could have used the inter-quantile range (1%-99% in this case), but in case of seriously skewed distributions this gives "too much attention...
I'm currently working on SVR to predict stock market returns and I would like to know if anyone of you could give me some advise regarding interesting papers on it. These are the articles I'm working with: Cao, L., Tay, F.E.H. (2001). Financial forecasting using support vector machines. Neural Computing and Applica...
I am fitting a tree (CART) to the olives-dataset. The training data has 436 observations (test data: 136). I have 3 responses (the 'Region' variable) which splits the training data into 116 / 74 / 246 observations. If I plot the variables eicosenoic and linoleic, I can see an almost perfect classification. I used a ba...
The tl;dr version What successful strategies do you employ to teach the sampling distribution (of a sample mean, for example) at an introductory undergraduate level? The background In September I'll be teaching an introductory statistics course for second-year social science (mainly political science and sociology) st...
I'm looking for a statistical test or tests to compare the effects of different 'treatments' on a single 'individual' over time. The single 'individual' could be one person or a group acting as a single entity (e.g. a team, a company, etc.). A simple example is comparing the effects of two different exercise regimes on...
I have fitted a Poisson model to my data in R which includes two factors as independent variables. Each factor has 5 levels. I have used the contrasts = list(FactorA='contr.sum', FactorB='contr.sum')command to change the constraints of my model. So, the parameter estimates for each factor sum to 1. My problem is that...
I have a large set of data for 37 different clinical units (all oncology) in their respective 37 hospitals. There are two specific outcome variables that I need to analyse: First, drug usage for specific drugs types and classes (aggregated drugs) that are expressed as a rate – DDD (Defined Daily Doses) per 100 patient...
After attempting to produce a linear mixed model I was left with a great deal of heterogeneity. lme1 <- lme(Average.payoff ~ Game + Type + Others.Type + Game:Type + Game:Others.Type + Type:Others.Type, random=~1|Subjects, method="REML", data=Subjectsm1) The response term Average.payoff is continuous, whilst all ...
I'm trying to learn the Bayesian network structure from a very large data set, and the R package I used for learning can only handle a very small portion of the data set (~10%) at one time due to the computational limitations. The conventional k-fold cross-validation strategy uses k-1 subsets for training and 1 subset...
I am confused about which decision tree algorithm in weka to use for my application. I have 5 real input variables and 2 classes. In various online tutorials J48 (C 4.5) seems to be the algorithm of choice. Are there any rules of thumb / tips / tricks to decide which tree algorithm should be used ?
Other than a calibration plot, is there a way to decide how good one models' predictive probabilities as compared to another model. I'm not interested in error rates as I find them ineffective for the level of precision I'm looking for. The only quantity of interest is the predictive probability distribution, as I am...
Wackerly et al's text states this theorem "Let $m_x(t)$ and $m_y(t)$ denote the moment-generating functions of random variables X and Y, respectively. If both moment-generating functions exist and $m_x(t) = m_y(t)$ for all values of t, then X and Y have the same probability distribution." without a proof saying its bey...
I have an experiment that produces one measurement every time it is run. I can change something in the experimental setup, and I want to test if this change in the setup results in a change of the measured value. I am repeating the measurement multiple times for each setup, but only one measurement with one setup can b...
The log density of a multivariate Gaussian is proportional to $||x-\mu||_2^2$, i.e. the norm of the difference between $x$, the random variable, and $\mu$, the mean of the distribution (assuming a covariance matrix of the form $\sigma^2 I$). Gaussians are defined with $L_2$ norm. What about the general case of using ot...
Business Problem We are measuring the duration of an operation on our server. We want to know if certain changes (call them treatments) make this operation faster or slower. Data Our current test harness is outputting data every 3 seconds. During those 3s it is collecting a large number of individual trials (30-70) and...
I have a 0/1 sparse matrix with 500 k columns and 3 M rows and I want to do reduce the number of columns. Clearly I cannot load this into R, as is, so prcomp is out. (I cannot even create the Gram matrix in R: too many elements specified.) However, it appears that I should be able follow this path: Reduce the number o...
Sorry if I'm missing something very obvious here but I am new to mixed effect modelling. I am trying to model a binomial presence/absence response as a function of percentages of habitat within the surrounding area. My fixed effect is the percentage of the habitat and my random effect is the site (I mapped 3 different...
It is well-known (e.g. in the field of compressive sensing) that the $L_1$ norm is "sparsity-inducing," in the sense that if we minimize the functional (for fixed matrix $A$ and vector $\vec{b}$) $$f_{A,\vec{b}}(\vec{x})=\|A\vec{x}-\vec{b}\|_2^2+\lambda\|\vec{x}\|_1$$ for large enough $\lambda>0$, we're likely for many...
I was trying to build a classifier for a set of documents using a support vector machine. I choose to build the feature space using term occurrence. While experimenting, I found the following scenario: When removing stop words, the svm-based classifier was successfully built; otherwise, when keeping stop words, the SVM...
Is there a free database of historical events that's in database format (ie, CSV or some other easily imported format)? I realize Wikipedia has extensive historical information, but it's not in database format. I also visited historymole.com, but the information they have is both incomplete and provides very limit...
Possible Duplicate: Not-significant F but a significant coefficient in multiple linear regression How can you have a non-significant multiple regression model w/ significant predictors? My hypothesis was that social engagement would be associated with cognition. I set up a one-way MANOVA in SPSS to look at the assoc...
Suppose I have a set of characters with both natural scene and synthetic images, and another set with only synthetic images. I'd like to make a classifier which is trained on only on this data and tested on natural scene images of characters from the second set. Does anyone know of an approach that give good test accur...
I used the multinomial logistic regression to predict the percentages of students who voted 'acceptable', 'uncertain', and 'unacceptable' to natural ventilation use in three observed classrooms during cool and hot seasons. The sets of significant IVs of the cool and hot season cases were different; for example, the...
I'm working on an experiment in which we try to sort events into three categories based on roughly 20 inputs using a feed-forward neural network (trained via backpropagation). Unfortunately, many variables which offer good discrimination become meaningless in some situations. So far, the procedure has been to set meani...
I was wondering if Granger causality would be an efficient tool for searching for relevant input data for an SVM system. For example if I want to forecast SP 500 returns, I could put in my input data the libor rate, the USD/EUR exchange rate, the FTSE index, the Eurostoxx 50 index... Would it be relevant and meaningful...
With the log-likelihood chi-square statistics I can compare two linear mixed models (Maximum Likelihood) and see which one is the better one. But the GEE gives Quasi Likelihood under Independence Model Criterion (QIC) and I don't see the degrees of freedom so I am unsure how to statistically test two models against eac...
I want to do an ordinal logistic regression in R without the proportionality odds assumption. I know this can be done directly using vglm() function in R by setting parallel=FALSE. But my problem is how to fix a particular set of coefficients in this regression setup? For example, say the dependent variable $Y$ is disc...
I was looking at two different correlations (BU-OEU and BC-OEC) and found them both to be significantly negative (see Figures 1 and 2). However, eyeballing the data for the low end of BU and BC (> 0.1) it would appear that there is a much larger spread of scores for OEU than for OEC (ignoring the outlier in OEC; see F...
Recently I studied the definition of p-value as The p-value associated with a test is the probability that we obtain the observed value of the test statistic or a value that is more extreme in the direction given by the alternative hypothesis, when $H_0$ (null hypothesis) is true. For a two-sided alternative,...
I am stuck with the definition of a regression model regarding the inclusion of a constant averaged by the dependent variable. I have a dataset M=(id, x1,x2,x3,x4) where: id: is the id of the product x1: is a continuous variable denoting price (0 to 999 USD) x2: is a categorical variable denoting whether the produc...
A project I am working on currently is to create a heart beat sensor using a finger plethysmograph. It returns a signal to my ucontoller that only includes positive peaks. For example, the ideal signal it will sent to my ucontroller would be 1 1 1 5 1 1 1 5 1 1 1 Where the numbers represent the amplitudes. There ideal...
I have data with a few thousand features and I want to do recursive feature selection (RFE) to remove uninformative ones. I do this with caret and RFE. However, I started thinking, if I want to get the best regression fit (random forest, for example), when should I perform parameter tuning (mtry for RF)? That is, as I ...
I am looking for examples of how to interpret AIC (Akaike information criterion) and BIC (Bayesian information criterion) estimates. Can negative difference between BICs be interpreted as the posterior odds of one model over the other? How can I put this into words? For example the BIC = -2 may imply that the odds of ...
In a one dimensional normal distribution, it is really handy to know that 68% of the data are within one standard deviation, 95% lies within two standard deviations, etc. My question is about the higher dimensional version of this. Can anyone give me rules of thumb similar to the ones we use so often with standard dev...
As I understand it, the exponentiated beta value from a logistic regression is the odds ratio of that variable for the dependent variable of interest. However, the value does not match the manually calculated odds ratio. My model is predicting stunting (a measure of malnutrition) using, amongst other indicators, insur...
I have a smallish dataset ~ 1500 rows X 500 columns. I've been using a standard 5 fold CV setup where row 1 = CV set1, row2 = CV set2, ... row 6 = CV set1,etc. I'm at the point where I'm trying to do some feature reduction work/parameter optimization and concerned about over-fitting by using the same CV setup to find ...
I am often involved in modeling the Net lift, aka Uplift, aka incremental response of direct marketing campaigns. In a nutshell, this approach looks to model and thus select for marketing those individuals who require promotion in order to take the desired action (e.g. order a product). Given prospect A and B, if A wil...
I am testing out 3 modeling approaches for malnutrition in children. Theoretically, distal determinants (education,poverty) operate through proximal determinants (water, sanitation) in determining malnutrition rates. The three logistic models, where stunting is a binary indicator for malnutrition, are: // Proximal de...
I am dealing right now with a lot of distributions, e.g., $F$, $t$, $\chi^2$. I was wondering why do these degrees of freedom signify for distributions such as the $F(m,n)$ distribution?
I've done a large number of tests (100). I also have access to a thesis where it is reported the same type of tests on the same type of material. The mean and COV values are reported, along with the histograms. I'd like to use this information, to join it with my data and from there do some model selection. Since the n...
I am trying to construct artificial data which show two distinct groups in a PCA plot. However, the two groups should still slightly overlap. The following approaches came the closest but I am still not happy with it. Even changing the parameters in rnorm and runif didn't work out. One group has always a much bigger sp...
I have been dealing with the following problem. I have kind of a real time system and every time frame I read its current value, creating a time series (such as 1, 12, 2, 3, 5, 9, 1, ...). I'd like to know methods (statistical and machine learning) to forecast the next value in an online fashion (meaning every time a n...
Given two sets of data of user activity, both of which appear to be in an exponential distribution, I have calculated the mean and standard deviations using both a mean/deviation and a sample mean/deviation (sample size = 30, number of samples = 10k): A (size: 627,000): Raw -- μ = 45.947, σ = 114.2, σ/√n = 0.14422 ...
Suppose I sample many times independently from each of two normal distributions. Given the means, standard deviations, and number of samples from each distribution, how can I calculate the probability that the highest sampled value came from the first distribution? I can solve this question by simulating it numerically...
I dont get the difference between the rfobject$importance and importance(rfobject) in the MeanDecreaseAccuracy column. Example: > data("iris") > fit <- randomForest(Species~., data=iris, importance=TRUE) > fit$importance setosa versicolor virginica MeanDecreaseAccuracy MeanDecreaseGini Sepal.Length...
If I have random variables $X_1,X_2,\ldots,X_n$ that are Poisson distributed with parameters $\lambda_1, \lambda_2,\ldots, \lambda_n$, what is the distribution of $Y=\left\lfloor\frac{\sum_{i=1}^n X_i}{n}\right\rfloor$ (i.e. the integer floor of the average)? A sum of Poissons is also Poisson, but I am not confident en...
Recently I am studying a probability problem related to the multivariate hypergeometric distribution. The problem is stated as: Given well-mixed $n$ balls of $m$ colors, and assume that $n_i$ is the number of balls with color $i$, where $i \in {1, ..., m}$. So we have $\sum_{i=1}^{m}n_i = n$ Do $k$ random draws withou...
I have instances of data that are composed of 6 attributes. Each attribute takes values between 1-10. Any instance has a utility calculated by some utility function: Example: {1,1,2,5,5,2} , utility = 0.89 In some readings for these attribute values, undefined values may appear in the instance, I mark them as question ...
I've got a couple of time series obtained from a small number of replicates,where many variables (all of them continuous) are measured at various time points (longitudinal study). I was looking for a statistical test that could answer whether or not the data supports any type of trend (increasing, decreasing or even os...
I have three sets of means. For instance mean.a = [3,2,7,3,8,2,5,7,3,2,5] mean.b = [9,7,9,10,7,13,30,17,16,9,9] mean.c = [23,24,25,23,22,22,21,9,25,34,12] And for each mean, I have standard deviations. sd.a = [.1,.18,.12,.24,.12,.16,.25,.1,.1,.23,.11] sd.b = [.3,.13,.1,.24,.2,.1,.24,.11,.1,.23,.1] sd.c = [.3,.1,.33,.2...
Let $(X, Y)$ be a Gaussian random vector with mean $\mu$, variance $\Sigma$ and both $X$ and $Y$ are vectors. No structure is assumed on $\Sigma$ (aside from being symmetric positive definite). Is there a way of calculating $(X - \mu_x)^T \Sigma_{xx}^{-1} (X - \mu_x)$ and getting the parameters of the conditional dist...
Intuitively, how does Fisher LDA work? From this Linear discriminant analysis and Bayes rule: classification I completely understood the Bayesian approach but I'm not able to relate it to the Fisher's one described there. What's the relation between the linear combination of predictor and posterior probability in Baye...
I have a disagreement with friend over if an observable that depend on lagged observable, should be called a state variable. I have the following system: xt=u+z(1,t-1)+x(t-1)+d·[y(t-1)-x(t-1)]+e(x,t) yt=u+z(2,t-1)+y(t-1)-d·[y(t-1)-x(t-1)]+e(y,t) z1 and z2 are AR(1) processes z(1,t)=p1z(1,t-1)+e(1,t) z(2,t)=p2z(2,t-1)...
This section of this article says: Ronald Fisher in 1935 introduced fiducial inference in order to apply it to this problem. He referred to an earlier paper by W. V. Behrens from 1929. Behrens and Fisher proposed to find the probability distribution of $$ T \equiv {\bar x_1 - \bar x_2 \over \sqrt{s_1^2/n_1 + s_2^2/n...
Fitting a logistic regression using lme4 ends with Error in mer_finalize(ans) : Downdated X'X is not positive definite. A likely cause of this error is apparently rank deficiency. What is rank deficiency, and how should I address it?
I made a model using repeated measures univariate ANOVA in R. > g <- aov(bis ~ x1 + x2 + bg.sol + x1:x2:I(bg.sol * k1) + Error(subject), coded) > summary.lm(g$Within) Call: NULL Residuals: Min 1Q Median 3Q Max -24.7459 -4.8055 -0.1518 5.1696 17.6015 Coefficients: Es...
I have a logit model where I am predicting stunting (a binary indicator of malnutrition), and my two binary independent variables (improved.water and has.insurance) are both statistically significant: stunting ~ improved.water + has.insurance I want to ask the question, what is the effect of having insurance for thos...
I was reading Similarity Measures and suddenly my whole world was falling apart. I have implemented a search engine using clustering techniques. For clustering, I used k means which uses Euclidean distance as its distance measure. I also used cosine similarity to display results. I was getting amazingly accurate resul...
I'm trying to compute the Gini index on the SO reputation distribution using SO Data Explorer. The equation I'm trying to implement is this: $$ G(S)=\frac{1}{n-1}\left(n+1-2\left(\frac{\sum^n_{i=1}(n+1-i)y_i}{\sum^n_{i=1}y_i}\right)\right) $$ Where: $n$ = number of users on the site; $i$ = user serial id (1 - 1,225,00...
Does anyone know of an explicit matrix expression for the covariance of a linear and quadratic form? That is, $\mathrm{Cov}[\mathbf{a' y},\mathbf{y' Hy}]$ where $\mathbf{y}\sim \mathcal N(\boldsymbol{\mu},\boldsymbol{\Sigma})$. I'm particularly interested in the case where $\boldsymbol{\mu}=\mathbf{0}$, and I think th...
Does Adaboost ensure that resultant accuracy is more than or at least equal to current accuracies? What happens if Classifier A performs badly and the weights are accordingly updated and the next Classifier B performs very well (better than Classifier A) on the data. How does Adaboost handle this problem?
I have time series data and I used an $ARIMA(p,d,q)+X_t$ as the model to fit the data. The $X_t$ is an indicator random variable that is either 0 (when I don’t see a rare event) or 1 (when I see the rare event). Based on previous observations that I have for $X_t$ , I can develop a model for $X_t$ using Variable Length...
I am trying to apply the idea of mutual information to feature selection, as described in these lecture notes (on page 5). My platform is Matlab. One problem I find when computing mutual information from empirical data is that the number is always biased upwards. I found about 3~4 different files to calculate MI on Mat...
I have two surveys of business owners. One is a sample (sample 1) of business owners who were not members of the association, done using a random digit dialing approach. The other is a sample (sample 2) of business owners who were members of an association (used the list of members for the frame). Both samples were ...
This is the result I've got after running linear regression analysis in SPSS: I am a bit confused why the sum of squared part correlations is not equal to (or less than) R squared, but rather exceeds the value of R squared (R squared = 77.7%, the sum of the squared part correlations = 88.6%). Edit The variance of ...
Are standard deviation estimates calculated via: $ s_N = \sqrt{\frac{1}{N} \sum_{i=1}^N (x_i - \overline{x})^2}. $ (http://en.wikipedia.org/wiki/Standard_deviation#Sample_standard_deviation) for prediction accuracies sampled from 10-fold cross validation? I'm concerned that the prediction accuracy calculated between e...
I can't seem to get my head around "iterations" in Adaboost. Are they analogous to weak classifiers that are used for Boosting? I've seen many examples of Adaboost where a programmers use a Single Classifier multiple Times (initialized with different parameters resulting in different classifiers with different parame...
I compute a statistic s using two methods, X and Y. In order to measure the reliability of X and Y, I found split half reliability measures (alpha) using a bootstraping technique. So, for each of method X and method Y, I found the split half alpha value N times, where N is the number of bootstraps. Now, I have N alphas...
I am a medical graduate trying to analyze large data and write a paper about it. Can any one explain what should I included in the article about the Cox-regression model. HJP
Apologize for insufficient info in my previous version of this question. So, I am comparing patient survival in a retrospective study between two different groups, using SPSS. Now the difference came significant by KM, so I tried to adjust multiple covariates for confounding effect in a Cox model. I did a backward Wald...
I'm trying implement Manifold Regularization in Support Vector Machines (SVMs) in Matlab. I'm following the instructions in the paper by Belkin et al.(2006), there's the equation in it: $f^{*} = \text{argmin}_{f \in H_k}\sum_{i=1}^{l}V\left(x_i,y_i,f\right)+\gamma_{A}\left\| f \right\|_{A}^{2}+\gamma_{I}\left\| f \righ...
This is an interview questions, I am not quite sure how to solve. The question is stated as this: Suppose that you want to buy a specific type of car, but you don't know anything about cars (you can't find the underlying quality or the real value). But dealers know about cars and they know exactly how much a car is wor...
For my chemistry class, I have to do some statistics on a set of data. One of the things I have to do is eliminate outliers via the 4D rule. Unfortunately my teacher is also absent, so I can't get this question answered. The 4D rule goes like this on my stat sheet: Calculate mean and standard deviation. Establish a ra...
I am trying to model a joint probability constraint of a union of correlated / uncorrelated exponential functions. Formally, assume we have random variables $A_i \sim exp(\theta_i), \forall i \in {1…n}$. The rate of each exponential distribution is a random variable itself (suppose we have a general distribution, G)...
Suppose I have one sample of frequencies of 4 possible events: Event1 - 5 E2 - 1 E3 - 0 E4 - 12 and I have the expected probabilities of my events to occur: p1 - 0.2 p2 - 0.1 p3 - 0.1 p4 - 0.6 With the sum of the observed frequencies of my four events (18) I can calculate the expected frequencies of the events right?...
The cost function of my TreeBagger class and fitensemble (Bag method) are both [0 8;1 0] for binary classification. The confusion matrix on fitensemble shows that the classfication tends to turn in the favor of the costy class (like [100 0; 20 80] favoring false negatives) but the same on TreeBagger does not hold. I ha...
I was wondering what the difference between the variance and the standard deviation is. If you calculate the two values, it is clear that you get the standard deviation out of the variance, but what does that mean in terms of the distribution you are observing? Furthermore, why do you really need a standard deviation?...
I have collected temperature readings for 4 locations on a beach in Cornwall UK using data loggers. The loggers recorded temperature every 15 mins accurate to .1 of a degree (Celsius). The loggers collected data for 10 days with a one day break to calibrate the sensors. In total I used 30 sensors with 6-7 sensors in ea...
I'm having trouble understanding how to assess normality for discrete data. I understand the the K-S test is available to test the normality distribution for continuous data. However, what would be the equivalent for discrete data that have a Poisson or binomial shape? Would these be the chi-square and binomial test ...
Assume we have 2 random variables $(X,Y)$ with same distribution $G(.)$. Suppose we are interested in a joint probability of these r.v.'s without any information about dependence or correlation between these random variables. Would it help to assume $X$ as a linear (or non-linear) function of $Y$? And lastly, if we k...
I have temporal data of activity frequencies. I want to identify clusters in the data that indicate distinct periods of time with similar activity levels. Ideally I want to identify the clusters without specifying the number of clusters a priori. What are appropriate clustering techniques? If my question does not conta...
I have the following model: $y \sim b_0 + b_1x_1 + b_2x_2 + b_3x_1x_2$. $x_1$ is a factor with 2 levels (0 and 1), and $x_2$ is a factor with 3 levels. I know that to calculate standard errors for the interaction term I should use $\sqrt{\text{var}(b_1) + \text{var}(b_2) + 2\text{cov}(b_1,b_2)}$. When I use vcov() in...
Possible Duplicate: Naive Bayes for two continuous features I've seen that Multinomial Naive Bayes classifier in Sklearn accepts real valued feature vectors. I previously assumed that Multinomial Naive Bayes classifier only handles discrete values If I were to design a multinomial Naive Bayes classifier of my own, ...
Suppose we have data $x_i, i=1,2,3,...n$ that are dependent and identically distributed with marginal $f(\cdot|\alpha)$. If we model this with the likelihood $ L = c(F(x_1|\alpha),F(x_2|\alpha),...F(x_n|\alpha)|\theta)\prod_{i=1}^n f(x_i|\alpha) $ and the dependence parameter $\theta$ is known, can we apply some varian...
I have a model with two variables $X_1$ and $X_2$. In general, I would like to create a Gibbs sampler based on the conditionals $p(X_1 | X_2)$ and $p(X_2 | X_1)$. However, computing either $p(X_2 | X_1)$ or $p(X_1 | X_2)$ is intractable. Though, they can be computed up to a normalization constant. Fortunately, there is...
One question again to be clarified: Can I use the variables as noted below [(3) a,b,c etc] as continuous variables in my logistic regression and if so what will be my explanation in the paper that I am writing. I have the following sets of variables: A Categorical (binary) variable Ayurveda and Allopathy Test variab...
I am trying to assign scores to phone's specifications to calculate a final rating score for each phone. However, when I was scoring based on megapixels. I found that one of the phones 'A' has a 41MP camera. But all other phones have 8MP or less, which is pretty good for a phone. Right now, when I grade relatively wrt ...
It seems to me that it is possible to cluster unidimensional distribution in the space of their parameters, for example, we can try to find similar normal distributions in the space of $(\mu,\sigma)$ pairs. However, is there a way to cluster multinormal distributions given their means and covariance matrices?
I'm lost. If I estimated the a Gaussian mixture model, with a shared diagonal covariance, will the Fisher information of the means be $\Sigma^{-1}$ ?
I have a computer program which I am trying to optimize. Suppose that I can collect random test cases which I will use to run both the original and the modified version to see if there are any speedups. How can I calculate the sample size (number of test cases) which makes sure that the average speed-up/down I am getti...
I am planning a within-subjects study with four different conditions and I am using G*Power to calculate my needed sample size. Not being intimately acquainted with the intricacies of statistics in general (and repeated measures ANOVA in particular) what are some good assumptions for the correlation among repeated meas...
Andrew Ng is explaining linear regression and the cost function, and why we want to minimize Theta(1). However, he says that when Theta(1) = 1 then our slope of the line is (x,y) = (1,1), (2,2), (3,3). I don't understand how he computes that slope? I don't understand how to figure this out? How do you know that the s...
I am currently conducting a meta-analysis in which I need to use a mixed treatment comparison method. As I understand it, this method works in the following way: Say you have a group of studies that make the following set of treatment comparisons: Intervention 1 Intervention 2 Intervention 3 Control You are interest...
A minhash implementation with multiple hash functions can easily handle comparisons between sets with a vastly different number of elements because the denominator of the unbiased estimator $k$ is based on the number of hash functions, which is always fixed. However, when calculating a minhash using a single hash funct...
I am performing repeated ANOVAs in SPSS and came across something I don't understand. Basically, the main effect of group (I have three groups) is not significant (p = .062), but the LSD post hoc test indicates that one of the pair-wise comparisons is significant (p = .032). How is that possible?
I have the following model (which is in this form is not identifiable if the $y$'s are indeed endogenous): (1) $y_1 = a_0 + a_1y_2 + a_2y_3 + \boldsymbol{Xa} + \boldsymbol{u}$ (2) $y_2 = b_0 + b_1y_1 + b_2y_3 + \boldsymbol{Xb} + \boldsymbol{v}$ (3) $y_3 = c_0 + c_1y_1 + c_2y_2 + \boldsymbol{Xc} + \boldsymbol{w}$ where ...
I am a graduate student and have a question regarding generalized estimating equation analysis. When conducting across day analysis with GEE, with variable a on day $x$ predicting variable $b$ on day $x+1$, is it necessary to control for previous day's values for variable $b$, or is this correlation already accounted f...
Suppose I have a posterior $p(z, \theta | y, \eta)$ with $y$ observed data, $z$ are hidden variables and $\theta$ are parameters, and $\eta$ is a vector of hyperparameters. I construct a mean field approximation to the posterior using coordinate ascent, i.e. $$ q(z) \gets \exp\left\{E_q(\log p(z, \theta | y, \eta) | z...
I possess a basic understanding of random vs. fixed effects, and how to code random effects models in SAS. However, I'm having trouble wrapping my head around the derivation of random effects terms, and how a random intercept model, for example, can describe the variation in $k$ intercepts with a single parameter ($\si...
/edit: Further follow up now you can use irlba::prcomp_irlba /edit: following up on my own post. irlba now has "center" and "scale" arguments, which let you use it to calculate principle components, e.g: pc <- M %*% irlba(M, nv=5, nu=0, center=colMeans(M), right_only=TRUE)$v I have a large, sparse Matrix of features...