instruction
stringlengths
9
38.7k
I'm trying to wrap my head around some (crucial) details on how recurrent neural networks work and currently I'm having trouble understanding how the inputs align with the outputs when optimizing an RNN. Suppose a dataset of observations $D = \{x^{(i)}, y^{(i)}\},$ with $i = 1,..., N$ Vectors $x$ and $y$ are aligned,...
I am struggling with the analysis of a data set from an experiment done as follows: I have 5 blocks (that work as replicates) and each one of them was divided into two part (so split block), to each part a fertilization treatment was assigned (so fertilization treatment has two levels F and U). Each fertilization treat...
Im am following this excellent tutorial to get a better grasp on the concept of tv-idf: http://blog.christianperone.com/2011/10/machine-learning-text-feature-extraction-tf-idf-part-ii/ Everything is clear till the final part where this data has to be normalized; Mtf-idf = [(0,0), (0.41,0.81), (0.41, 0.41), (0,0)] This...
Can you explain the difference between the Jaccard similarity coefficient and the pointwise mutual information (PMI) measure? It would be great if you could add a few examples.
I have a dataset consisting of many product sales over time on a daily basis. I do know when promotions and discounts happen with four months in advance. When there are no promotions sales are 0 or very very low. However, when there is a promotion or (several promotions for a single product) sales really increase, so ...
I have just read about the usual mistake in Principal Components Analysis of confusing between principal directions and component loadings following the explanation and links here: Relationship between SVD and PCA. How to use SVD to perform PCA? After clarification of how to extract the loadings when performing PCA dim...
I implemented first order deming regression on an array of x and y values. I tried to calculate the confidence interval, which in my understanding should be two values (upper and lower) for slope and two values for intercept. When I plot these two values they should be two straight lines too However, I have seen in fe...
I have many paths which come from the same graph. I am trying to cluster these paths. First, I thought of using simply the Levenshtein distance. The problem is that two very short paths which do not have any node in common have a smaller distance than a very short and very long path which contains the shorter path (e.g...
I have a binary time series $\{X(n), n= 0,1,2,\cdots\}$, $X(n)\in \{0,1\}$ that can be written as: $$X(n)=S(n)+\epsilon(n)$$ Where $S(n)$ is a random stationary binary signal and $\epsilon(n)$ is a zero-mean binary white noise process (uncorrelated with $S(n)$). My question is what is the definition of a binary (or dis...
I am an archaeologist and I am devising rules for attributing objects to a certain region based a combination of region-specific traits. Particularly I would like to estimate probability that objects displaying a combination of two traits originate from the certain region. I consider (arbitrarily, I admit) the traits I...
If I run one experiment, and obtain a p-value of $p=.03$ and I have a priori decided that my $\alpha=.05$. I have a significant a result, I conclude that my data reject $H0$. If I run two identical experiments with the same study $\alpha$, both with a p-value of $p=.03$. Now as I have done two different tests, I correc...
This is a homework question but it is worded in a way that says "Find the answer" and not "Is there an answer". Heuristic knowledge on the course and how it's written indicates an answer as well so my friends and I are extremely curious if we're missing some angle. The question: We have a sample (1.0, 1.2, 1.4, 1.6, 1...
I'm looking for clarification on how many fixed effects parameters can be reasonably included in a mixed logistic regression without saturating or over-fitting the model. As a background, my dataset consists of roughly 40,000 telemetry locations from 20 individual caribou (~2,000 locations per individual), and I'm usin...
Say I have a lifetime variable with survival probability $S(t|\theta)$, and I estimate this probability by $$\hat{S}(t|\theta)=S(t|\hat{\theta})$$ How would we go about deriving the standard error of this estimate? Is there a general procedure to follow, or does it depend on the form of the hazard function of $T$?
Let`s say I have training data which contains 10 classes and have build a classifier using this data. When applying this classifier in real life it may encounter examples not belong to the classes in the training data. I want to build a novelty detector to reject these examples. I consider using one-class SVM from skl...
I'm really confused about the difference in meaning regarding the context of linear regression of the following terms: F statistic R squared Residual standard error I found this webstie which gave me great insight in the different terms involved in linear regression, however the terms mentioned above look a like quit...
In a textbook I am reading on image sensors the author uses the term "excursion" in reference to noise in an image sensor. Quote from the book: "Figure 7.26(a) presents a noise histogram for a sense capacitance that is allowed to vary by noise modulation. Note that the Gaussian distribution is skewed because of a chang...
I have built a log-log regression model, which is going to be used for prediction purposes. However, after applying the model to my data and obtaining predictions, the model drastically under-predicts. I understand that this is due to the multiplicative errors in the log-log model, since: $\log(y)=log(\alpha) + \beta...
I have a data set of 60 sensors. I wish to decrease the number of sensors used during an experiment, and use the remaining sensor data to predict the removed sensors. If I were to run principal component analysis on the full data set, would the features (sensors) that correlate with principal component 1 (PC1) recapitu...
Suppose I have two estimators $\widehat{\beta}_1$ and $\widehat{\beta}_2$ that are consistent estimators of the same parameter $\beta_0$ and such that $$\sqrt{n}(\widehat{\beta}_1 -\beta_0) \stackrel{d}\rightarrow \mathcal{N}(0, V_1), \quad \sqrt{n}(\widehat{\beta}_2 -\beta_0) \stackrel{d}\rightarrow \mathcal{N}(0, V_...
The question stems from attempting to predict if a loan in a peer-to-peer lending portal will be repaid or not. I have a historical data set of about 32000 loans, but not all of these loans are matured yet and I have 2 options here: Option 1 is that I could filter out the historical data about only the loans whose orig...
In order to test my program I need to calculate 95% confidence intervals (preferably even CDF) for a distribution of a renewal process with hypoexponentially distributed holding times: $X = X_{\lambda_1} + X_{\lambda_2}$, where $X_{\lambda_i}$ is an exponential distribution with ratio $\lambda_i$. If the holding times...
Within the framework of an experiment I followed to growth rate of bird nestlings. I measured them every day for weight and tarsus. I have a number of continuous and categorical explanatory variables, as well as brood ID that should be used as a random factor. I am asking for advice, what would be the best way to analy...
Is there any easy way to think about the value of the spectral density at the zero frequency? How do people interpret it usually? I have been studying some time series on my own and encountered a CLT for dependent data (covariance stationary and ergodic processes). The sufficient conditions of that CLT fail if that va...
I've been looking through the literature of multivariate quantiles (e.g. Chaudhuri 1996, Hallin et al. 2010). The definitions all seem reasonable and I can see how they extend the notion of a univariate quantile, but from the perspective of someone trying to use these quantiles to understand data, these seem to be much...
When comparing the performance of two binary classifiers using McNemar test, should the two confusion matrices of the models be based on the training set, the validation set, or even a second validation set that was not used for parameter tuning? What is the justification for the correct approach?
So I have two random variables, X and Y. And their scale location transformations are : U = a*X + b W = c*Y + d I'm given that a,b,c and d are constants. And their mean folow: E(U) = a*E(X)+b E(W) + c*E(Y)+d Now I'm asked to prove that their covariance folows: V(U,W) = acV(X,Y) and that V(U+W) = a^2*V(X) + c^2*...
Consider a classification problem where we have 2D data and there are 3 classes. We train a model on the data, and obtain a parameter w. Now, lets consider a target scenario, where we know that the data distributions have shifted. I know that the shifting is such that the class means (i.e. mean of all data in each clas...
I would like estimate Best Linear Unbiased Estimates. I have data like this. set.seed(1234) data1 <- data.frame (entry=rep(1:20, 3), repl = rep(1:3, each=20), yld = rnorm(60)+50) require(nlme) data1$entry <- as.factor (data1$entry) data1$repl <- as.factor (data1$repl) # with intercept fm1 <- lme(yld ~ entry, rando...
After looking at Hyndman and Koehler, 2006 and applying the metric to my own data, I have been convinced that MASE is a better metric for evaluating forecast error than the method I had been previously using (MAPE), at least for short horizon forecasts. However, I am struggling with how to interpret the value of the M...
[Are the residuals from a nonlinear regression model supposed to be randomly distributed too (as in linear regression)] if the data is heteroscedastic and the objective function is weighted by the inverse of the variance for each data point? This question was asked and answered in part here: Residual plot for nonlinear...
I understand what cosine similarity is and how to calculate it, specifically in the context of text mining (i.e. comparing tf-idf document vectors to find similar documents). What I'm looking for is some better intuition for interpreting the results/similarity scores I come up with. My question: If I have a cosine s...
I'm learning about devising single sampling plans for quality control, and I'd like to learn how to solve for the key parameters. Specifically, I have two related questions. Suppose my boss specifies the quantities \alpha (the producer's risk), \beta (the consumer's risk), p_1 (the acceptable quality level), and p_2 ...
Question: Why does the random forest do really well for the first class, then switch after 52 trees and do well for the second class, then switch again and do really well for the third class? Background: I have a three-class classification problem with balanced classes (96000 samples from each class). I take 80% of the...
I currently have a 2D probability density function and need to draw a 2D ellipse that circumscribes 50% of the probability "mass" (if that is the right terminology). I see lots of articles on how to draw these ellipses for traditional x,y scatter-plots, but none for 2D probability density functions. My attempt involves...
I am designing a regression following the advice tho include control variables if they could have a causal effect on the dependent variable and if the variable is correlated with the independent variable of interest. How correlated does an independent variable have to be to the variable of interest to be included as ...
I have a dataset which contains time-series data of water flow over time. I have a flow meter connected to a kitchen faucet, and I am trying to cluster or classify specific water usage events. The data is collected every second, and in each row I am given a value for the amount of gallons which are flowing through my f...
So I read this about representative samples and I think what I want is to accurately portray the views held by "Europeans" on a certain topic. How many people need to be included in my representative sample? I'm thinking of research like this, portrayed in the media like this.
I'm performing analysis for a colleague who has data from two biological conditions. Since clustering is a standard in our field, she'd like to perform clustering on each condition separately, with the goal of identifying datapoints that change clusters between conditions. For example: Here, we'd want to flag datapoin...
I'm learning about allometric relationships and how to derive the parameters from regression equations. I've seen that you can fit a linear regression model by taking the log of both the X and Y variables of your data that have an allometric relationship. Then you can use the coefficients of the slope and intercept to...
The excerpt below is from "Permutation, Parametric and Bootstrap Tests of Hypotheses", Third Ed. by Phillip Good (pages 58-61), section 3.7.2.. I am trying to implement this permutation test in R (see further below) to compare two variances. I am thinking now about how to calculate the p-value, and whether the test all...
The accepted answer in this thread does a great job of showing that there is a one-to-one correspondence between $c$ and $\lambda$ in the two formulations of the ridge regression: $$ \underset{\beta}{min}(y-X\beta)^T(y-X\beta) + \lambda\beta^T\beta $$ and $$ \underset{\beta}{min}(y-X\beta)^T(y-X\beta) \text{ s.t. }\be...
I am having trouble understanding why Kmeans is returning so many unproportional clusters. For example, here are some of my test results in MATLAB after running my Kmeans algorithm on it: raw_crime_data = table2array(T(:,start_crime_stats_index:end_crime_stats_index)) k=15 % then I tried k=5 idxk = kmeans(raw_crime_da...
Let's say I'm given a stream of characters, one at a time. Some example strings of characters that could occur might be "01234" or "hello how are". They might even be encodings of waveforms as integers from 0-255 encoded into ascii. My goal is to train a model to predict the next character in the sequence (or more than...
I have a question regarding a data set. I have observations about the number of files generated by a user over two months. My data set is 1,1,1,1,1,1,1,6,1,3,2,4,5,5,9,5,8,15,14,4,3,1,1,2,9,4,13, 3,13,3,5,6,11,1,18,18,2,17,11,4,3,3,14 -- a total of 43 days with observations (two months = 60 days, but the user didn't...
Is there in general a 'most appropriate' method to perform model selection in a time series context for forecasting purposes? One can find in the literature a jungle of different information criteria (IC). To name a few: AIC, AICc, AICu, MAIC, TIC, FPE, FPEu, Mallow's Cp, SIC, HQ, HQc, EIC... Is anyone aware of a compr...
I have longitudinal data (4 year follow-up) of brain volume. I now want to investigate whether the change over time of brain volume differs between left and right sides (the idea is that in the disease that I investigate that the right side might show steeper decline in volume over time). I have reshaped my data in lon...
When running a weighted regression, do I multiply my constant term by the weight vector?
I estimate model parameters for 2 glmm models using MCMC in R2JAGS. I then use DIC to assess the relative fit of the models: Model 1 y~ site + treatment (DIC = 922.1) Model 2 y~ site (DIC = 921.8) Given the low Δ DIC between models 1 and 2, I understand there is no improvement to the model if the term 'treatment' is a...
A statement from the book Introduction to Statistical learning with applications in R, didn't quite make sense to me. It says, "In cases when number of predictors are greater than the instances we cannot even fit the multiple linear regression model using least squares". Why is that?
I want to perform linear regression between two sets of data points. The dependent variable is an exact point measurement. However, the independent variable was obtained from the literature and has associated error (mean and associated 95% CI), e.g. X (mean (95%)) Y 82 (75-90) 360 83 (77-90) ...
In a course we have been given the following proposition: For a random variable $X\geq0$ with essup$(X)=\infty$ i) $F$ is heavy tailed if $\lim_{u\rightarrow\infty}e_F(u)=\infty $ ii) $F$ is light-tailed if $\limsup_{u\rightarrow\infty}e_F(u)<\infty $ $e_F$ refers to the mean excess function. It is defined $e_F(u):=\ma...
I have run a set of dyadic analyses (distinguishable dyads: mom, infant) using both an SEM panel approach, as well as via an MLM/HLM approach using Mplus. In short, while there are subtle differences between the two approaches (which I will not go into detail here) to analyzing the data, results from both approaches sh...
I have been randomly initializing weights for my neuron layers. I did some calculations on the paper and realized at least for the initial few iterations the probabilities might not add up while summing the results from the output layer. Is it acceptable or there should be weight distribution from the initial iteration...
This is a question from a homework assignment I am working on. I am using numbers in this example, although the question can and should be proven in the general case for n, m and k. New with mathjax so doing my best here. There are $n = 1000$ cards, $m = 50$ cards are blue and $n - m = 950$ cards are red. We randomly ...
I'm wondering what the best way to generate prediction intervals from a linear model when there is known heteroscedastic AND the heteroscedasticity is predictable. Consider the following toy example: #generate sample data sample_df <- data.frame( response = c( rnorm(50,100,20), rn...
I'm busy evaluating a classifier and noticed something odd. The error rate seems to be always low, however the False Alarm Rate are in some instances > 90%. Where the Error rate are 30% the FAR reaches 44%. How does this make sense? Sampled confusion matrix: TP 2 400 FP 244 TN 9 FN 10
Consider an urn with n balls of k colors ( labelled 1 through k ) where n >= k. You get to draw j times (j <= k) with the following action between draws. Each time you draw a ball belonging to a color, you remove all balls in the urn having that color. How can we characterize the multivariate distribution (an ordered s...
Let $\hat\theta$ be a maximum likelihood estimate of a true parameter $\theta^*$ of some model. As the number of data points $n$ increases, the error $\lVert\hat\theta-\theta^*\rVert$ typically decreases as $O(1/\sqrt n)$. Using the triangle inequality and properties of the expectation, it's possible to show that thi...
Can we apply the concept of ridge regression in random forest for predicting the values in order to get more accurate results? Random forest using regression trees for the prediction. When there is a problem of multicollinearity we will use ridge regression. Multicollinearity definitely can affect variable importances ...
I am facing a sort of situation I never encountered so far. Basically I would like to compare a set of data from a panel versus a set of data from the same panel but reduced (see picture) My point is to see whether the mean from the reduced panel is significantly different to the one from original panel. I am pretty s...
I've ran the Chi-Squared test for the following crosstable and got some weird results. Is there anyone who can help me work out the problem? Category AGE_Category Very Low Low Medium High Very High (0,1] 9763 24097 7113 11431 2389 (1,2] 14053 17048 12438 10869 1930 ...
Nikolaenko et al. claims that in ridge regression $A\beta=b$, where $A=X^TX+\lambda I \in R^{d\times d}$ and $b=X^Ty \in R^d$ (page 3), it can be decomposed into: $$A=\sum\limits_{i=1}^{n}A_i+\lambda I \text{ and } b=\sum\limits_{i=1}^{n}b_i$$ where $A_i=x_ix_i^T$ and $b_i=y_ix_i$ (page 4) However, I think it's not tr...
I'm a stat newbie and not good at English, but I will try my best to explain my problems. First, I have a dependent variable (y) and 5 independent variables (x1, x2, x3, x4, x5) x1 and x2 are categorical. x3, x4, x5 are continuous (integer). Focus on x5, its histogram looks like this: Then, I categorize x5 using 5 ...
First question here, I am new to machine learning and wanted to understand the following: I used decision trees, boosting to classify fraud users and I am getting average precision around 60% on my test set. What does it signifies and how well am I able to do the classification.
In his answer to my question on Hamann similarity, user @ttnphns wrote If you want a "correlation" (or quasi-correlation) measure defying marginal distributions shape - choose Hamann over Phi. He illustrated there the effect of distributional asymmetry on both: Crosstabulations: Y X 7 1 1 7 ...
I had seen two types of bias function: $$BIAS = \frac{y-y'}{n}$$ $$BIAS = \frac{y'-\bar{y}}{n}$$ $y$ = actual $y'$ = predicted $n$ = no. of data Which one is the correct way to calculate BIAS? Can anyone help explain to me?
I am conducting a meta-analysis. One of the studies have both OR and its upper confidence limit equal infinity (control group have zero outcome events). How can I combine such study with other studies in a meta-analysis? Thanks in advance.
So I'm asked to argue whether the CDF of a Laplace distribution is well-defined or not. Now I don't completely understand what well-defined actually means. CDF given by: Acording to wikipedia: "A function is well-defined if it gives the same result when the representation of the input is changed without changing the v...
I'm trying to better understand the intuition and practical application of infinite mixture models (Dirichlet Process) and finite mixture models. For example, say I have a data set on which I run a Dirichlet Process Mixture Model (using Gibbs/MCMC) and the result is a posterior distribution over number of clusters, and...
Concerning the number of samples in the dataset: Is there a rule of thumb considering when we should do cross-validation and when we should split our data into train, development and test sets? Let's say I have a small dataset with almost 1000 samples. Does it make sense to split it into train, development and test set...
I am trying to calculate mutual information on two observed continuous variables X and Y, which I believe to be dependent. The formula relies on p(x,y): the joint probability density function of X and Y Can I calculate p(x,y) from the observed values alone? (without knowing the real population distributions, or real d...
I am working on a problem that leads to the following equation system $$ c_x = Ax - b, $$ where $A$ is an $n$-by-$p$ matrix of measurements ($p<n$), $b$ is an $n$-by-$1$ vector of measurements and $x$ is a $p$-by-$1$ parameter vector (unknown). Further, I have $$ a_j \sim \mathcal{N}(a_j^*, \Sigma_j), $$ where ...
(*Question edited for clarification) Does the lower bound of the unstandarized beta distribution always have to be bigger than 0?
Good day, I have some difficulty writing up proper code where regression is applied to some data. I am following the book Introduction to Statistical Learning & Prediction by Trevor Hastie & Robert Tibshirani, but I can not quite follow their way of backfitting as how they call it. The issue is that I want to fit a gam...
I'm going to make a churn prediction model based on customer data from users of an app. I will have a feature set containing for example features over time related to user behavior in the app, and also constant features. What I realize is that different users might churn for different reasons. New users might churn bec...
After reading some references about this topic, I compiled the following scheme to estimate and sample from multivariate distributions with Gaussian copula. I am not fully sure, if this is correct or if I might have missed something important. Any advice or comment is highly welcome. I assume unimodal distributions and...
This question was edited to clairify my question, for the old question see the edit log I found this about regression and correlation: Regression is different from correlation because it try to put variables into equation and thus explain causal relationship between them, for example the most simple linear equati...
I'm trying to decide whether I should use a difference GMM or a system GMM. I have a panel of 50 states over 19 years. I know that system GMM has better finite sample properties when the series is persistent and certain stationarity conditions are satisfied. I run an AR(1) model (including year dummies) to test for th...
I've performed $m$ fits of datasets $Y=\theta X+b$ coming from different experiments. As a result, I have $m$ estimates $\theta_1,\theta_2,\dots \theta_m$ where $\theta_{k}=(\theta_{k,1},\dots\theta_{k,n})$ is a vector of slopes. For each slope $\theta_{k,i}$, I have a confidence interval $[\underline{\theta}_{k,i},\ba...
I am looking for a discrete choice model (e.g. a logit) to describe the reaction of a pedestrian when a car is arriving. Depending on the severity of the conflict and other geometrical parameters, he has to decide what to do. There are input parameters like: distance, speed of the car, acceleration of the car, time pr...
Hierarchal clustering methods as well as some others such as DBSCAN use a notion of (dis-)similarity between data points to cluster the data. Such dissimilarity can be formalized by the mathematical notion of a metric. Now imagine we have a few different metrics on our data set. These metrics may have different scale...
I have been working through Deep Learning and found that there seems to be a disconnect between equation 6.3 and the steps taken to solve that equation. Equation 6.3 is $f(x;W,c,w,b) = w^Tmax\{0,W^Tx+c\}+b$ yet in solving this equation the design matrix $X$ is used instead of $x$, 6.7, and the transpose of $W$ is never...
I have read extensively about the assumptions for ANOVA, and I am experiencing confusion with the concept of unit-treatment additivity. I would be deeply appreciative if anyone could please explain the theory in laymans terms. Many thanks in advance if this is possible. Here is a short excerpt from my text book The...
I'm currently analyzing the same data using lasso, elasticnet and random forest classifiers. I'm just wondering if there is a best way to compare these three models(eg. AUROC, accuracy, mcnemar's test), or I should compare multiple features and trying to figure out if they all favour the same model?
I struggle to understand the following example... A new breast cancer screening method is tested to see if it performs better than existing methods in detecting breast cancer. To measure the sensitivity of the test, a total of 10,000 patients known to have various stages of breast cancer are testing using the new metho...
I received a script from a friend and at the end, he's keeping the values that agree to a certain threshold for the Posterior inclusion probability (PIP). (This is coming from a GEMMA analysis calculating the effect of SNPs to explain the variance in phenotypes) pip01 <- para.mean[which(para.mean$gamma >= 0.01),]...
What is the linear algebraic and geometric interpretation of the sentence found on this post: When $y = X\beta + e$, the least squares problem which imposes a spherical restriction $\delta$ on the value of $\beta$, [which] can be written as \begin{equation} \begin{array} &\operatorname{min}\ \| y - X\beta \|^2_2 \\ \o...
Setting aside questions about the stationarity and/or seasonality of the data, what are the benefits/pitfalls of using differencing versus the percentage change? When is it more ideal to use one transformation over the other?
I know one can use tf-idf to distinguish important words based on the number of times a word appears in a document relative to the number of times it appears in the entire collection of documents. However, how does one identify which words are most important in distinguishing the positive class from the negative class?...
Given an image, expressed in the vector $\vec{v} = (v_1, \dots, v_n)\in \{0,1\}^n$ The vector $\vec{v}$ can represent images of the numbers 0 to 9. How do I know if this is linear seperable? Given the high dimension when we get big pictures, it becomes hard to reason about this, altough I think the answer is pretty str...
I have a script which randomly generates test cases for a certain data type and throws these at an algorithm which in turn returns a positive or negative result. From this I simple calculate positive %. So I get something like Type1 ~ 80%; Type2 ~ 50% The problem is I am not sure what is the standard deviation here or...
This is a follow-up question to the one I posted earlier: Unequal sample sizes in generalized linear modeling I want to compare a number of outcomes (depression, anxiety, aggression, etc). The predictor variable is categorical, has 2 groups: Province (over 3000 cases) and City withing the Province (around 300 cases). I...
I ran a GLS random effects regression on some NBA data in Stata, and I was told that it was wrong because I didn't use mixed effects model. This may every well be the case, but I was quite confused by the explanation. Here is what I did using Stata: Dependent variable is team win's and independent variables is differe...
Suppose I have data from an experiment performed at 2 different locations. Site 1 has 10 participants and site 2 has 100. I want to assess if certain response/dependent variables differ by site before the experiment intervention by doing a simple test of the means. However, because of the not insignificant differenc...
I am sorry if my title is not very clear, here I will try to be specific about what I meant. My response variable in the regression model 'y' is a z-score calculated following some gold standard that is adjusted for age (so 'y' is not just a z-score but a z-score that accounts the age of the subjects as well). My quest...
I am trying to come up with an understanding of the magnitude of the effect of various variables on a (measurable) continuous target variable from data based on a survey. There are 2000 variables consisting of survey questions as well as some index and socioeconomic variables. Both categorical and continuous variable...
My question is why do we need to do feature selection even when have build in mechanics to prevent overfitting? More specifically, for svm, it regulate the training use L2 norm, so that the model is "small" in a sense. Why do we need another way to keep the model simple by using feature selection?
Suppose we have n data observations $\left\{y_i, \underline{x_i}\right\}_{i=1}^n$. We can concatenate the $x_i$ into $X$. We have $y_i=h^TX + \epsilon_i$. I understand that, since we have observed it, the matrix $X$ becomes "non-random". $\epsilon_i$ is random noise. However, why do we still say that $y_i$ is random, c...
Let $X_1,...,X_n$ and $Y_1,...,Y_n$ be independent random samples from the distributions $N(\theta_1,\theta_3)$, $N(\theta_2,\theta_4)$ , respectively. What I need to show is, in testing $H_0: \theta_3=\theta_4$ against $H_1: \theta_3\neq\theta_4$, that likelihood ratio test statistic $\Lambda=\frac{\mathcal{L}(\hat \o...