instruction
stringlengths
9
38.7k
I have read this and this, but some things are still not clear to me, thus posting this question. My apologies if I use wrong terminology. I am going to conduct Monte Carlo simulations and parameters I need to sample in MC simulations so far don't have any known distributions. Thus I need to get these distributions f...
I am constructing 95% confidence intervals on some metric of interest using MC simulation. These intervals can be constructed for example using bootstrapping. Does it mean that if I repeat the same MC simulation 100 times with a different seed, 95% of my results should be inside the confidence interval?
I have been reading several papers on using a bound on log sum of exponentials to be used in variational inference. One example of this case that can happen is in correlated topic models. Where to create simplical topic distribution, we use a logistic normal. Used in the ELBO the expression will contain a variational e...
When I fit relatively simple models with MCMCglmm, MCMC sampling usually shows good mixing, or at least if there is some extent of autocorrelation, it is usually easly resolved by specifying priors with a bit more care. However, in some cases - especially when fitting categorical models - MCMC chains look terribly, and...
I have wind direction and aerosol data. I want to find correlation between different wind direction (like: corr between N-E/aerosol, E-S/aerosol, S-W/aerosol and W-N/aerosol). wind direction data are in 0-360 degree. Is there anyways to find correlation in such a way: I have also included my datasets here: sample_data ...
I'm using the auto.arima function of theforecast package. I would like to perform the model selection using a custom metric instead of the usual information criteria. Is there a way to do that in auto.arima or I have to create my own solution in another way?
I have spatial data(2D) with some quantity associated with each point - basically 3D data. I want to model the quantity distribution in the space and then use N clusters as a compact representation. My idea is to interpolate with a spline surface over the points, then scale the quantity at each point so that the integr...
The Erlang distribution has a straightforward interpretation in terms of waiting time for the occurrence of a predefined number of events in a Poisson process or a sum of a predefined number of exponential random variables. The gamma distribution is more general since it allows for a non-integer parameter, but it is us...
I am trying one-sample wilcoxon signed rank test on my data. Data contains 100 values, summary of my data is: > summary(myData) Min. 1st Qu. Median Mean 3rd Qu. Max. 0.2370 0.3385 0.3724 0.3585 0.3724 0.4401 I want to check if my data is significantly different from a given number = 0.4400812. So, I ...
So far I've done only simple and multi-variant linear regression analysis using R. Now I need to do something new and I'm somewhat clueless. I have four groups of students, with 7 people in each group. The people of each group, come on day 1, learn a series of words and are tested on those - the learning of and testin...
I have a panel data containing 12 different years, many id:s per year (some id:s missing in some years..unbalanced panel) and many variables. I'd like to test for auto correlation and I have run some regression models in OLS containing "year" variable to control for time. I have checked auto correlation by using lmtest...
This is a followup to this question: Offset in Poisson regression when using an identity link function? I am using a Poisson regression model with identity link to model risk based on a couple of categorical predictors. I am using the identity link because I am specifically interested in risk difference, which can be o...
Assume I perform a psychological experiment with a number of manipulations, each hypothesized to influence the dependent variable. For instance, we perform a mixed-design short-term memory experiment where: DV = Number of letters recalled IV1 = Number of letters IV2 = Number of distractions IV3 = Delay time between pr...
I am researching whether female representation changes the innovation output of companies. I have panel data of 30 companies over 10 years and "diversity, sales, r&dbudget, #employees" as my independent variables and "# of product launches/year" as my dependent variable. I have found out that I need to use a panel dat...
Note: A previous question asking about the finiteness of second moments was asked in 2010 -- this question is not a duplicate of that one because (1) this question is about tests for the finiteness of arbitrary moments, including the first moment (2) all of the papers I have found regarding this question were published...
In relation with this question of mine, which goes beyond what I am asking now. Say one has the following data generating process (DGP) (known as the SAR ou spatial lag model in the literature): $\boldsymbol{y} = \rho \boldsymbol{W}\boldsymbol{y} + \boldsymbol{X}\boldsymbol{\beta} + \boldsymbol{u}$ where $\boldsymbol{y...
I am experimenting with the CausalImpact package https://google.github.io/CausalImpact/CausalImpact.html (Brodersen et al. 2015) which uses Bayesian structural time-series models. All of their examples have many time points pre and post intervention. In my data set, I only have 4 measurements before the intervention, a...
I have three variables y, x1, and x2. I built a linear regression model y ~ x1, p-value of the slope shows x1 is significant. Then I built model y ~ x2, p-value of the slope shows x2 is also significant. But when I built a multiple linear regression model y ~ x1 + x2, p-values of coefficients of x1 and x2 are both (muc...
If the linear regression's f-test is insignificant but its coefficients are significant in t-test, can I use this regression and its coefficients? In academic journals, I find people use linear regression without reporting f-test values but use its coefficients as long as they are significant. Is it ok to use the line...
I'm using the following equation to invert (non-linearly) for three parameters, L Vr and f. $$T_r=\frac{L}{V_r} - \frac{(L\,\cos( \theta )\,\cos( \alpha - f))}{V} $$ I have observational errors on $T_r$ which can be dealt with using weighting in the LM algorithms in Matlab, but how do I deal with the errors in my three...
I got these results after fitting a model: In the above picture X axis shows the fitted values and Y axis shows the truth values. We can see bias although I tuned reg_alpha & reg_lambda (i used XGBoost and also tuned learning_rate, n_estimators, max_depth, min_child_weight, gamma=0.1, etc.) So how to measure bias? Is...
I want to test for the difference between means for what I think are two negative binomial or poisson-like distributions that are 0 inflated. Can I rely on the law of large numbers to do a simple t -test? Or , is this going to be unreliable given the data type? My data are graphed below:
I am using Matlab to determine the standardised difference between a treated group, A, and a control (untreated) group, B, to eliminate the effect of size of baseline (B) value and to therefore determine whether absolute difference (A - B) is correlated to standardised difference. The data vectors are: A = 18.40,6.06,1...
I made some example data and an example graph to show what I need to do. EDIT: Here is my original (example) data, and how the ratios I want to compare were obtained. example.orig.labels <_ c("A","A","A","A","A","A","A","A","A","A","B","B","B","B","B","B","B","B","B","B") example.orig.status <- c("+","+","+","+","+","+...
Based on two of my previous questions How to compute the likelihood's Jacobian of a bootstrapped spatial autoregressive specification? How to bootstrap a (spatial) lag operator? I decided to finally ML-block-bootstrap-estimate $\hat{\rho}$ -- involved in a spatial autoregressive model -- where $\hat{\rho} = \max_{\rh...
I'm modeling a factory with orders arriving independently of each other. I need a series of actual time stamps of arrivals. I've been told that everyone uses the Poisson distribution to model arrivals. Fine. But what I can't understand is how getting Poisson time stamps differs from getting time stamps with a uniform d...
I have to get a regression model for a dataset, and it seems that the best fit is a log-linear model, so that I simply applied the least squares on the trasformed response vector. $ log(\hat{Y}) = f(X) = \hat\beta_0 + \bf{\hat\beta}^TX$ This means that the values $\hat{z}_i$ I predict from the test set through my mode...
I understand GLMnet standardizes the predictor variables by default before fitting the model. After fitting, the computed regression coefficients are then destandardized to allow reporting in their natural metric as can be seen in the post here. Is this the same for Caret using GLMnet? So if I get the coefficients for ...
I'm not sure if this is more of a Stack Overflow or a Cross Validated sort of thing, but maybe somebody has some insight as to this. I'm currently trying to train a convolutional, stacked, denoising autoencoder in Tensorflow. Except because I have too much data to fit onto RAM, I have to pull it from disk in order to w...
I need a statistical test for significance to see if there is a significant correlation between some genes. No test I have looked at so far seems appropriate. Problem: A modern species interbred with a subspecies when reintroduced. The subspecies is now extinct and it is estimated that only 2.5% of the modern species n...
Let's say I have a model that predicts a student's performance on the SAT based on a bunch of factors that a student doesn't have control over, like age, race, household income, family history, etc. Nothing that directly relates to performance is in the model (e.g. GPA, courses taken, scores on other tests, etc.). Let'...
I am working with the mgcv package in r and I am fitting tensor product P-splines. test1<-function(x,z,sx=0.3,sz=0.4){ x<-x*20 (pi**sx*sz)*(1.2*exp(-(x-0.2)^2/sx^2-(z-0.3)^2/sz^2)+ 0.8*exp(-(x-0.7)^2/sx^2-(z-0.8)^2/sz^2)) } n<-500 x<-runif(n)/20;z<-runif(n); xs<-seq(0,1,length=30)/20;zs<-seq(0,1,length=...
I'm reading a book on Deep learning and having trouble in deriving an expression Can someone please explain how to go from equation(20.10) to (20.11)? How summation term is converting into product term?
I have a question on how to interpret Law of Large Numbers. Its meaning seems to me clear when we are in the i.i.d. case: Consider $(Y_i)_{i=1}^n$ i.i.d. random variables with $\mu\equiv E(Y_1)<\infty$. Then $\frac{1}{n}\sum_{i=1}^n Y_i \rightarrow_p \mu$ I am confused about what represents $\mu$ in the non i.i.d. case...
While trying to train different architectures of Convolutional Neural Networks (CNN) for a binary classification task (part of my undergraduate research, the statistical methods gives only 56% accuracy so I gave CNNs a try), there was a very strange thing: a relatively shallow network outperformed a deeper one! The "sh...
Ideally I would like links to code implementations (eg. Matlab ) or book references, but I would appreciate suggestions on various methods. We start with sampled process $X_{t}$. A straightforward way is through repeated normality tests: a. Test for normality of $X_{t}$ using KS test b. Independence of increments: we...
I need some help understanding my partial dependence plots for features passed to a GradientBoostClassifier when comparing them to the feature importances. For some background, my goal here is to investigate user churn. My classifications are: 0 = not churned, 1 = churned. First of all when I plot the feature importan...
I'm trying to determine if I can plot my dissimilarity matrix (which is a Normalized Information Distance / the "Universal Distance Metric" dissimilarity matrix), in a lower-dimensional space using PCA or MDS (see Wikipedia article here if you are not familiar: https://en.wikipedia.org/wiki/Normalized_compression_dista...
I'm doing a rolling forecast using a fitted arma-garch model, but I'm confused regarding the rolling method, my window length is 1209 obs, and I roll 100 times, and each time I reset my window to discard the first obs and add the next obs (thus from 2nd to 1210th in the second rolling window), and everytime I do a one-...
Consider the classical linear model (1) $Y_i=X_i'\beta+\epsilon_i$ (2) $(Y_i, X_i)_{i=1}^n$ i.i.d. (3) $E(\epsilon_i| X_1,..., X_n)=0$ Could you help me to show step by step that (1), $(Y_i, X_i)_{i=1}^n$ mutually independent, (3) $\Rightarrow$ $E(\epsilon_i|X_i)=0$ Could you help me to show step by step that (1), $(...
I have to get a regression model for a dataset, and it seems that the best fit is obtained by log transforming the outcome, so that I simply applied the least squares on the trasformed response vector. $ \hat{log}({Y}) = \hat{f}(\bf{X}) = \hat\beta_0 + \bf{\hat\beta}^TX$ A prediction with this model estimates $E[log(Y...
The task: I need to calculate a one-sample t-test to see if the mean of a vector of values differs significantly from zero. Data: The dataset consist of about 25 such vectors, each with a length of 19 (counts collected at different points in time). So there's the small sample problem, but additionally, some data from ...
I'm doing an analysis where I've been able to assemble the following information about a population, its overall conversion rate (so, the percent of the members of that population who go on to make a purchase), and the conversion rate of one particular subset of the population. What I want to know is, how can I find th...
I need to choose a model for unsupervised machine learning problem. There are 4 clusters in 3D space. These are my requirements: I will run the same model multiple times with different training data (it is for real-time application). Size of training data is expected to be around 400 points. I can assume that points f...
consider a hypothetical regression analysis of finding the relationship among TV advertisement spending, Online advertisement spending, and sales. If we were to do simple linear regression with either TV or Online budget as the independent variable and sales and the outcome, we would see a statistically significant reg...
In this answer https://stats.stackexchange.com/a/279111/151862 Glen_b says The reason is that the d.f. parameter [of a t distribution] is very hard to estimate well from data, particularly if you're also estimating the scale parameter. Indeed you can often end up with either silly estimates or unstable estimates...
I am writing to ask "can the concept of a correlation coefficient be generalized, such that all the types of correlation coefficients commonly used (pearson, spearman's etc) are specific cases of it." Or, alternatively, can certain correlation coefficients be generalized if others are not included? If so, which and why...
Suppose that $K>2$ denote the number of classes and $Y$ be the class label that follows the logistic regression model for a given $X \in \mathbb{R}^d$ as follows: $$ P(Y=k|X)= \frac{e^{\beta_k^\top X}}{1+\sum_{i=1}^{K-1} e^{\beta_i^\top X}}, \quad k=1,\ldots,K-1 \\ P(Y=K|X)=\frac{1}{1+\sum_{i=1}^{K-1} e^{\beta_i^\top X...
In trying to answer a question here on Cross Validated, I was re-reading Section 3.2.3, specifically Algorithm 3.1 from Elements of Statistical Learning. What I followed from this is that, given a model with one dependent variable and two independent variables, $Y = \beta_0 + \beta_1X_1 + \beta_2X_2 + \epsilon$ then th...
It appears the solutions to my problem are the Binomial Coefficients, as seen above Suppose a combination lock with 2 dials exists, where each dial has 2 settings (for example, 0 and 1, but any two distinct numbers could capture two distinct settings). It has, of course, 2 x 2 unique settings. However, suppose the l...
Coming from a machine learning background, I have long held the idea -throw in all variables and let regularization and cross validation fight against over-fitting. The reason I am posting this arises from a recent study using principal component regression. Intuitively, increasing the PCR parameter (% of variance to ...
I'm looking to test for set enrichment and I'm wondering whether a fisher's exact test or hypergeometric test is more appropriate (and, if there isn't a straightforward answer, what the relative merits are). To lay out an example problem, I have a set of 400 objects, 150 of which belong to class A. I draw 50 objects, ...
Let $X_1, X_2,...X_n$ be independent Poisson with parameters $\theta_1, \theta_2..\theta_n$. Let $G=\sum_{i=1}^r X_i$ and $H=\sum_{j=1}^n X_j$ with $r<n$. I'm interested in getting the conditional probability $P(G=t|H=u), t \leq u$ I know that both $H$ and $G$ are Poisson with parameters equal to the sums of the parame...
I have 199 data, 77-diagnosed and 122-healthy. Each data has 12076 feature (gene expression). When I split data into train and test (N/2 for train and N/2 for test) and run feature selection on train-data and select best features and then run the same feature selection on all the data and select features, the selected ...
We have a set of intensities (measured) $I_{j} = \cos(\theta_{j}) + N_j$ where $\theta_{j}$ is distributed according to some distribution between 0 and 180 degrees (well, in reality between 0 and 360 but because of cos() we can't tell them apart) and $N_j$ is some noise (possibly weakly dependent on $\theta_{j}$). Fr...
Five numbers are selected without replacement from 1 to 10. The PMF of the $M$, the maximum of the 5 is desired. My approach is as follows: If I let $X_1,X_2, X_3,X_4,X_5$ be the variables representing the 5 numbers, $P(X_1\leq M)=\frac{M}{10}$ $P(X_2\leq M)=\frac{M-1}{9}$ $P(X_3\leq M)=\frac{M-2}{8}$ $P(X_4\leq M)=\fr...
This is a bit of a strange question, but suppose I have some random variables. $$Y_i \sim Gamma(i,\lambda)$$ Where this comes from the fact that each $Y_i$ is defined as the sum of $i$ independent exponential random variables $$X_i \sim Exp(\lambda)$$ So that, for example, $Y_{i+1} = Y_i + X_{i+1}$. I am interested in...
I'm never sure when to use one-hot encoding for non-ordered categorical variables and when not to. I use it whenever the algorithm uses a distance metric to compute similarity. Can anyone give a general rule of thumb as to what types of algorithms would require non-ordered categorical features to be one-hot-encoded and...
Here's the problem I'm trying to solve: "Calculate the probability of having the disease for a person with a positive test result." The information I have is: True positive percent = 90% False positive percent = 1% Percent of disease in general population = 0.01% I'm getting confused because I'm used to working with co...
I've been going through a data science course, and just came across Vector Space Modeling for representing text documents, and don't fully understand it. I've looked at a few articles, but they are pretty high level, and I am just a lowly python developer looking to gain knowledge of the data science world. In one of m...
I am trying to do a very simple regression of $Y$ on $X$. However my data presents a constraint. I have $Y$ but for $X$, the data I have is only $\delta X$ - that is the change over years - I do not have the levels. Is there any workaround for this? Thanks.
I want to write: $$P(y_{1}<Y\le y_{2}\mid Y\sim\mathcal{D}(\mu))$$ to say: The probability of $Y$ being between $y_1$ and $y_2$ given that $Y$ is a random variable distributed according to distribution $\mathcal{D}$ when $\mathcal{D}$ is parameter by $\mu$ I want to leave the $\mathcal{D}$ in because $\mathcal{D}$ co...
I want to describe a thought experiment to explore independent events, and whether they may actually be linked. You are given a set of independent coin generators. Coin generators are true random number generators that return 'Heads' or 'Tails'. The probability that any of the independent coin generators would return ...
I am not sure if I understand the difference clearly between ggAcf and gglagplot. Specifically, from lag.plot documentation in R 'Plot time series against lagged versions of themselves. Helps visualizing ‘auto-dependence’ even when auto-correlations vanish.' In summary, I think I am not very clear about how to interpre...
I am trying to use some R packages such as "stats" and "fpc" to calculate cophenetic correlation coefficient (like the method here) and some internal validations of my hierarchical clustering result(like the method using cluster.stats() mentioned here) But as my weighted graph is disconnected (has several separate com...
As far as I see, many classification problems focus on identifying the positive instances and therefore evaluating the performance of the classifier based on this. I wonder if any specific metric needs to be used if both classes have equal importance. Or, it would not matter? Considering that I have an imbalanced data,...
I want to determine if there is a difference in the proportion of transactions that include purchase a product (say paper) between stores in different countries. I have: Store A (Australia): 37% Store B (Australia): 36% Store C (Canada): 34% Store D (USA): 36% etc. My assumption would be to do a simple ANOVA comparin...
I ran few algorithms on a continuous target variable. I have 40,000 observation for training and 5000 observations in out-of-sample. I used linear regression, decision tree and xgboost. All of them gave me residuals that when I averaged them or aggregate show a strong negative bias toward the target variable. How can I...
I have ≈90 000 medical cases with ≈250 distinct diagnoses between them, distributed over 20 years; the most common of which applies to roughly half, and the least common applies to a handful. ETA: Each patient can have multiple diagnoses associated. I'd like to generate some sort of temporal overview by year, so less t...
In this paper, a bound on the “error subspace” projection is established, which is then used to show that any two clusterings with small distortion are close. Which immediately follows that, if a good clustering, $C$, is discovered for a given dataset (say manually, or by whatever ssuitable means), then another cluster...
The scatter plot shows two data series (x,y) the are placed somehow around a tilted ellipse. This is in fact the way I have drawn this example plot. Which statistics of the data sets are the most suitable to estimate back the geometrical parameters of the underlying ellipse? The objective is to have an ellipse that dev...
Hi: I just started reading Bartle's "The Elements of Integration", 1966, Wiley, which I really like so far. It concentrates only on the lebesgue integral and leaves general measure theory for other books which I think clarifies a lot of confusion, atleast for me. Anyway, on page 10, he extends the real numbers to inclu...
I have two questions related to this previously answered question. Can someone explain how the NN's backproagation algorithm would not be able to function properly when inputs have multiple right answers? I have a similar problem where in a data set, there are times when the inputs result in a certain output, and othe...
I am trying to replace a c4.5 tree that someone else implemented with a boosted tree (XGBoost). The data is extremely skewed and the company wants the new model to output similar distributions. c4.5 trees determine probabilities based on the number of observations that end in a terminal leaf, and I was wondering if th...
I'm new to the filtering problem in data mining. Suppose I've 100000 numeric features I can use to predict 1 nominal variable. Suppose I want to use only the best 5 features. Why shall I not use the 5 features with the highest Spearman rho? I guess the answer is the possible existence of co-correlation among the 5 feat...
I have ordinal data from 3 related samples. First i conducted a Friedman test to know if there were differences between at least two samples. Next I conducted a Wilcoxon signed rank test to know between which of the 3 samples there were differences and i generated 3 possibles pairs. However i don't know if i need to a...
In the attached q-q plot obtained from a genome-wide case/control study, the negative log of the p-values are plotted on the x (observed) and y (expected) axis. Few SNPs at the extreme distribution deviates from the expected null distribution. But, since the observed p-values for these SNPs in the extreme distributio...
I encountered an integration problem when I read a statistics textbook, which involve the following relationship. $\int_{-\infty}^{0}\phi(z;\beta,1) dz = 1-\phi(\beta)$ Here $\phi$ is a normal cdf. $\phi(z;\beta,1)$ represents a normal distribution of z with mean $\beta$ and standard deviation 1 and beta is also a rand...
I'm currently working on a Regression Model involving multiple categorical variables. While researching on how to proceed on this I came across "Dummy Coding", which I'm totally fine with and later I stumbled upon "Effect Coding", which is bothering me with. I want to know, how do these two ways of coding differ and a...
After reading many posts, I thought of asking: Why should a SVM be biased towards majority class like other classifiers, since an SVM never used the whole data of the training data set—it only uses the support vectors to determine the best hyperplane, maximizing the margins between two classes. For example, out of 10...
I'm trying to solve the following homework problem: A worker has asked her supervisor for a letter of recommendation for a new job. She estimates that there is an 80 percent chance that she will get the job if she receives a strong recommendation, a 40 percent chance if she receives a moderately good recommendation, a...
Is there a known formula for the power of a $\chi^2$ test? Or a known method to calculate it? More precisely: Take the simplest case of $\chi^2$ goodness of fit: a coin with unknown heads probability $\theta\in[0;1]$ is flipped $n$ times. You want to test $\theta=0.5$. Call $X_n$ the number of heads. Define as usual: $...
I am writing a meta-analysis that compares the complication rates and reoperation rates of 5 treatment modalities after a distal radius fracture by metaregression. But the metaregression uses a mixed effects model(the default model). How can I change the code to use a random effects model? library(meta) library(readxl)...
I have performed a VMR (variance-to-mean ratio) analysis on my data. I was wondering if there is a way to highlight that a particular difference between VMRs is significant? Like in this plot, where I took a mean of VMR for each condition for two different groups I would like to compare. I see that in case of vmr_temp ...
Is the following integral solvable? $$P(X) = \int^{\infty}_{-\infty} \int^{\infty}_{-\infty} P(X|\mu,K)P(\mu|K)P(K) d\mu dK$$ with $$P(K) = \frac{|K| ^{(v-d-1)/2}}{2^{vd/2}|V|^{v/2}\Gamma_d|\frac{v}{2}|} e^{-tr(V^{-1}K)/2}$$ (Wishart distribution) $$ P(\mu|K) = \frac{|\lambda_0K|^{1/2}}{(2\pi)^{d/2}}e^{-0.5([\mu - \m...
I have some questions regarding SVM and regression. 1) How to interpret SVM (regression) results. 2) How to make a proper plot (containing decent information) e1071's tune() is used to uncover the best cost (C) and gamma (y) parameters. The model is fitted against a training set (train2). svm.radial = tune( svm , de...
I am working on the following problem and cannot seem to arrive at the correct solution: Let X1, X2, … be a stationary time series with mean μ=5 and ACF p(h)=(0.9)^|h|. Demonstrate that the best linear predictor for Xn+2 of the type aXn+b is a = 0.81 and b = 0.95 From my reading I understand that we use a MSE approach ...
I have previous experience with 'normal' K-fold cross-validation for model tuning and I am slightly confused by the application in time-series models. It is my understanding that for time-series models the corollary for cross-validation is the 'rolling forward origin' procedure described by Hyndman. This makes plenty ...
I am writing a meta-analysis on the comparison of the complication and reoperation rates after 5 different treatment modalities of distal radius fractures. I compared them by using a mixed model meta-regression. What are the estimates and when are the differences significant? We had 4 comparisons on complication rates ...
I am tasked with estimating an appropriate sample size for a sales call center experiment. Two groups A & B will be taking calls. Group A (2/3 of the calls) will follow their normal procedure in selling the product. Group B (1/3 of calls) will be selling using a different strategy. I need to estimate how many calls we ...
In a game of Bridge, what is the probability that some player has a complete suit? (There are four players in a Bridge card game. A deck of Bridge cards consists of 52 cards arranged in four suits of thirteen each. Playing Bridge begins by distributing the cards randomly to four players, namely North, South, East, Wes...
I am running a Principal Component Analysis on intra-day second level returns of all the stocks that trade in the U.S. The matrix is constructed as where each row is the return of all stocks in each second. For example: 9:30:00 (SPY, S&P500, AAPL, MSFT, …, BABA, BIDU, AMZN) 9:30:01 (SPY, S&P500, AAPL, MSFT, …, BABA,...
From what I understand the Gamma distribution is a good choice for positive right skew data. My data is a magnitude quantity with heavy outliers as you can see here from a histogram of the pooled set: The data I am analyzing comes from a 2X2 factorial design (Region and Cond) with metric response variable (called her...
Even though I read my lecture notes and PP-plots vs. QQ-plots carefully, I'm still confused. So Probability plot is a plot of samples vs theoretical quantiles. There we can find a or some parameters when there is some 'linear' relationship. And QQ plot is a plot of sample1 vs sample2, and sample2 can be replaced by t...
Question: Are there two different Weak Laws of Large Numbers in the statistics literature? I have found many sources which claim that the weak law of large numbers requires existence of finite second moments, while the result I know doesn't even require the existence of first moments. In particular, I am debating retur...
I am using glm in R to fit model to my data (gene expression in different samples ~ var1+var2+var3...). My aim is to calculate residuals (for each sample), look at distribution (histogram) and find the samples which have higher unexplained variance (represented by higher residual score). When using the gaussian distr...
I have a list of numbers and I am trying to detect a drastic point difference from the previous numbers and see if the pattern has changed. For instance, x = [5000,5500,6250,4800,3950,7200,5500,800,1200,900,500,400,300,200] Above, there is high spending until 800 and then it seems that there is high spending before t...
I'm interested in testing for membership similarity between multiple categorical variables. For instance, let's say that two categorical variables have the following membership: Group1 = 1, 1, 2, 2, 3, 3 Group2 = 2, 2, 1, 1, 3, 3 I want to test how consistently samples group together across these variable. The name o...
I know that we can calculate the standard error for the AUC for all estimators, assuming that the conditional density is fixed. What I'd like to do, however, is additionally account for the randomness in certain estimators such as random Forest. I know that we can do a nonparametric bootstrap, where we resample and ref...
According to paper By Sun, Ji an Ye; A Least Squares Formulation for Canonical Correlation Analysis http://www.machinelearning.org/archive/icml2008/papers/270.pdf CCA can be reformulated as a least squares problem, where the L1 penalty can be added, and then it can be solved by LARS (least angle regression) which has a...