instruction
stringlengths
9
38.7k
I'm building a clustering algorithm and was trying to determine the best way to get separate and accurate clusters. I have 300+ features to cluster on, and they are all percentages between 0 and 1. The columns are products and the rows are customers. The matrix values represent the percentage of a given customers "wall...
I have an R script that is estimating the concentration parameters (kappa) for Von Mises mixtures. This script is giving me values of kappa that are 60, 100 e.c.t. I was expecting kappa to be less than 10. What is the maximum value of kappa for Von Mises mixtures?
I am trying to figure out the probabilities for a branching process at an n'th step. If i know, $P(X_2 = a | X_1 = b)$ and $P(X_1 = b | X_0 = c)$ $\forall b$ and the offspring distribution how do I obtain $P(X_2 = a | X_0 = c)$ ? A quick reminder would be appreciated!
I have been reading through a couple of papers on the variational autoencoder model: 'Variational Lossy Autoencoder' and 'Improving Variational Inference With Inverse Autoregressive Flow'. There is one (perhaps very obvious) thing that is confusing me - the former paper mentions the 'free bits' technique for training, ...
In typical ridge regression or (lasso in a more general sense). We have a regularization term after the MSE error term $cost = \sum{(y_{i} - \beta x_{i})^{2}} + \lambda\sum{|\beta|^{2}}$ However, I believe in most engineering cases, there could be a-priori knowledge about the $\beta$. For instance, house price should ...
Abstractly speaking, are the methods of regression and analysis of variance in normal linear models, along with hypothesis tests and confidence intervals, etc., "rotation-invariant"? In particular, when doing compositional data analysis, it is often said that the 'alr'-transformation is no good since it's not an isomet...
Context: I am interested in understanding how to analyze data from clinical trials with a natural history control, meaning, a clinical trial where a group of people (say, those with genetic risk for a disease) are recruited, all of them are treated with a drug, and their survival (say, age at disease onset, or death du...
I'm trying to communicate, in lay terms, how rare a 10, 11, 12 etc. standard deviation move is assuming a normal distribution. I'd like to say something like, "a 10 standard deviation move is like randomly firing a gun and hitting the moon." Is there a nice table of such events than can be used for an illustrative di...
I am trying to understand how the linear mixed models output from the lmer function maps to the statistical notation for these models. Lets assume to have a categorical (with 3 levels) fixed effect, a continuous fixed effects, the interaction between them and a random effect for the individual. This is the equation i a...
I recently read a paper where the authors used either (a) a generalised linear model or (b) a combination of Wilcoxon rank sum tests and Spearman’s rank correlation, depending on whether the data followed a normal distribution or not. They also used a Bonferroni correction when applicable, to account for multiple compa...
I am new to data analytics having only started exploring the field this week. I have downloaded KNIME and am working with a single dataset to try out different classification algorithms. I am currently trying out the decision tree algorithm and would like to include cross validation. Currently I partition the dataset 5...
If $X$ is full rank, the inverse of $X^TX$ exists and we get the least squares estimate: $$\hat\beta = (X^TX)^{-1}XY$$ and $$\operatorname{Var}(\hat\beta) = \sigma^2(X^TX)^{-1}$$ How can we intuitively explain $(X^TX)^{-1}$ in the variance formula? The technique of derivation is clear to me.
I am measuring a self-efficacy (SE) score by measuring 7 sub-scales for pre and post intervention.For example, for a participant, I have the SE score by measuring 7 sub-scales before the intervention, and I measure the same 7 sub-scale after the intervention. My question is, for calculating the Cronbach's alpha as a st...
I have constructed a linear regression model in R using the lm function. I was hoping someone could explain to me why when I run my full model I get an overestimate of the categorical variables. For instance, the intercept - I understand that this means the Biomass when all continuous variables = 0 but also when it i...
I frequently work with extremely unbalanced data where I care most about the edge cases. For example, right now, I'm looking at some data with almost 30,000 cases where Score is between 0 and .3 and 5,000 where Score ranges from .05 - over 8. If my data was normally distributed (or even close), I'd run a histogram to g...
I have the following timeseries of the electrical current consumption of a CNC milling machine. My goal is to determine any breakpoints within the signal automatically, since I want to predict diffferent operating states in other timeseries similar to the depicted one. Of course I could do it manually, but in future t...
I have fit a proportional odds model with an ordinal response using Harrell's rms package. Now I want to measure the quality of prediction by computing Somers' D (or a generalized AUC) for this model. I have seen that the rms package has the validate() function to do this, but it operates by resampling. I have out-of-s...
I am employing a propensity score matching to get the treatment group and the control group balanced. I employ the inverse probability weights times some sampling weights (I am using a survey, hence I need to account for non-reponse bias). Then I estimate the effect weighting the outcome regression with these special w...
I have some one-group pre-post data where the outcome is a score and an IV of interest is the whether or not the subject has performed the task in the past. I am looking at this in a few ways and am wondering which one is correct: 1) GLM where outcome is the change and the IV is the past exposure. 2) GLM where outcome...
I've got a dataset of entries that belong to groups A or B. Each row has only one variable, either 1 or 0, which stand for conversion rate. I need to calculate the correlation with a significance level between conversion rate between groups A and B. Dataset: group conversion <chr> <int> 1 A 0 2...
My goal is match each of the invoices created to each payment made. So for example, if I have a set of invoices: InvoiceDate InvoiceCategory 02/21/2016 Amazon 08/17/2016 BestBuy 08/17/2016 Amazon 08/21/2016 BestBuy Let's say each of those rows are matched respectively with each row here: PaymentDate PaymentCatego...
I would like to derive the variance of the following variables: $Y_1 \sim Z \cdot \exp(W-1)$ $Y_2 \sim Z \cdot \exp(-0.5W-0.25)$ where $W$ and $Z$ are independent $N(0,1)$ variables. From the functional form, I guess that the results of the log-normal distribution can be used. But I don't know how to...
I am confused how to extract a reduced set of explanatory variables and their coefficients in one step when using stepAIC multiple regression. It looks as we need to fit a model first (step 1), then manually select significant variables (*, ** and ***) and fit the model with reduced variables the 2nd time (step 2). In ...
This is an extension of the question on Variablity in cv.glmnet results. I've recently been running cross validation to find the best shrinkage parameter($\lambda$). I was aware of the variability in cv.glmnet because it shuffles the training and validation data every time it gets called. So I called cv.glmnet multip...
I am trying to find a set of good predictors using carets GA in R to train a few classification models. My dataset consists of around 4500 rows of 96 independent variables. I want to use GA to, ideally, reduce my predictors down to between 15 and 25. require(doParallel) cl<-makeCluster(detectCores()-1) registerD...
I tried to process the daily return data for Shanghai Stock Index in RStudio. I use ARMA to model my data.Below is the ACF and PACF figure from R. How should I choose the order for my data according to these figures? I have tried several combinations but every time the result of JB test for the residuals show that ther...
Under what conditions does off-policy SARSA with importance sampling converge? I know function approximation can cause problems. In the tabular case, what is needed to get convergence (to the true Q)? I am getting exploding Q-values ATM, but I'm not decaying the exploration or learning rate, and I'm using n-step backup...
When do you use which test and which test is best for isolating the differences in multiple comparisons?
Like, I don't get it. In regression, we say $$Y_i = a + bX_i + \epsilon$$ where $X_i$ is just a real number for each observation $i$, and in analysis of variance with two groups, we say $$Y_i = a + bX_i + \epsilon$$ where $X_i$ is again just a real number, but this time either 0 (group 1) or 1 (group 2), so a is mean ...
An $L_1$ norm is unique (at least partly) because $p=1$ is at the boundary between non-convex and convex. An $L_1$ norm is the 'most sparse' convex norm (right?). I understand that the $p=2$ Euclidean norm has roots in geometry and it has a clear interpretation when dimensions have the same units. But I don't understan...
I am trying to follow along with a scientific journal. I am not used to running simulations so I could use a little help in R. Here is the simulation from the paper. For each experiment, we generate a training, validation, and testing set of N = 5000 observations, such that an observation represents a patient vect...
Let's say we have two independent 1-dimensional random variables $X$ and $Y$ and we want to estimate $\mathbb{P}(Y>X)$. Say we take a sample of size $N$ of $X$ and a sample of $Y$ of size $M$. Is the following approach reasonable? I draw 100 bootstrap samples of $X$. I take the mean of each bootstrap sample to build ...
I came across this study, Case-control study of stroke and the quality of hypertension control in north west England. In this study I find numerous odds ratio. As far as I understand, all the Case are eventful (with stroke) because they recruited them from a stroke registry already; while the Control are people with si...
I am studying Machine Learning Probability perspective and I have a question with Algorithm 8.2, which is $\mathbf{w} = 0_{D}$ $w_{0} = \log (\bar{y}/(1-\bar{y}))$ Repeat:     $\eta_{i} = w_{0}+\mathbf{w}^{T} \mathbf{x}_{i}$     $\mu_{i} = \text{sigm}(\eta_{i})$     $s_{i} = \mu_{i}(1-\mu_{i})$    ...
I don't really understand if SVM are classification methods (like Logistic regression) or clustering methods. Since it's used for supervised learning, it should be part of classification methods right ? Or can SVM also be used for unsupervised learning, and would then also be part of clusering methods ?
How can I generate a stationary Gaussian Random sequence/series that have the given autocorrelation? I have found that Autoregressive model can do the job but How to decide the order and coefficient of the AR model?
Say we have the following sample and we are trying to estimate the variance of the sample mean of the population. X = [0, -1, 2, 10, -3] If I take an increasing number of bootstrap (e.g. 100, 1000, 10,000, 100,0000), the bootstrap distribution of the sample mean gets narrower and narrower. In other words, I can make t...
I'd be really grateful for some advice here. I apologise if this question is rather elementary, but I'm not proficient at multilevel modeling (yet). My question relates to a research problem in corpus linguistics. I’m looking at how frequently certain types of metaphor are used to describe musical properties in review...
I'm currently training on a simple dataset: Training: [0,1,2,3,4,5...250] Test: [251-500] My training cost and expected output decreases and seems correct. However, when I test the model, my network doesn't seem to be able to predict sequences higher than 250. Is there an issue with my model, perhaps not deep enough? ...
I want to construct a multivariate model to find outliers in the data. The data I have is similar to the iris data (without the Species data attribute, I only have the first 4 attributes) > head(iris) Sepal.Length Sepal.Width Petal.Length Petal.Width Species 1 5.1 3.5 1.4 0.2 setosa...
If I have total $n$ patients with two sub-groups of size $n_1$ and $n_2$ in a clinical trial and I wish to find the variance of the estimator $\hat{S^c}(t)=\frac{n_1}{n} \times \hat{S_1}(t)+\frac{n_2}{n} \times \hat{S_2}(t)$, will that simply be $V(\hat{S^c}(t))=(\frac{n_1}{n})^2 \times V(\hat{S_1}(t))+(\frac{n_2}{n})^...
Suppose, I estimate a simple instrumental variable regression with 2SLS. The reduced form is $Y = \alpha_0 + \alpha_1 Z+u,$ where $Z$ is a dummy (for simplicity). The first stage is $X = \beta_0 + \beta_1 Z+v,$ and the second stage becomes $Y = \gamma_0 + \gamma_1 \hat{X}+w$, where $\hat{X}$ are fitted values. We have...
I would like to use machine learning to determine the race of an individual based on things like the first letter of his/her name, my problem is that the data I have is distributed in the following way: COUNT RACE 92742 African 12 Asian 43349 Mixed race 327 Foreign National ...
The Central Limit Theorem specifically calls out a sample mean to be following a normal distribution (for $n \ge 30$ ). But I am referring to a certain text, and it is calculating $z$ values for sample $skewness$ and sample $kurtosis$ assuming that these follow a normal distribution. Is the book correct? In short, if...
I've a time series from January 2010 to December 2017. I'm using 2010 to 2015 as the training set and I'm choosing the best model trained on the training set based on its performance in the validation/test set which is from January 2017 to December 2018 as measured by the validation/test MAPE.My objective is to have th...
I had two data samples; the first was constituted by 108 observations, the second was constituted by 88 observations. I used two Q-Q plots to check residuals normality. The Q-Q plots results were confirmed by the Shapiro Wilk test results. I read from statistical books that I could use other tests and there are diff...
While I was studying PCA, I was told that it is related to Mohr's Circle. I don't know what that means. I don't know if they are related or not. I was just told, so I want to make sure here. If they are related, what is the relationship between Mohr's Circle and PCA?
I have a time series on quarterly data with seasonality which I am trying to fit a SARIMA model to. The seasonal variation seems to be decreasing with time. I am wondering what the best way to model this with a SARIMA model is. Here is the series decomposed: My confusion stems from when it is appropriate to take the f...
I'm going through a solution of the bike sharing demand problem and one moment about scaling data is unclear to me. Concretely, why do we fit scaler only on our training data instead of the whole dataset? from sklearn.preprocessing import StandardScaler scaler = StandardScaler() scaler.fit(train_data, train_labels) sc...
I have biological data which for example looks like following chromosome.location methylation.level location_1 100 location_2 0 location_3 0 location_4 0 location_5 100 location_6 50 location_7 100 location_8 0 location_9 100 location_10 0 location_11 100 Methylation.level values are between 0% to 100% in the...
I am working on a classifier where some is be missing in the negative sample, but not in the positive one. The missing data is about gender (M/F) and age group (child/young/adult/old). The data is MAR - missing at random (probability to be missing depends on other observed variables) and only in the negative samples (i...
In another question here at Cross Validated, one user asked for the correlation of log-normal random variables. Here's the link for the question: Correlation of log-normal random variables The accepted answer presents an equation for the correlation between log-normal random variables Y1 e Y2 as final answer. I'd li...
So this is a super simple question. I have a project for which I am comparing the number of seed in expensive apples vs the number of seeds in cheaper apples. I was thinking that number of seeds is a categorical variable I would need to use a chi-square test to determine significance. Is this correct? Or would I be abl...
This is more of a statistical question rather than Excel Related. In the attached image, im trying to find out the ratio of Profit/Sales and then calculating overall Profit/Sales Please let me know which one is correct.
The title says it all. I'm interested in getting a better understand how to test the predictive power of your statistical models. As an example: Assuming you want to model a certain relationship with regression and test how it behaves to predict future values how do you go about it in a sound statistical sense? How abo...
I have a large number of CSV files, some which do not have headers. I need to identify there column names and map those columns to the correct columns in the target table. Is this a good solution? If yes, please advice on how to go about doing it since I am new to text mining, if no then please suggest some other work ...
Is there any rule of thumb or formula how to calculate sample size for ordered logit model?
I am trying to model above in excel. $$\varepsilon t = \log \operatorname{EURUSD} - \gamma \log \operatorname{GBPJPY} - \mu$$ Question: What do I use as $Y$ input and $X$ input for linear regression to find cointegration coefficients (assuming cointegration)? Also if I was to perform a multiple linear regression on a...
Can anybody show me, how to find a CI to Dispersion parameter of negbin distribution in R? Iknow how to calculate the point estimate but I do not know how to find the confidence interval so, what is the IC for this example: enter link description here
I am wondering if using RNNs to classify pdf documents for types of documents (i.e. scientific papers, books, reports, etc) based on the structural components like the text boxes and image boxes and their coordinates will make sense. Will the sequential order of the components make a good model of the type of document ...
I've been trying to understand multi-state modelling (MSM) for my use case, which is a simple illness-death model. For a standard 2-state survival analysis I often use parametric models of the time-to-event, as it is easier to extrapolate my model to predict pathways for new individuals. I'm a fan of the flexsurv R pac...
I have a propensity score matching / data imputation question. The purpose of the propensity score modeling is to put subjects from two different clinical trials on a similar footing so that a key clinical measurement from one study can be attributed / imputed to the other study. The goal is NOT to directly compa...
I am trying to study the relation between some macroeconomic variables of a country. I ran a cointegration test with the ca.jo function in R, which shows a rank 2 cointegration. I have troubles to interpret the coefficients matrix I obtained, that's why I am asking for your help... Test type: trace statistic , with lin...
When I compute: xtset panelid year xtreg y i.treat##i.post i.year Versus: xtset panelid year xtreg y i.treat##i.post i.year, fe 1. What is the actual difference-in-differences (DiD) regression I'm calculating for each? 2. The coefficient 1.treat should be for the treatment group-- do I need a control group dummy? 3...
I am learning survival analysis from this post on UCLA IDRE and got tripped up at section 1.2.1. The tutorial says: ... if the survival times were known to be exponentially distributed, then the probability of observing a survival time ... Why are survival times assumed to be exponentially distributed? It seems ver...
I created a scoring model based on 4 metrics. Currently I have them weighted as such: 50%, 20%, 20% and 10%. After calculating and ranking I realized this may not work. The issue I'm facing is that for metric 1 higher is better and metrics 2-4 lower is better. Any suggestions on a better way to go about calculating thi...
I have an adjudication automation problem. I have many lists of different instruments, each with a set of specifications. These specifications were sent to vendors that tender on the instruments. I receive back information from the vendors specifying what they can provide. I now need to compare the requirement with wha...
I'm learning about Hamiltonian Monte Carlo and one of the stated benefits is that it can move around a parameter space more efficiently and that it can (from Bayesian Data Analysis, 3rd ed.) turn corners in parameter space to preserve the total 'energy' of the trajectory. What does BDA mean by a "corner" in the param...
I would like to know if there are any good references showing how using random forests in a survival analysis setting allows the building of a decision tree showing how observations were classified and how this is interpretable and helpful in prognosis.
I am running conditional logistic regression in R using clogit(). I have 314 different strata with 1 case and 1 control in each stratum (628 observations in total). Several predictor variables have missing values, therefore 6 observations are excluded from the analysis. Now I have 622 observations with 310 events. Two ...
So I've perused this site and others, and have a question that I can't seem to find the answer to (possibly because I'm unsure how to even word it). Here goes: So I'm coming from an ecological stats background, and have done modeling, stepwise regression, etc, but have an interesting problem right now. I am working on ...
How does being BLUE matter in Linear Regression for the coefficients? What does Heteroscedasticity Consistent & Auto-correlation Consistent Dispersion matrix take care off in this regard?
Prediction of survival times in Cox proportional hazard regression model has been discussed here. In R, survfit::survival using the newdata argument gives a vector of estimated survival probabilities with a confidence interval. The mathematical expression for a prediction is $$\hat{h}_i(t) = \hat{h}_0(t) \exp(x_i' \ha...
I am examining the difference in illness models (by asking several questions: DV) for refugees and non-refugees (IV). In addition, we asked about several confounding variables / covariates (demographic data). Some items of my dataset do not fulfil the requirement of homogeneity of regression slops. I was wandering ho...
I am working with a blackbox prediction model which takes known inputs and outputs a single mean response. I know this model's residuals to be heteroskedastic, but also can assume the error term of each response is distributed normally, i.e. $\epsilon_i$ ~ $N(0, \sigma_i ^2)$. I am looking to estimate $\sigma_i$ condit...
I have a (X,Y)=(100,5) dataset (non-image) that I used with a deep linear classifier on Tensorflow to train and evaluate. At the same time, I have tested the very same dataset with conventional and shallow ML models (i.e. Random forest, DS-trees, MLP, etc.). I am seeing no tangible improvement in accuracy, and in some ...
Here's a link of the past question. Although I'm so beginner of statistic, I keep trying to understand statistic. The past question is about significantly unequal sample size. After that, I would like to visualize the mean with standard error to show no statistical difference among the groups. However, I found the s...
I started a meta-analysis which includes studies comparing the complications(yes or no, dichotomous) of different treatment modalities for distal radius fractures. I obtained all the data, but I have troubles doing the statistics. I want to compare all treatment method with the Golden Standard: Plaster Cast Immobilizat...
I'm a bit confused about odds ratio in logistic regression (LR). In a logistic regression textbook (pdf), it says that the odds ratio (OR) is $OR = \exp(\beta_0 + \beta_1X)$. But, I don't understand how the $\exp(\beta)$ is linked with the odds ratio. This is my intuition about LR. The equation of the LR is: \begin{ali...
I am trying to store the regression's slopes of two variables recorded for different individuals through a season. What I would like is the slope of the regression for each individual for each day (there are multiple values for each day). My problem is that I don't have the same number of row for each day, or the same...
Let's say I have two variables, $x_1$ and $x_2$, which represent the temperatures in room A and room B, respectively. Then I have $y_1$ and $y_2$ that represent a participant's rating of how comfortable room A and room B are. Let's say I want to find the optimal comfort level, such that the $\operatorname{mean}(x_1) < ...
Context. An unknown number of patients is tested 6 times for cancer. The number of positive tests for a single patient is Bernoulli$(6,\pi)$-distributed. Let $Z_0,Z_1,...,Z_6$ be the number of patients that have 0,1,...,6 positive tests respectively. Question. I am given specific numbers for $Z_1,\ldots,Z_6$. The num...
I am using the R-package party to build a random forest. The cforest function takes about 5 min to build a random forest model: cf.model <- cforest(as.factor(y) ~ ., data = train.data, controls = cforest_control(ntree = 25, maxdepth = 6)) However, when I try to predict the training and test samples, the code sits ther...
I need to fit data to a line. This data also includes tolerances. Now, I was wondering, if there exists a method, to account for those tolerances? For instance, a data point with a lot of tolerances should not be given the same weight as a data point with small tolerances. Here is a sample of my data: $$ \begin{array}...
I am planning on performing data collection on subjects to see how well certain wearable products perform. Let's call the products A, B, and C. The goal is to see if any of the products performs more accurately than the others. A subject can wear two products at a time with no problem. It is possible to put a third pro...
I have long run equation regressing imports on income and relative price. Here is the result from OxMetrics: After identifying the residual, I have run an ADF test with five lags as following However my professor tells me that we cannot use the usual ADF critical values to decide whether or no the residual is station...
I calculated a likelihood ratio on two likelihoods from my research (LhRatio = 2 * (Time Slice Lh – Normal Lh)). I'm testing a model which is a special case of my null meaning my likelihood ratio should be equal to a chi square statistic. I therefore tested my LR with the Chi Square Dist formula on excel (CHISQ.DIST(B7...
I know from McCullagh & Nelder's text (p.118) that the $\chi^{2}$ approximation for deviance for the binomial family is based on a limiting operation in which $n$, the number of observations, is fixed and $n_{i} \rightarrow \infty$ for each $i$. How can I explain that the $\chi^{2}$ approximation for deviance is not v...
I'm working with a time series data in which each sample itself is a vector. In following plots, x is time step. The first two plots show positive example, and the other two are negative ones. My current plan is to apply slide window of fixed width to the series, and feed each window (now can be considered as a 2-D mat...
If we are dealing with the full population instead of some sample, would we need to use Bootstrap resampling?
When we do multivariate regression, where the responses are potentially not independent, are the ML estimators the same as if we did separate univariate regressions? Where can I find these formulas?
I understand that in the method of moments, one takes theoretical expressions for the first several moments in one vector, and empirical moments in another vector, and then finds the parameters that minimizes the difference between them via iteration. What are the expressions for the moments of the Hawkes process with...
This is my first modelling indeed so I need your kind help! Model goal: Generating a predicted surface for forest-loss Model input variables: Response variable is just coded 1(loss) or 0(not loss) and explanatory variables are several types of distance like distance from several types of roads, distance from nearest m...
I am trying to follow a great example in R by Peng Zhao of a simple, "manually"-composed NN to classify the iris dataset into the three different species (setosa, virginica and versicolor), based on $4$ features. The initial input matrix in the training set (excluding the species column) is $[90 \times 4]$ (90 examples...
Using R and arules. I see several opinions on how to remove redundant rules which give different answers. If this is my example dataset: lhs rhs support confidence lift [1] {r7sVi9T6D1nE} => {hN1sUFRI} 0.0013 0.80 210.9 [2] {hN1sUFRI} => {r7sVi9T6D1nE} 0.0013 ...
Suppose I have a set of random variables ${X_1, X_2, ..., X_n}$. For each of the variables, I have the marginal distribution. Furthermore, I have the marginal distribution for various sums of subsets of these variables, such as: $X_1+X_2$, $X_1+X_3$, $X_2+X_4+X_7$, etc. If the variables are independent, the marginal di...
Suppose I have $i$ coins, all of which are weighted to have a different probability $p$ of flipping heads. This results in $i$ Bernoulli distributions with different $p_i$. Cumulatively, this results in a Poisson Binomial distribution. For this scenario, $i$ is very large, so normal approximation appears to perform wel...
I'm comparing to data sets for recovery of fungi using two type of media. Set 1 has about 12x or 24x the number of total date points as set 2. So, each parameter for set two has ~48 data points per sample location vs 12 or 24 times that for set 1. The question here is if both types of media are equivalent in the recove...
If I have 12 boxes, in order of #1 to #12, and I close my eyes and stick a known label (A to L) on a random box, what is the probability that I get zero correct labels on the corresponding boxes? In other words, after sticking all the labels on the boxes, not a single box has the correct label on it.
Leave-one-out-cross-validation error... I don't exactly get what is meant with the "error" here. What is the "error"? Could someone explain it? For example, this question is asked, but I don't understand what is being asked. Let's say I take 1-NN, so I'd pick one, and then what? The answer is given below, but I don't...