instruction
stringlengths
9
38.7k
I am working on a problem involving outliers detection and I found that it was possible to perform this using one-class SVM. I have been googling it and reading some blogs and papers, but I have a doubt it seems not to be solved elsewhere. As far as I have read, this paper originated the idea of one class SVM, and in h...
The objective function of Lasso is often presented by: $ f(\boldsymbol{b}) = \color{red}{\frac{1}{2}} (\boldsymbol{y} - \boldsymbol{Xb})^T (\boldsymbol{y} - \boldsymbol{Xb}) + \lambda ||\boldsymbol{b}||_1$ I understand that scaling the residual sum of squares by half doesn't affect the LASSO estimate. But why to write ...
I have data which is x and y as shown below. x and y have standard deviation x_sd and y_sd. I have calculated cumulative sum for x, and x*y as shown below (x_cumsum & xy). Now I need to calculate the standard deviation for cumulative sum and xy. I new to statistics, please help!! x x_sd y y_sd x_cumsum x_c...
I am trying to implement logistic regression in my app. I know this question is software based but the concept is mathematical. I have a table. The X axis represents minutes in a day and starts from 1 all the way to 1440. 1 represents 12am, 3 represents 12:03am etc. The y axis represents occupied / vacant, 0 and 1 res...
I have been using a learning machine in order to forecast a variable from time-series data. My question comes when I create both data sets with the following script: >library(caret) >ind=createDataPartition(Data$variable, p=2/3, list = FALSE) >train<-Data[ind,] >test<-Data[-ind,] These data sets are randomly c...
I have sampled a set of expert on their 90% CI for a set of questions. How can I combine their answers? How confident can I be in the result? |---------------------------------------| | Question 1 | |---------------------------------------| | | Lower bound | Upper bound | | ...
$X_1,\cdots ,X_n $ random sample from $N(\mu,\sigma^2)$ I know, that distribution of the random variable $$\frac{(n-1)S^2}{\sigma^2}$$ has a chi-square distribution with $(n-1)$ degrees of freedom, where $$S^2=\frac{1}{n-1}\sum^{n}_{i=1}(X_i-\bar{X})^2.$$ Is it true, that $\frac{1}{n}\sum_{n=1}^{m} (X_i - \mu)^2$ ha...
I can derive $E[X|X>c]$ = $\frac{\phi(c)}{1 - \Phi(c)}$ , using the trick $- \int \frac{d \phi(x)}{dx} = \int x \phi(x) dx$. How do I do a similar thing to derive $var[X|X>c]$.
I'm reading about the resample-move strategy, originally by Gilks and Berzuini, but my question will use the slightly more verbose description from the review of Doucet and Johansen, section 4.4, PDF page 29. In this algorithm, weighted particles that summarize an underlying distribution of interest are first resampled...
I know the initial and final value of a time series over a year, so I can easily calculate the daily geometric average of the growth over that period. I also have an estimate of the daily variance for that year. But some of the variance will be due to the growth. How should I adjust the estimated variance to remove th...
I am attempting to estimate a (set of) survival/retention curve(s) from survey data. Unfortunately, the data I have is incomplete. I know: How long current (alive) subscribers have had the service How long ago former (lapsed) subscribers cancelled their service I don't know: How long lapsed subscribers had their ser...
I am interested in finding the distribution "$p^*$" closest to an empirical distribution $\hat{p}$ where $p^*$ is a mixture of first and zeroth order Markov models. That is, I want to find $$ p^* = \arg\min_p \sum_{i,j} D\left(\,\hat{p}(j|i)\, \| \, p(j|i) \,\right) $$ subject to the following constraints $p(j|i) = \a...
As a routine exercise, I am trying to find the distribution of $\sqrt{X^2+Y^2}$ where $X$ and $Y$ are independent $ U(0,1)$ random variables. The joint density of $(X,Y)$ is $$f_{X,Y}(x,y)=\mathbf 1_{0<x,y<1}$$ Transforming to polar coordinates $(X,Y)\to(Z,\Theta)$ such that $$X=Z\cos\Theta\qquad\text{ and }\qquad ...
Is it the case that the equation Var(a + bY) = bVar(Y) is always true? If so, how can you prove that this equation is always true?
I am playing with a toy data where the Simpson's paradox exists for two variables NO2 and temperature: A scatter plot clearly shows that the correlation between NO2 and temperature was reversed when going from population level to subject level: I am thinking of using lme to detect this, by specifying temperature as a...
I'm dealing with the output of a study where raters were semi-randomly paired (based on availability) to rate a total of 50 unique but similar scenarios. Each scenario was rated by a different pair of raters (10 total raters), but not in any organized way (e.g. some raters were paired together more than others, some ra...
In my substantive research, I often use dichotomous scoring (1 correct, 0 wrong) for my tests (tests with $15~yes/no$ items). My goal is often to compare the the proportion of correct answers to all items across two groups (e.g., $n1 = n2 = 25$). Each test-taker's sum of $15$ item scores, will be binomially distributed...
Let's say I have two models to predict the out come of a game. Model A uses the player specific statistics (speed, reaction times etc.) and predicts a 75% chance of a win for my team. Model B uses the team statistics (recent performance, historical performance against the other team etc.) and predicts a 75% chance of a...
I use a full-connected network to get the whole words distribution from the last state of an encoder. For example, there are 5 words in the vocabulary. P = [0.1, 0.1, 0.2, 0.2, 0,4] And the ground truth is a words' set for this train data. I sample 3 words from the 5 words and if the target set contains the 3 words , ...
I understand that a (weakly) stationary time series is one where $E[X_t]$ = constant $Var(x_t)$ = constant $cov(x_t,x_{t-h})$ = constant, at any h (regardless of t) and that ARMA models can only be applied on data that is stationary. Then, I learnt that for a AR(1) model to be stationary, the coefficient $|\phi_1...
Is it true the 0th lag order auto-covariance of a variable Y_t is equivalent to the variance of that particular variable?
I have an assignment to create a LSTM network predicting price and trend of cryptocurrencies based on stock market data from the past. The network I am using is a multilayered LSTM, where layers are stacked on top of each other. I provide keras code for the model below: model = keras.Sequential() model.add(LSTM(input_s...
There are several questions about this problems but they are not as specific as this and none of them have ever been really answered. Using R, I am working on a clustering problem concerning 600,000 observations and up to 16 variables both numerical and categorical. I decided to go for non-hierarchical algorithm like ...
The OLS estimate $b$ is equal to $(X^TX)^{-1}X^Ty$ for the linear regression model. If we assume that $E(\epsilon|X)=0$ then it is easy to prove simply by taking the conditional expectation, of $b$ substituting in the expression for $y$ and simplifying. But how do we prove it if we only know that $E(X^T\epsilon)=0$? $E...
If we have $E(x|y)=E(x|z)=0$, does it follow that $E(x|y,z)=0$?
For every positive integer $n$, $nx^{n-1}$ is a probability density function in $[0,1]$. What is it called?
I've data df and i'm wondering why p-value change according the order of the independent variables product and age ? How to know which one to place firstly ? df=structure(list(Age = structure(c(1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3...
I have two continuous distributions and I am trying to compare them using KS test using R Studio with the code below: f1 <- "filename1" f2 <- "filename2" readDataFromCSV <- function(filename) { packetsData <- read.csv(file=filename, header=TRUE, sep=",") return(packetsData) } pd1 <- readDataFromCSV(f1) // x pd2 <...
I got a problem in which the classification task is very hard to accomplish, because the features are not very informative. Anyway I'm trying to get some results (even poor) using a neural network (MLP) tuning its hyper parameters. Because I'm searching for very little improvement for the classifier and because the pro...
The discussion is how to justify picking a simpler model. Mackay here is saying that from an IT perspective it makes sense to pick a simpler model. From http://andrewgelman.com/2011/12/04/david-mackay-and-occams-razor/ When you think about it from an information theory / data compression point of view, the Occam story...
I have heard that takes mean of means or averages of averages is bad, however I don't exactly understand why. For example, in my case I have mean sales per store for 10 stores. Why is it bad for me to take the mean of the mean sales per store (creating the mean store sales for the entire company)?
I have a dataset $\{Y_i\}$, and a set of datasets $\{\{X_j\}_Z\}$ that depend on $Z=1,2,\ldots,26$ (and $j_{max}=100$; $i_{max}=26\times 100$), meaning that there are sets, numbered by $Z$, $\{X_j\}_1$, $\{X_j\}_2$ etc., which are in general different. Each $X_{j,Z}$ corresponds to some $Y_i$. I'd want to find values o...
Although I have used R to explain my question, I think and hope this is of general interest and is not off-topic here. I want to test whether the continuous variable “varA” is different between the two levels of the categorical variable “varB”. I know that “varA” is affected also by “varC” and “varD” that are categoric...
Everywhere you look it's all about finding whether you can reject that two samples are different or not. But how do you interpret it, when you go the "opposite" way around? E.g. I have two values, from experiment and theory that are similar. A Z-test reveals they're only 0.1 sigmas apart. There's no way that they would...
I have a regression problem that I currently train using the classic squared error loss. The thing is that my problem does not fit to this kind of loss: I want to punish the model less when it over estimates the outcome, then when it underestimates it. For example, I would like to have something like that: $y = 10, \h...
I saw the following expression in paper [1] (equation 1) \begin{equation} \Pi_{i=1}^{n} \left[\frac{HR(t_i,x_{\sigma(i)})}{\sum_{j=1}^{n}Y_j(t_i)HR(t_i,x_{j})}\right]^{\delta_i}\left[\frac{HR^C(t_i,x_{\sigma(i)})}{\sum_{j=1}^{n}Y_j(t_i)HR^C(t_i,x_{j})}\right]^{1-\delta_i} \end{equation} In the text the function $HR^C$ ...
I did a principal component analysis, which resulted in 7 components that I am now using for a principal component regression on my independent variable. However, I want to add 2 control variables, but these are not component scores, but "normal" variables (on a Likert scale, the same sort of variables my independent v...
I'm sorry in advance if my question is too broad of does not fit here. Which algorithms in machine learning classification and data mining can be expressed entirely or almost entirely as set intersection operations. For example, for the case of machine learning classification I do not care about how those sets are com...
Given $$X \sim \text{Beta}(\alpha,\beta)$$ (where $\alpha=\beta$, if that helps) and $$\theta \sim \text{Uniform}(0, \pi/2).$$ I'm trying to find a formula for $P(Y)$ (or even the cdf) of $$Y = X + (1-2X)\cos(\theta)$$ on the domain $(0,1)$. I know from here that given $C = \cos(\theta),$ its PDF is $$P(C) = \frac{2}{\...
This question is in context to transfer learning. During my presentation on transfer learning, I was asked the difference between covariate shift and domain adaptation. All I know is that covariate shift takes place when data distribution changes over time and that this change in data distribution changes the original...
My setting is the following, in my dataset, I have different measures (14 types of measures), let's call them: $m_1, m_2, \ldots, m_{14}$. I'd like to find the regression with the maximum $r^2$, using as predictors, the sum of these measures, for instance: predictor 1: $p_1=w_1 + w_2$ predictor 2: $p_2=w_1 + w_3$ $\ldo...
When I run my simple plant model, Length ~ Age + Location I get a very strong increase of fitted residuals, almost like a perfect cone. When trying a logarithmic transformation (log(Length) ~ Age + Location) the residuals even out nicely. However, the AIC increases considerably (from 1200 to 3700). So my questions are...
I am currently thinking about the relationship between the law of large numbers and the central limit theorem and I was wondering whether someone can give me an example of a familiy of random variables $(X_i): (\Omega, \mathscr A, P) \to (\Omega_i, \mathscr A_i) $ such that the central limit theorem holds but the law o...
"A reference interval is a type of prediction interval and contains the middle 95% of measurements of some substance or item from a healthy population. Age specific reference intervals provide variable interval limits based on age. An Age-Specific Reference Interval gives the boundaries between which a typical...
I have some data on retail stores (it's about 4000x100 entries). I would like to predict sales volumes potential which is hidden from me. I observe some sales volumes which is bounded by sizes of stores (number of salesmans in store, area of a store for example). Distribution of sales volumes per salesman is looking ...
I am looking for the mean and variance of a bernoulli distribution of two normally distributed random variables. An example would be as follows: A coin flip heads: draw from a $N(\mu1,\sigma1)$ tails: draw from a $N(\mu2,\sigma2)$ For the expected value of the coinflip I would think it equals $p*\mu1+(1-p)*\mu2$. Whe...
I'm trying to calculate odds ratios to summarize associations between some risk factors and the number of risk variants in a subject. Number of risk variants is ordinal. I did a multinomial logistic regression that summarizes separate odds ratios for observing 1, 2, 3, or 4 risk variants versus 0 with different medicat...
As an extension of this interesting question, suppose I draw two samples $\mathbf x_1$, $\mathbf x_2$ independently from a $\textrm{Multinomial}(n,\mathbf p)$, with $\mathbf p$ a probability vector of length $k$. What is the distribution (expectation alone will suffice) of their Pearson correlation coefficient \begin{...
So I've built a (long computational time) jags mixed model that includes an interaction term in the fixed effects. After the fact I want to multiply two of the posterior means for the regression coefficients - with credible intervals. Example: library(lme4) library(runjags) model <- template.jags(total.fruits ~ reg + ...
The following is a standard, but I couldn't find a single textbook for it. Could you help me find a reference for this lemma? Given $f,f_N \in L^2 (\Omega) \cap L^1 (\Omega)$ for some probability space $(\Omega , \mu )$, then $$\left| \mathbb{E}_{\alpha} [f] - \mathbb{E}_{\alpha} [f_N] \right| \leq \|f - f_N\|_2 \, ,$$...
When conducting a grid search over a range of parameters of a predictive model which is itself subject to randomness (such as a random forest with bagged features), should you set a seed for the predictive model, so that for each round of the grid search, the model is initialized the same? It seems straightforward, tha...
I am looking for any resource or tutorial which can help me to understand the visualization done by Andrej Karpathy’s blog (http://karpathy.github.io/2015/05/21/rnn-effectiveness/) or the simpler example done here http://blog.echen.me/ . I have a working lstm model and found out (I think) how to get intermediate layers...
I was watching professor Andrew Ng's lecture on Logistic Regression and Regularisation. While teaching overfitting professor said that, "If we choose a hypothesis function with high degree then it tends to overfit and does not generalise well. This is because such a polynomial can fit almost any function and we don't h...
The goal is to do supervised learning, we have a set of inputs and target variables. But for each entry, the input is not a 1-dimensional vector. But rather there is a symmetrical 2-D matrix for each entry. Also size of the matrix for one entry is different from other ones. What are the ways to unify all info from matr...
I've got some data and my goal is to find a model that fits that data well, but also that is interpretable/intelligible to humans. I've just performed 10 runs of 10-fold cross validation comparing a few different models of this data. Comparing the log-likelihood loss, it's reasonably clear which model performs best. Ho...
From a series of binary machine failure events, say occured on 20. Feb. 2013 18. Aug. 2013 03. Jun. 2014 04. Dec. 2014 09. Oct. 2015 14. May 2016 I would like to estimate when the next failure will occur as per today. In my understanding, since from to day to the last failure (May 2016) more time has passed than sinc...
I want to develop a logistic regression model. There are 1000 cases in the dataset and there are only 180 'Yes'. Therefore, the proportion is 18%. I was told that I should have at least 500 Yes in the dataset in order to build a good logistic regression model. How can I handle this problem? Do I need to have at least ...
I have 50 objects and several ways of measuring dissimilarity between them. I would like to compare behaviour of these dissimilarity measures on my objects (which of them yield similar results and which do not). Is there a way to do it? If needed, dissimilarities can be approximated with Euclidean distances in k-dimens...
I have (or at least I think I have) a good intuition for why stationarity is a requirement for modeling $AR(p)$ models: an $AR(p)$ model with coefficients $a_1,....,a_p$ : $ Y_t = a_1Y_{t-1}+a_2Y_{t-2}+....a_qY_{t-q}$ such that one or more of the $|a_i| >1 $ , would diverge quickly. But why is it a requirement for $...
In my experiment I want to figure out how the size of different planting containers, i.e. their volume, affects the number of regenerated plant shoots from root fragments (terminology here is root suckering). So in other words, how many shoots are regenerated from the initial root material given the container they grow...
The question is about the following slides: I have confusion regarding the second and the third statements. Regarding the second statement ("If I not observed nor is anything else"). Here, we get the probability of I given S, then we can get the probability of G given I and finally we can get the probability of D give...
there is this thing that bothers me so much about the likelihood ratio test application in GLMs. Suppose we want to test whether we can drop some of the covariates for the model. Than we expect the difference in deviances to behave like a chi-squared random variable and we can test this by using a LRT and based on its...
I am comparing few classification models (performance in AUC of ROC curves). I uses 10 times repeated 5 fold cross-validation so I have 50 values of AUC for each model. The key information is, that every 50 resamples are same for each models. So I have same combinations of training set/test for each models. May I use ...
What test(s) should I perform to analyse whether a relationship exists between i) two discrete variables (e.g. variables that take only the values 0, 25, 50, 75, 100) ii) one discrete and one continuous variable Since I have a large set of data, I have inputted it into Excel. How to do these tests there would be most...
I'm trying to get my head around GLMs. In order to setup the GLM we need a smooth invertible function of the mean which maps $η$ into the scale of the response. I don't really understand what the "scale of the response" is. Basically, we have a function $g$, such that $g(\mu)=\eta$ but what does this scale mean? I feel...
Say that I am trying to predict sales for the next year and I have a dataset that looks like this. Date || Sales || # of Salesmen|| Shoppers Jan 2016|| 2032|| 55 || 10,000 Imagine this data goes back for 5 years. I am trying to create a forecast for the next...
The question is about some iid complex Gaussian. Let $\vec{h} = [h_1,\ h_2,\ \ldots ,\ h_n]^T $ where $h_i = x_i + j \ y_i $ and $x_i,y_i \sim \mathcal{N} (0,\sigma^2 = \frac{1}{2}) $ I have $L$ of this random vector i.e., $S_h = {\vec{h_1},\ \vec{h_2}, \ldots ,\vec{h_L}}$ and I am selecting one of them ba...
I'm building a Bayesian Probabilistic Model and have been researching ways to assess the quality of the model but haven't found much. Any recommendation would be much appreciated. [Edit: Providing more context] I'm building a model that will predict the likelihood that an event will occur given a number of past even...
I'm struggling because while I want to show the interrelationship of correlation between my fields, I realize that trying to plot nodes in terms of distance away from each other based on correlation will lead to impossibilities such as a case where A and B are 1 unit apart, B and C are 1 unit apart, but C and A are say...
I'm looking to do a time-to-event analysis. My data set set has a binary response variable representing 2 distinct outcomes, a time variable, and some censoring. I am mainly interested in the time to success. The two outcomes are opposite and mutually exclusive. It does not make sense to think of the events as dif...
Given data $<y_i, X_i>$ for $i \in \{1, 2, 3, \dots n\}$ ($n$ samples), and we are interested in knowning the relationship between $y$ and $X$. In the simplest manner, we can solve for $\beta$ where: $$ y = X\beta + \epsilon $$ Soving $\beta$ by minimizing some loss (e.g. $\ell_2$ loss) will give us an overall understa...
I am learning how to apply multilevel modelling to traditional factorial ANOVA research design: a pretest, treatment, and posttest design. I learned that by excluding any intercepts for factors, I can fit a model letting each coefficient indicate the estimated mean score for each level (Testing main effects and interac...
I am trying to run a two-way ANOVA in JMP where I have the following variables- Fixed effects: 1. Genotype (categorical) 2. Temperature (categorical) Random effect: 1. Subject (animal) I am using the same subject for different temperatures, violating the independent measures assumption of two-way ANOVAs. If I account f...
I a studying from Brockwell and Davis Time series Theory and Methods. I have the theorem 1.5.1. I am not clear with the first part of the proof. The theorem is the next one: In the first part of the proof, I can't see how to compute: $$0\leq Var(a'Z_t)$$ I have that $Var(a'Z_t)=a'Var(Z_t)a$, then $Var(Z_t)=Var(X_t-EX...
I want to fit a nonlinear model by using generalized least squares regression with the function gnls of the package nlme of R. Thereby, the residuals of the fit show heteroscedasticity and autocorrelation, why I want to include, e.g., the varPower() variance structure and the corAR1() correlation structure in the regre...
My company (which does audits and legal cases) is in the process of implementing a strict time allocation schedule for the employees. That is, we will be given X minutes to complete an audit, for instance. When my colleagues and I pointed out that the amount of time would not be enough, the manager replied that, on ave...
I'm trying to understand Jeffreys prior. One application is for 'scale' variables like the standard deviation $\sigma$ (or its square, the variance $\sigma^2$) of Gaussian distributions. It is often said that using a uniform prior over $\sigma$ is not really non-informative and instead one should either: Use instead $...
I am curious about a claim made in Wikipedia's article on effect size. Specifically: [...] a non-null statistical comparison will always show a statistically significant results unless the population effect size is exactly zero I am not sure what this means/implies, let alone an argument to back it up. I guess, aft...
I used t test for my data in likert scale with 115 observations, based on an answer to a similar question (see gung, 12 June 2016). Can somebody help to find a credible source to justify my decision? I spent many hours on this with no result.
I am doing a linear regression and the regressors, like GDP, inflation, etc, (independent variables) are non-stationary. What should I do if those regressors are not stationary? Should I 'make' it to stationary before regression?
I came across the formula for obtaining the upper confidence bounds on the k-armed bandit problem: $$c\sqrt{\frac{\text{ln} N_i}{n_i}}$$ where $n_i$ is the number of samples we have for this particular bandit and $N_i$ is the total amount of samples we have from all bandits. The same algorithm is used in the Monte Carl...
I am currently reading up on Maximum Likelihood Estimation in Studies in Econometric Method. When describing the requirements for MLE to be consistent, they described it as the following: A number of results have been obtained regarding he consistency of genuine and quasi-maximum-likelihood estimates. Mann and Wald [...
I had a query about Data set splitting. Say, I have a data set and I split them into 3 different sets - Training Set, Validation Set and Test Set. I will use the Training Set and Validation set to go over different algorithms and choose the best performing one (Based on validation Set accuracy and all) Now, I am convi...
For an $AR(p)$ process $ Y_t = a_1Y_{t-1}+a_2Y_{t-2}+...+a_qY_{t-q}$ : Is having the coefficients $|a_1|,....,|a_p| < 1$ just a necessary condition for stationarity, or is it sufficient as well?
I conduct an experiment and I get #installs=2 out of #clicks=100, I am interested in the proportion #installs/#clicks. Here, I get ratio to be 2%. I conduct another experiment and get #installs=200 out of #clicks=10000. Again, the proportion is 2%. I was wondering which scenario gives better representation of the ratio...
I have the following cumulative distribution function: $F(x)=\begin{cases} 0& \text{ if } x<0 \\ \frac{1}{4}+\frac{1}{6}(4x-x^2) & \text{ if } 0\leq x<1\\ 1& \text{ if } x\geq1 \end{cases} $ Now, it is required to calculate the probability $P(X=0|0\leq x<1)$. How can I obtain the probability at a single point when ...
For a classification task, the output neurons give a continuous output of [0 1], which itself can be treated as confidence, ie, a value closer to 1 means highly confident and closer to 0 means not confident. Similarly, how do we get the confidence of a regression task prediction?
I was asked recently about a model evaluation metrics involved in a binary classifier. This person mentioned they were only interested in the True Positives and the True Negatives. We could define a metric by ignoring FN & FP, but I am unsure what they would demonstrate. I cannot find any literature that are defined...
I study the loss functions for regression tasks with artificial neural networks. In case of evaluating loss with Mean Squared Error for multidimensional outputs I read the following usual formula which is straightforward for me (N is the number of samples, M is the output dimensionality): However, I also confronted wi...
I am dealing with a dataset in which the feature data have different granularity of the target variable. Specifically, while the features I use to train the model are minute-based (so that I have an observation every minute), the target variable is weekly-based (so that I have an observation every week). What I tried i...
I'm comparing different models of a growth model using RStudio and the anova(model1, model2) command. I get an output like (values completely random, just as example): Model df AIC BIC logLik Test L.Ratio p-value model1 1 3 420 435 -265 model2 2 4 410 ...
Assuming that random variables X and Y are independent, what is $\displaystyle Var((1+X)(1+Y)-1)=Var(X+Y+XY)$? Should I start as follows \begin{equation} Var((1+X)(1+Y)-1)\\ =Var((1+X)(1+Y))\\ =(E[(1+X)])^2 Var(1+Y)+(E[(1+Y])^2 Var(1+X)+Var(1+X)Var(1+Y) \end{equation} or maybe as follows \begin{equation} \\ Var((1+X)(1...
I decided to give box and whiskers plots a try with my data. However, the produced box plots look a bit abnormal. I have not been able to find such cases online. For example, my "T" value has no box at all, while the median of "R" value is actually the same as first quartile. Is this normal? I'm not sure I want to incl...
I have 400 samples chemically analysed for 48 elements. Some elements are correlated. My goal is to identify outliers in a multivariate space, samples that are unique in their composition. I compute Mahalanobis distance after auto-scaling and normalizing the data to find anomalous samples. Now, I like to know what vari...
As someone without much statistics training it can be very annoying to come across tables like this one (supposedly explaining the relationship between various individual level characteristics, such as age, class and perceptions of immigration rates, and the tendency to vote to leave the EU) in academic papers/books: ...
any help is appreciated. When is it OK to drop the intercept term in a Binomial GLM? That sounds like the data would have to go through the origin but that doesn't seem so bad, does it since we are modelling a ratio?
I felt it important to include the full motivation for my question, since part of my trouble I think is simply not knowing the terms to search for. Similarity of set of sets and Similarity metric for 2 sets of vectors come close to what I'm looking for, but can't quite get me all the way. Suppose I have a collection ...
I am trying to locate some reference papers about consistency of REML estimators in linear mixed effects models. My understanding is that in linear model scenario, REML will produce the exact same estimator for residual variance as OLS, thus it is unbiased. However, I wonder if REML estimators are consistent in general...
I'm trying to get familiar with PCA in relation to other classification methods. I know that if using PCA for preprocessing, then the input data to the machine learning algorithm will rotate. Does this rotation of input affect the classification methods such as KNN, SVM and Random Forest? Or more precisely are KNN, SVM...
I have data where I assess pain scores to different intensities of electrical stimulation. Every subject is given 50%, 100%, 200%, 300% and 400% of their pain threshold intensity (i.e the intensity when the electrical current just becomes to feel like slightly painful). For each intensity, the participant gives a pain ...