instruction
stringlengths
9
38.7k
I'm doing PCA to analyze a dataset. The dataset size is 10^7 rows, and I have about 2,000 features. My analysis shows that no single principal component captures more than 1% of the dataset's variance. To capture 75% of the variance, I have to use 1,000 principal components! My interpretation of this is that the data m...
A previous answer to a question asking for a derivation of ridge regression points out at one juncture that from the following equation: $$(y_∗−X_∗β)′(y_∗−X_∗β)=(y−Xβ)′(y−Xβ)+λβ′β$$ It follows that $$(X′_∗X_∗)β=X′_∗y_∗$$ The original author states that "From the form of the left hand expression it is immediate that th...
I'm confused about the difference between log-linear model and poisson regression and I am not sure which one to use to answer my research question. In the experiment, participants were grouped into young/old, treatment/no treatment, white/non-white. Researchers were to collect questionnaires every 2 weeks. It turned o...
Can I assume the SE the same as SEM? Is SE just the abbreviation of SEM? I am not talking about the standard deviation (SD).
The data set here presents conversion rates of visitors of a website. Among others, the number of visited pages of the site is a feature and I believe the more pages somebody visits, the more likely she will be a customer. So how does a discrete value (number of pages) relate to a binary value (customer yes/no)? When p...
So the life length of the system can be calculated by integrating the survival function like this $E[T] = \int_{0}^{\infty} R_T(t)dt$ where $R_T(t) = 1-F_T(t)$ where $F_T(t)$ is the cumulative distribution function. Lets say I have two components, one $Weibull(1,1/2)$-distributed and another component $Exp(1)$-distribu...
The standard error (SE) of x and y are x_SE and y_SE, respectively. If z=x*y, what is the z_SE?
If you study a correlation between two continuous variables and you find significant statistical correlation in univariate correlation analysis and you want to know weather this association was independent or not so you proceeded to multivariate analysis. Which is more powerful statistically to do multivariate linear ...
Negative binomial (NB) distribution is defined on non-negative integers and has probability mass function$$f(k;r,p)={\binom {k+r-1}{k}}p^{k}(1-p)^{r}.$$ Does it make sense to consider a continuous distribution on non-negative reals defined by the same formula (replacing $k\in \mathbb N_0$ by $x\in\mathbb R_{\ge 0}$)? T...
Whenever I see a visualization of support vector machines, the separating hyperplane always has three support vectors. I don't understand why it isn't two. Given that the best separating hyperplane only has to maximize the size of its margins from the nearest points of each class, I would think that only two support ve...
I am solving the next exercise, but I have spent a lot of time and I can´t. For random vectors, $X_1,X_2,...\in\mathbb{R}^p$ The sample covariance with $\Sigma_1=0$ is given by: $$\hat\Sigma_n=\frac{1}{n-1}\sum_{i=1}^n(X_i-\hat{\mu_n})(X_i-\hat{\mu_n})^T$$ Prove that $\hat\Sigma_n=\frac{n-1}{n-2}\hat\Sigma_{n-1}+\frac{...
This is Exercise 2.9 (p. 40) of the classic book "The Elements of Statistical Learning", second edition, by Hastie, Tibshirani and Friedman. In the book, it's mentioned that this exercise was brought to the authors' attention by Ryan Tibshirani, from a homework assignment by Andrew Ng. Ex. 2.9. Consider a linear regres...
I'm following a MOOC at the moment and they seem to suggest when scaling it's best to scale the training data first and then use the training set's parameters to scale the test set. I see no reason for that, why not just scale the full dataset from the start, it will give us the most complete information on the shape o...
Let $S_n^2\sim\mathcal{\chi_n}^2$ and let $\hat\Sigma_n$ be an estimator of $\Sigma\in\mathbb{R^p}$ such that $(n-1)\hat{\Sigma}_n\sim W(\Sigma,n-1)$ (Wishart distribution) for some $n>p $. a)Show that $\mathcal{L}(\sqrt nlog(\frac{S_n^2}{n}))$ onverges weakly to $\mathcal{N}(0,2)$. I know that $$S_n^2=X_1^2+...+X_n^2$...
I would really appreciate it if someone could explain the reasoning behind whether this can be true or not.
The rate is the expected number of events per some unit (time, or spatial). $\text{Rate}=\frac{\text{numbers of events}}{\text{the length of time interval}}.\ldots (1)$ (Reference: https://stats.stackexchange.com/users/11887/kjetil-b-halvorsen). The definition of hazard function (or, hazard rate) is "the instantaneous...
I'm trying to compare differences in text content between sites from medical societies from USA and UK. My plan is to describe with wordclouds, tables and other graphs for the descriptive part. In case of a comparison between sites, which could be an appropriate statistical analysis? I was reading Agresti (2002), ch...
I would like to know if the following multivariate discrete distribution has an established name and how to generate it. Let the sample $(X_i)_{i\in{1..n}}$ drawn from this distribution have the following properties: $X_i \in \{0, 1, ..., m\}, \forall i \in \{1, ..., n\}$, $m \in \mathbb{N}$ $\sum_{i=1}^n X_i = m$ all...
Suppose I want to run a Poisson glm, what's the minimum sample size necessary to run it? Is there a formula to determine the minimum sample size for each unique statistical test?
I'm trying to make sense of a derivation I'm following from the lecture notes of Stanford's ML course. Specifically the notes are here: http://cs229.stanford.edu/notes/cs229-notes8.pdf I'm particular I'm interested in the step where they are optimizing the lower bound of the log-likelihood by finding the derivative of...
In causal inference, there is a very subtle difference between viewing the potential outcomes $Y(1), Y(0)$ as coming from a super-population or a finite population. Specifically, in a super-population, we assume that $Y(1), Y(0)$ are stochastic and hence induce a distribution onto the treatment vector, $Z$. In the fini...
Question: Use simulations in R to numerically estimate $P(X<Y)$ for $X \sim N(0,1)$, $Y \sim N(1,5)$ with X and Y independent. My Solution: simfunc <-function(sims,n){ res <- rep(0, sims) for(i in 1:sims){ X <- rnorm(n, 0, 1) Y <- rnorm(n, 1, 5) count <-0 for (j in 1:n){ if(X[j] < Y[j]) ...
hi there please tell me what it can be called when two sample groups are used in a research for example employees and managers. Moreover, whether there is any benefit of using two categories of sample. thanks
So I am designing a neural network which will decide which way a character should move and look. I was thinking of breaking it into two different networks one for movement and one for direction. So for movement the network will be given 5 booleans and 4 ints. Representing: is it allowed to move, can it move forward, ...
I am trying to compare importance of over 100 features using xgboost. My question is, for xgboost (or any tree based methods), for Non-ordinal categorical features such as "race" (categorized as 0, 1, 2, 3). It makes more sense to one-hot code "race" or not. If yes, then how to compare the "importance of race" to ot...
I am playing around with PCA by plotting a regular 256x256 grid of points, randomly rotating the grid, and computing the principal axes. Originally, I thought I would be able to recover the amount that I had rotated the grid using the principal axes, but it seems that is not the case, and it makes sense to me that on a...
Let's say we have a log-logistic random variable $X$ with probability density function: $$f(x)=\frac{(\beta/\alpha)(x/\alpha)^{\beta-1}}{(1+(x/\alpha)^{\beta})^{2}}$$ where $\alpha>0$, $\beta>0$ and support on $x\in[0,\infty)$. This random variable has mean and variance defined as follows: $$\mathbb{E}[X]=\frac{\alpha(...
There are multiple reasons for applying standardisation/mean centre for predictors before putting them into a regression model. However, in the literature, some people do not do so or even argue against this idea. They say that it is not necessary to do standardisation/mean centre. Actually what are their reasons? I he...
I have two time to event data measured on same individual.they time to diagnose and time to first treatment from diagnosis . i have fitted two cox models separately for two survival times. Now I want to fit a single model to them. Is there any way to do that? can I go with frailty models?
Is there some sort of memory-efficient approximate solution? What if all of the off-diagonal elements of the covariance matrix are equal to $\alpha$ and all of the diagonal elements are equal to $\sigma^2$? An implementation in R would be terrific. For additional context, the MVN has a dimension around 70000 and has a ...
I am doing the Deep Learning Specialization on Coursera , and in one of the videos I came forward to the following graph:- I could not understand the reason why the mini-batch gradient descent's cost function is noisy. Dr. Ng told in the video that the reason for this is that one set might be "easy to train" and the ot...
Can someone explain me the problems associated with using more than 20 levels in a single dummy variables. I am aware of the negative implications of using several dummies variables in a model. However recently I came across a reading that mentioned usage of several level with a single dummy category also has negative...
My question is about differences in approaches to analysing data generated with Multiple-Imputation via Chained Equations. I am using the R-package: MICE Broadly my query describes the following siutation: Take a dataset X missing values of some variables 1,2,3. Apply Multiple Imputation via Chained Equations. Generat...
Me and my wife had bought and planted ~20 plants in ~8 pots in our garden. the plants are of the same specie and were all very much alive when we bought them. The number of plants per pot varies as the pots are of different size. I've notice that some many of the pots are dying/dead and I think that the proportion of ...
I'm interested in the following problem: I have a biased coin, which you measure, and make an estimate $p_{est}$ of the odds of getting a heads. I then flip the coin a random (say, Poisson(10)) number of times, and observe $n_H$ heads and $n_T$ tails. I'd like to "score" your prediction. Current idea for a method: Us...
Essentially I am looking for a way to create a similar plot to the top one in this link, the line plot with varying line thickness: https://www.informationisbeautifulawards.com/showcase/2518-the-safest-cars-of-the-last-eleven-years Question 1: Does this kind of plot have a particular name, or is it just a version of a ...
I dont have a collection of data which I try and extract features from. I have a set of real world experiments from which features are retreived. If the tests are sparse and I received missing data - can anyone point me to procedures to deal with sparse but pertinent features? I do not care to deal with procedures tha...
We know the Gamma distribution has two parameters typically referred to as the shape and the scale. These are denoted a and b, or α and β. When the shape parameter is an integer then it is known as the Erlang Distribution. What is the example of integer and not integer parameters difference with and example?
For multiple linear regression let $\beta$ be the true value of the coefficient such that $y_{i}=x_{i}^{T}\beta+\epsilon_{i}$ and let $\hat{\beta}$ be the estimated value found through minimizing least square error. Now we know that $E(\hat{\beta})=\beta$ but I am not sure over which probability distribution this expec...
I'm trying to predict the prices of Airbnb's given some of their attributes using a very simple linear regression model. Despite obtaining a median absolute error of around 24 euros on the training and testing set which I'm happy with, when I plot the residual error there's a lot of large outliers. My question is; how ...
I read the answer in Why are non zero-centered activation functions a problem in backpropagation? but I still can't understand. Assume$$f=\sum w_ix_i+b$$ $$\sigma(x)=\dfrac{1}{1+e^{-x}}$$, and loss function is $$L=\sigma(f)$$ To my understand, the gradient $$\dfrac{dL}{dw_i}=\dfrac{dL}{df}x_i=\dfrac{dL}{d\sigma}\dfrac{...
I am doing some Cox modelizations in R and some of the models don't fit. Since I am mostly doing routines with function, I would like to be able to catch the case when my model doesn't fit. Here are my attempts : #My variable which doesn't fit > cox.ko=coxph(os~bad.var, data=db) Warning message: In fitter(X, Y, strats,...
I'm running an XGBRegressor for parameter optimization as below: xgb_model = xgb.XGBRegressor(nthread=10) clf = pipeline.Pipeline([('xgb', xgb_model)]) param_grid = {'xgb__max_depth': [1,2,3], 'xgb__learning_rate': [0.2,0.3,0.4], 'xgb__n_estimators': [40,45,50] } mod...
I am posting today because I got some issues to understand how to add covariates in a regression difference in difference. I understand the primary goal of the regression difference in difference. I now want to add covariates (new features in my words) to my model in order to increase the statistical power of my model ...
I have an extremely noisy dataset, and I try to minimize the MAE. Apparently, when my linear regression makes its prediction - it has something like -1000 MAE (when compared to the MAE of an all-zero vector), and as I divide the estimation of every observation by some factor, it improves dramatically: - factor 1.5 | m...
I downloaded some data which does not follow a normal distribution. I understand that if my data is not normal, then statistical methods which assume a gaussian distribution cannot be applied on my data. What should I do with my data? One method that I thought of was to localize the a range of data so that it assumes a...
I am attempting to calculate Cohen's f2 as a measure of "local" effect size in a mixed-effects regression model (Selya et al., 2012, https://doi.org/10.3389/fpsyg.2012.00111 ). The procedure involves comparing 3 models in order to calculate the reduction in residual variance that can be attributed to the fixed effect o...
I want to forecast a differenced time series of an Index using the combined ARMA-GARCH model (because I want to forecast the mean and not the variance). My model is a ARMA(2,2)-GARCH(1,1) model. So the equations for the first forecast are: Y(t+1)=Y(t)+Alpha(1)*(Y(t)-Y(t-1))+Alpha(2)*(Y(t-1)-Y(t-2)) - Beta(1)*e(t) - Bet...
I've been thinking about how best to save tests I've done with certain preprocessing, hyperparameters etc. Obviously, I could just pickle/joblib every model I create, but I want an easy way to see exactly how I've handled certain aspects of the pipeline (i.e. did I do any dimensionality reduction, how did I handle miss...
I'm analyzing som product data that shows sells over the past day, week and month. In some cases I have a very high number but in most cases this number is quite low, and this is affecting quite a lot my descriptive statistics. Will this affect my regression analysis? Should I remove data that has some zero (even thou...
I am using sales time series data 2011 onwards, to make predictions for upto 2 years. Other than date and holiday related features, i created moving averages, y/y ratios and lags. I also extracted seasonality using statsmodels.api.seasonal in Python and extrapolated it as an additional feature. Here is my original ser...
I am using the framework of a regression to compare how an aggregate statistic masks certain features in its disaggregated parts. For example, I want to look at how the height of people working in the banking industry have changed in the past 20 years and show that not separating men from women in this equation leads t...
In the paper Batch Normalization: Accelerating Deep Network Training b y Reducing Internal Covariate Shift (here) Before explaining the process of batch normalization the paper tries to explain the issues related with (I am not getting what the exact issue addressed here is). excerpt from section 2, para 2: We could c...
I am trying to evaluate a multi-class classification model, say Random Forest, I built in R. So far, my approach has been looking at the ConfusionMatrix from the caret package and other results that are calculated by that function, but it gives me only a class wise result. I am also calculating micro and macro averages...
I have generated a mixed effects logistic regression in R using the lme4::glmer() function. I've tested for overdispersion (using blmeco::dispersion_glmer()) and the estimates do not appear to be overdispersed, but what are the other assumptions that are made when using this type of model that I should test - does anyo...
I'd like to classify a set of 3d images (MRI). There are 4 classes (i.e. grade of disease A, B, C, D) where the distinction between the 4 grades is not trivial, therefore the labels I have for the training data is not one class per image. It's a set of 4 probabilities, one per class, e.g. 0.7 0.1 0.05 0.15 0.35 0....
I am comparing several models using PROC GLIMMIX, and many of my models are coming out with the exact same AIC value, even when new variables are added. For example, the code below yields the exact same AIC values, even though the variables are changing. Is this a problem with the code or with my understanding of AIC...
I modelled a stock's volatility using the "rugarch" package in R and Eviews. The estimated model is GARCH(1,1). Data is as below: > dput(datax) c(0.00240428226573286, 0.00718664351112785, 0.00417663958775449, -0.0124234291416307, 0.00615240249156912, 0.0096846888172486, 0.0106526433200909, -0.00786660798829253, -0.0...
I have two continuous random variables, $X$ and $Y$, whose distributions are unknown. I can draw samples from them and in particular, I am interested in estimating $P(X<Y)$ based on those samples. Let's assume that each sample has $n$ elements: $x_1, x_2, \ldots, x_n$ are drawn from $X$ and $y_1, y_2, \ldots, y_n$ from...
When performing a t-test, the calculation of p-values related to this are given as: Is there a way to find $F(.)$ using a t-distribution table or a normal distribution table? (i.e. without a special calculator or $F$ distribution table)
I have this process: $X_t-0.5X_{t-1}=\epsilon_t-1.3\epsilon_{t-1}+0.4\epsilon_{t-2 }$ I'm wondering if this ARMA(1,2) is stationary and/or invertible. I know we can rewrite the process as follows: $$(1-0.5L)X_t=(1-1.3L+0.4L^2)\epsilon_t$$where $L$ is the backward operator. It's stationary cause the MA part is by...
I'm having trouble figuring out what test to run for the following problem. I'm not sure if I need to make up x values, or if there is a test to run using x (mean of Farm B) and x-6 (mean of Farm A). You are an apple wholesale buyer. Larger “Fireside” apples (larger by weight per apple) command higher retail prices pe...
I have a labeled set of data which contains 10 classes and ~400 training examples for each class. I would like to develop a classifier using this data. However, out of the 10 classes, I am only interested if something is class 1 or not class 1. Hence, I am unsure if I should simply create a binary classifier as oppo...
I am trying to do a hypothesis test with some categorical data; I initially thought a chi-squared test may be appropriate, but perhaps I am mistaken. The experiment is as follows. I have four samples A-D, of the same type. A is the reference. There are two outcomes, negative or positive. For the reference A, all o...
New to LME's and wondering if someone might be able to help me with this question. Does the application of a random block in an LME apply to both the dependent variable and the independent variable(s)? For instance if my model is: mod <- lme(concentration ~ growth rate, random = ~1|site, data = all.data) does this app...
I am a Stata user now teaching myself R. I have been trying to recapitulate analyses done in Stata using R but have got stuck. A multi-variable Cox regression with an offset in Stata and R give identical results The data can be downloaded from https://www.dropbox.com/s/r26sgzjy3rytw3r/test.csv?dl=0 Stata code stset fu,...
I see there is something called Iterated Conditional Models (ICM), which is a sort of Gibbs sampling where, instead of sampling, we use the value that maximizes the conditional. That is: for (i in 1:iter){ x_1[i] = argmax_{x_1} p(x_1 | x_2[i-1]) x_2[i] = argmax_{x_2} p(x_2 | x_1[i]) } My question is: can happen...
There's a great deal of variability in whether people use the SD or SE when plotting error bars. Why would someone choose one over the other?
Say I have a test - let's say for some chemical. I have 15 fields, which I divide in half. On the left side of the field, we dump some chemical into the field, on the right side, we do not. We record the bunny population before and three months after. Is it possible to construct a statistical test to say the chemical h...
I have 5 continuous variables with 211 rows of data and each row is assigned a region, there are 7 possible regions in total. I wish to build a machine learning model that classifies an unseen row of 5 numerical variables and classifies it as one of the 7 regions. I have tried building a decision tree classifier as wel...
I'm running a non-parametric ANCOVA in R. I'm using the non-parametric ANCOVA from the fANCOVA package. https://cran.r-project.org/web/packages/fANCOVA/fANCOVA.pdf I'm getting the results below. Now I need to run pair-wise comparisons, similar to Dunn test in Kruskal-Wallis test and to Tukey HSD in ANOVA -- even though...
I have loan-level data on peer-to-peer (p2p) loans. I am studying how the number of bank branches in the borrower's county affect his willingness to pay for p2p loans. My LHS variable is the borrower's stated maximum interest rate, i.e., his willingness to pay. My RHS variable is the number of bank branches in the borr...
I am wondering if there is a concise way to answer how decision boundaries are different for a logistic regression model vs one created using Linear Discriminant Analysis. I understand that it depends on the data to a certain degree, but are there solid cases where the two differ no matter what data? Thanks.
I understand in multinomial logistic regression, the log odds probabilities are calculated with respect to a reference group. I am wondering why this often results in linear decision boundaries that are parallel to each other. Is there a connection between the reference group and parallelness? Thanks!
I'm a new to the machine learning field and please forgive me if this question is trival. In a famous paper: M. Hoffman, D. Blei, and P. Cook, Bayesian nonparametric matrix factorization for recorded music. ICML 2010 (PDF: link , page 2, left column ), the authors assume that the elements in the latent submatrices $ ...
Recently I tried to give an argument for why, if $Z \sim N(0,1)$ denotes the standard normal, $\mathbb{E}|\frac{1}{Z}| = \infty$. However, in hindsight this argument does not seem to rely on many special properties of $Z$. As a test of my understanding, I have tried to make the following generalization: Claim (Suffici...
Does the Ordinary Least Squares give the same estimation results as the LASSO with shrinkage parameter being zero? If yes, is there any published papers or books to support this in theory?
I read about this, $$ p(R|r=0,NI_{1}) = {N\choose n+1}{N-R\choose n} \; (6.44)$$ but the probability can not be greater than 1, this expression is an apparent error. $I_{1}$ means the state of knowledge about the urn is that 0 < R < N, while the general sum $S = \sum_{R=0}^N{{R\choose0}{N-R\choose n-r}}= {N+1\choose n+...
I am building a Bayesian model and have a trouble of (sudden) overfitting. The example figure that shows the issue is here: Until around 1250 iteration, the log-likelihood goes up little by little, but it soon starts increasing rapidly, which might be a sign of overfitting. I'm building a language model, so the strange...
Let's say I am a software engineer, and I implemented a random forest classifier. Now, I have trained the classifier and I want to make prediction on an observation. The majority votes are supposed to be based on OOB samples. Instead, I used all samples. In math, what's the negative effects? Does this really make a d...
I'm doing partial least squares regression (PLSR), using the df below, to investigate how to predictors (catchment characteristics) influence the dependent (nitrogen in the river). In this data.frame, all predictors are areal percentage (percent of the variable in the study area) except hydrology and morphology predict...
Recently some colleagues and I used the Bayesian mixed modeling library MCMCglmm to incorporate non-independence between species in a comparative study. Now I’m wondering whether the same program could be used to incorporate non-independence between sites in a study where there’s some spatial autocorrelation, as indic...
I am trying to implement few equations for the distribution of Chi square from the paper Castaño-Martínez and López-Blázquez (2005). In equation (5.1), I don't understand what $(p)_j$ means. Could you please explain this notation to me? Thanks
What are the differences between varimax and promax rotations in PCA?
What I want to do is comparing two non-nested Cox regression models using R. Just for example: library(survival) data(cancer) fit1 <- coxph(Surv(time,status)~ age, data=cancer) fit2 <- coxph(Surv(time,status)~ sex, data=cancer) I have read almost all relative questions about non-nested model comparison in this website...
I have the time series data. The mean and maximum value, standard deviation at every minute (60s) is given. However, I want to intrapolate it as I want the data of each second. Is there any way to do this ?
I am trying to apply boxcox() function to my dataset but it shows an error saying data must be positive. How can I make my data positive? I have 1009 observations and 58 features. In R I just use this code and it works: segPP <- preProcess(segTrainX, c("BoxCox", "center", "scale")) segTrainTrans <- predict(segPP, segTr...
The other day, I found a strong relationship between number of observations (N_obs) and amount of outliers (N_outliers) (N = 20.000, r = .77, p <.001). My colleague pointed out that this might be just 'logical', because the chance of extreme cases increases with increasing cases. When I performed the analysis on the ...
I have a frequency table of 3x3 representing how many users of type A, B, C have done actions 1, 2, 3 (for example, Cell [1,1]=80 Users of Type A have done action 1) How can I compute the probability that a user belongs to each type given the actions they've done? (for example if a new user has done actions 1 & 3 what...
I have measured the same variables (quantities of microorganism by 16S sequencing) on some samples in two ways, A (in the stools) and B (from an intestinal biopsy). I am trying to do two things: Compare if A is similar to B: That quantifying in the stools is as reliable as looking to the intestinal Compare if some sam...
How to interpret this acf curve?
I've read in a few places that creating the decision boundaries for a logistic regression with polynomial terms is rather complex and exceeds the complexity of Quadratic Discriminant Analysis. I am wondering where this complexity comes from compared to the regular linear logistic regression model? Where is the complexi...
We are developing a student employability model which predicts the employment of given student after he completes his MS degree. We are primarily using logistic regression. I have a query regarding our modeling approach and need some advice. Query - I am trying to derive a feature(x1) from Target variable(y) and usi...
I'm new to data science and Neural Networks in general. Looking around many people say it is better to normalize the data between doing anything with the NN. I understand how normalizing the input data can be useful. However I really don't see how normalizing the output data can help. I've also tried both cases with a ...
I have a time series, non-stationary with diff(1). Here the tests: # Augmented Dickey-Fuller Test Unit Root / Cointegration Test # The value of the test statistic is: -5.0157 # KPSS Unit Root / Cointegration Test # The value of the test statistic is: 0.3134 # Phillips-Perron Unit Root / Cointegration Test # The ...
I am trying to get my facts straight on the following 3 scenarios: 1) I draw a random sample $y$ from $Bernoulli(p)$. Then let $X_1, X_2, ..., X_n$ be conditionally independent $N(\mu_1,\sigma_1)$ if $y = 0$ or $N(\mu_2,\sigma_2)$ if $y = 1$. Are they conditionally identically distributed, unconditionally identically d...
I have a pre-trained sentiment classifier on Amazon reviews and I want to use it for transfer learning to classify sentiments on a specific aspect of some products, for example how a person feels about the battery life of a phone. How much data do I have to typically provide for this type of transfer learning? I don't ...
I have an experiment where 4 raters gave their responses to 4 stimuli, and I need to calculate the Fleiss Kappa to check the agreements of the raters. However, I get strange results from the R function implementing the Fleiss analysis. Participant1 <- c(16, 15, 16, 16) Participant2 <- c(16, 16, 16, 16) Participant3 <- ...
The above is a very simple example of having a probability classifier output for a binary-class case either 0 or 1 based on some probabilities. In addition it is straightforward how you can change the threshold. You set the threshold either higher or lower of 50% to change the precision/recall balance and thus optimiz...
In k-fold crossvalidation, data is divided in k folds, then k-1 folds are taken for training and 1 fold is taken for validation. This process is repeated k times, taking a different fold for validation each time, so we end with k different models and k different results (although the results should be very similar if e...