instruction
stringlengths
9
38.7k
I have a distribution of data that follows approximately a skewed gaussian distribution (count rate vs time). I fit the distribution with the following function in python: def skew(x, sigmag, mu, alpha, c, a): normpdf = (1/(sigmag*np.sqrt(2*math.pi)))*np.exp(-(np.power((x-mu),2)/(2*np.power(sigmag,2)))) normcdf...
In case the order of features can make a difference in the results of a classification approach, which classifier algorithms perform better? I know Naive Bayes/KNN use bag of words and ignore the order. Does SVM do the same (I understand it highly depends on its kernel)? And does feature selection approach do the same ...
I need to test the null hypothesis that my steady returns have a zero skewness with a confidence level of 95%. Do you have any ideas which formula I can take for this kind of test ? I tried the Agostino test for skewness, but think it's not the best way, because I can't set a confidence level. library(moments) ?agostin...
I am working with a previously collected data-set where subjects were recruited based on them being adults or adolescents. The age range is 11-16 in the adolescents and 20-27 in the adults. Since I didn't collect this data, I don't have a choice in how the ages are distributed. However, I don't think it makes much sen...
Background: I'm working on a ML project to predict a continuous target and am comparing different models using nested cross-validation, where I don't have access to the test set for which my model will be judged. My data size is on the order of $100,000 \text{ samples}\ \times 10 \text { features}$. I thought nested cr...
Could someone please clarify the following example (it is taken from Introduction to Probability by Bertsekas): When you enter the bank, you find that all three tellers are busy serving other customers, and there are no other customers in queue. Assume that the service times for you and for each of the customers being ...
How to rank coins without using p value?
I am wondering if the following equality of marginalized conditional probabilities holds $\sum_{x} p(x \vert y) = \sum_{x} p(x \vert y, z) = \sum_{x} p(x \vert y, z, w) = \sum_{x} p(x \vert y, z, w, v) = \cdots = 1$ If it does, I could swap out each of the terms for one-another and condition on arbitrary latent variabl...
I'm looking to do an optical character recognition (OCR) project. After doing some research I've come across an architecture that seems interesting: CNN+RNN+CTC. I'm familiar with convoluted neural networks (CNN), and recurrent neural networks (RNN), but what is Connectionist Temporal Classification (CTC)? I'd like an ...
Assume we have a $2$-dimensional sample space $(\Omega, B, P_\Omega)$, with $\Omega =\mathbb R^2$ with borel measure and probability measure $P$, where the axes are simply equal to random variables $X$ and $Y$. That is, if $\omega=(x,y)$ then $X(\omega)=x$ and $Y(\omega)=y$. Now assume we have the probability density ...
I've got a couple different models (poisson regression vs. OLS linear model on log-transformed DV) and trying to compare the two. They both provide reasonably good fit to the data. I have heard people state that you cannot use AIC/BIC to compare these two but cannot seem to find a reference to this effect. They are di...
What is a good strategy for performing permutation test for coefficients of Generalized Linear Models (GLM) such as logistic regression? Specially when the response is binomial. Following the questions here and here, and @Geln_b's informative answer (the former link), I was wondering if one could apply the same concept...
I am doing bias correction of rainfall data simulated by Global Climate Model. Since, rainfall data generally follows gamma distribution, I am estimating parameter for gamma distribution for the time series of daily rainfall of observed period (Jan 1971, Jan 1972, Jan 1973, ...., Jan 2005) and then taking the gamma inv...
I trained a Deep Convolutional Generative Adversarial Network. The training accuracy of the generator did not turn out very well and the training loss was 10.1567 after 10 hours of training. What should I do to improve the accuracy ? Should I increase the batch size for each epoch ? Add more layers ? Add more nodes to ...
I'm doing my Bachelor Thesis which is about the correlation between Google Trends and the price of Bitcoin with a VAR model. In a similar work, they find out that there is no cointegration between these 2 variables, regarding the time period from May 2011 to June 2013. I'm considering the time period from September 201...
In my current context I have a data Set with 5 users and 19 questions The questions are binary True (Positive) or False (Negative) and are graded from 1-100 so a +90 means 90% True (but it does not mean 10% False I would like to find a similarity score between each user to understand how similar the users are in their ...
Say you are dealing with a movie database that has movies and their genres. Genre is a categorical variable but each movie can belong to more than one genre. For example, Movie A may be Comedy and Romance, Movie B is Romance and Action and Movie C is Comedy. How would you encode these categories for analysis? Normally...
I have traditionally been running my analyses using aov and would like to switch to lmer. My questions is whether or not this is the correct procedure (see below). Assume a data set which consist of a 3(A1 vs. A2 vs. A3) x 2(B vs. C) x 2(Y vs. Z) mixed design, with the first factor being between-subjects and the two ot...
I am supposed to write a literature review on a particular paper for my University and I am lost after reading the main paper I am supposed to read. The link to the paper is here. The paper is from CERN and deals with using machine learning techniques to speed up the ATLAS calorimeter simulation. In this, to simulate ...
I'm working on anomaly detection in CTU-13 dataset. Records are labeled and there are a few categorical features with many categories (for example one of the features "State" has over 250 possible, categorical values - and there are more categorical features!). I could (and probably will, at some point) perform one-hot...
Is a sample 1) just a subset of members of a population, or does a sample 2) include measurements of some property of members of the subset? The sources I am looking at give either definition 1) or 2).
This question was partially answered on Are decision trees sensitive to translations in feature space?, but no references were provided for "Gini impurity and entropy measures are translation invariant". I couldn't find material relating to this topic, so does anyone know either: a) Why Gini is translation invariant, ...
I'm attempting to implement a Metropolis-Hastings Algorithm to evaluate integrals of the following form: $$I =\frac{1}{\sqrt\pi}\int_{-\infty}^{\infty} {f(x)\exp(-x^2)} \text{d}x$$ Now we can rewrite this as: $$I =\int_{-\infty}^{\infty} {f(x)P(x)} \text{d}x$$ Where: $$ P(x) = \mathcal{N}(\mu=0,\,\sigma^{2}=\frac{1}{\...
I am doing an observational review of survival times between two groups who received a different drug. There are some baseline differences between the groups(sex and age distributions are for example). When doing univariate cox regression drug A has a less hazard of death but the p-value is 0.47. When I performed multi...
In the book "Numerical Recipes in C" there is said that there is a long story about why the denominator of variance is $N-1$ instead of $N$. If you have never heard that story, you may consult any good statistics text. What is that story? What book is the story written in?
I want to test whether men or women are higher risk takers. In the data, I have a likert scale for risk (strongly agree to take risk, agree to take risk, uncertain, disagree to take risk and strongly disagree to take risk). The data has a gender variable but I want to know whether men or women are high risk takers. whi...
I have a basic knowledge of how RNNs (and, in particular, with LSTMs units) work. I have a pictorial idea of the architecture of an LSTM unit, that is a cell and a few gates, which regulate the flow of values. However, apparently, I haven't fully understood how LSTM solves the "vanishing and exploding gradients" probl...
Consider a hurdle model predicting count data y from a normal predictor x: set.seed(1839) # simulate poisson with many zeros x <- rnorm(100) e <- rnorm(100) y <- rpois(100, exp(-1.5 + x + e)) # how many zeroes? table(y == 0) FALSE TRUE 31 69 In this case, I have count data with 69 zeros and 31 positive coun...
I'm trying to train a neural network to play Rock-Paper-Scissors. A random player is a local maximum for the game, as it wins 50% of the time. In a tournament setting, it comes out consistently better than the worst bots and consistently worse than the better bots. Against the very worst bots, my neural networks have ...
Suppose I am doing a one-way fixed effect ANOVA on an unbalanced data set. Let the number of levels of the one way factor be "a". Suppose the omnibus null hypothesis is rejected. So I do a post hoc test, say Tukey Kramer HSD. This will tell me which pairwise means are different. My query is the following: Can I form gr...
Let $X_1,\dots, X_n$ be a random sample from $N(\theta,\sigma^2)$, and we would like to test $H_0:\theta \le \theta_0 \text{ vs } H_1:\theta>\theta_0$. Assume $\sigma^2$ is known and derive a likelihood ratio test (LRT). Obviously the question should be solved via UMP test, however if you are requested to perform the ...
I am having difficulty selecting models in GLMM. I am using glmer() of lme4. I would like to choose the model which provides better prediction. model1 <- glmer (y ~ factor1, family = binomial, data = dat) model2 <- glmer (y ~ factor1 + factor2, family = binomial, data = dat) AIC (model1, model2) anova (model1, model2) ...
Let $X\sim\mathrm{Binomial}(n,p)$. We know that $\mathrm{E}[X]=np$ and $\mathrm{Var}[X]=np(1-p)$. Does this imply that the sample mean $\bar x$ and the sample variance $s^2$ are dependent of each other? Or does it just mean that the population variance can be written as a function of the population mean?
If I have to compare the height of two samples but the data provided are grouped, e.g. Height SampleA SampleB [150-160) cm 10 7 [160-170) cm 12 4 [170-180) cm 7 20 is it valid to use the t-test or should the ranges of height be treated as categories of a nominal variable? I know you c...
Suppose we have a bivariate normal (X, Y), whose mean is zero, and variance 1, and correlation \rho. Is there an easy formula for P(X < x | Y < y ) ?
I'm running an instrumental variables regression with a single predictor on a sample size of 120. When I run the regression, the predictor is significant at the 0.01 level, but the adjusted R-squared is negative. My interpretation of a negative R-squared value would be that my predictor does not fit the data at all. I...
Base on my understanding from the SVMs, the feature vector is formed based on the whole dataset (including train and test data). In case we want to apply the trained classifier on a new set of test data, do we need to run the classification algorithm from scratch? If no, what if one of the input test vectors has a size...
I'm considering two strategies to do "data augmentation" on time-series forecasting. First, a little bit of background. A predictor $P$ to forecast the next step of a time-series $\lbrace A_i\rbrace$ is a function that typically depends on two things, the time-series past states, but also the predictor's past states: $...
I am trying to apply Gaussian process to estimate the value of a sensor reading. I have the readings of the sensor for few years (hourly paced time series) so my data is an array of two columns the first one is the time the other one is the sensor reading at that time. I have tried to write the code of the Gaussian pro...
everyone. I ran a lag exclusion test for my VAR model on EViews and arrived at the Chi-squared test statistics as shown in the image linked below. Could someone please tell me what exactly are the null and alternative hypotheses for the individual and joint tests being used here and how should I decide which of these s...
I estimate ratings in a user-item matrix by decomposing the matrix into two matrices P and Q and then using gradient descent to minimize the error. Now, if I want to add a new user, the most obvious solution is to retrain the model. This, however, takes a lot of time even with a small number of steps. Singular Value De...
Graphical models are based on the idea of representing certain types of conditional independences in a (joint) distribution via a graph, and are an active research area. As argued (correctly I believe too) here, there is, hypothetically, no reason why one could not make a completely analogous theory of graph-based repr...
What is the intuition behind the change in formula from the univariate gaussian to the multivariate gaussian? Why are the determinant and $(2\pi)^{n/2}$ added into the equation? Thanks
I have a dependent variable that is Poisson distributed, but it is not 'count' data or data collected over a given time period. It is discreet and positive, with values from 1-10, and it is heavily left-skewed, with a mean of about 1.7. The variable is from a survey question with 10 possible answers, basically an ord...
Given the hypothesis $$ H_0 : \theta_0 \ \ \ \text{vs} \ \ \ H_1 : \theta_1 $$ I want to find the Uniformly Most Powerful test (UMP). Well, we know by the Neyman–Pearson lemma that: $$ \frac{f(\widetilde{x}/\theta_1)}{f(\widetilde{x}/\theta_0)} > k $$ to some $$ k > 0 $$ we will have a UMP with size $$ \alpha $$ such...
In the arima function in R what values can be assigned to p, d, q , because for some reason in every example that I see out there (like this one) tests values of 0 and 1 to get optimal model, but can't I test with values like 2, 4, 5?. I don't mind leaving the computer for several hours executing the process, but I wan...
Quick question, hopefully a simple answer. I am running a 2x2x2 study with all three variables being independent and categorical. However, the dependent variable is also categorical, which implies that a factorial ANOVA would be invalid, as that requires a continuous dependent variable. What test should I run instead? ...
"The proportion of medical procedures unsupported by evidence may be nearly half." If we assume that half of all procedures are based on observational data, what methods can we use to estimate how many are bad procedures? Could we assume a power of 50%, and say that for a p-value of 0.05 only .5*1.96 or .98% of unsup...
I'm fitting a mixed model with a nesting structure that produces a correlation in the random intercept. I'm having a difficult time understanding the correlation coefficient and obtaining the correlation matrix for each individual (which might not be possible in R but seems possible in SAS?). Here is an example model: ...
I am researching factors associated with timely access to medical care and treatment for breast cancer patients. The two response variables of interest are "time for the first consultation" and "time for the first treatment after consultation". These two are measured on same individual as well. I have modeled these res...
Uniform distribution: the density function of a continuous r.v. X is called a uniform distribution when between the end points any two subintervals of the same length containing X, have the same probability.
Let's say we have a random variable $X$ and $Y$, and $Z=X+Y$ Now assume we have a probability density distribution over $Z$: $p(Z)$. Then the expectation of $Z$ is: $$E(Z)=\int Z p(Z)\,dZ=\int (X+Y)p(Z)\,dZ=(X+Y)\int p(Z)\,dZ = X+Y$$ I obviously understand that we cannot do this, because $X+Y$ are random variables, so ...
I have used PCA many times. Now, I always understood it as a method that: assumed that you can apply linear transformations (rotation, scaling, translation of axes) on your data axes to find a set of axes which are orthogonal to each other and maximally explain variance. Now, I watch a lecture which says: Why does...
I want a textbook on Probability, Statistics, Regression Analysis and Stochastic Processes for beginners with only basic knowledge of Probability and Statistics. The topics I want to cover include: Statistical description of data, data-fitting methods, regression analysis, analysis of variance, goodness of fit. Probabi...
Wooldridge (2013) says that the Breusch-Godfrey test "requires the homoscedasticity assumption". I tested for heteroscedasticity in my model by applying the Breusch-Pagan test. The test indicates that my residuals are not homoscedastic. As a next step I am trying to decide wether the residuals are autocorrelated or no...
The question has been asked (one time) on CV before, but the answer is really imprecise and does not really answer the question in my opinion. So: What are the assumptions for estimating a linear regression model via quantile regression? To my understanding (and as several CV users have mentioned), quantile regression ...
I am aware of the "scale free", "existence of community structure" and"small world" phenomena that commonly occur in real world networks, but what are some other properties associated with these kinds of networks, and what metrics can be used to evaluate them?
I have been searching for some answers about the need to use monte carlo methods to sampling distributions. When comparing with the standard random sampling - in the computational sense, we have a table and take n random samples - I can't see any major advantage easily. Thinking a bit more, all that I can think of is r...
I have 3 to 5 (not sure yet) human judges that have to judge whether some photo's is similar to one of 4 known photo's. The outcome is a number between 1 and 4 (for a recognized photo) or zero for a photo unrecognized. For each unknown photo I would like to know: to what known photo the unknown photo looks like (that ...
Note: I edited this question on 1/1/2018 because of the comments on the original question. So some comments relate to the earlier version. It is closed as duplicaten but I dusagree with that For a bi-variate normal distribution with mean $(\mu_X, \mu_Y)$, variances $\sigma_X^2, \sigma_Y^2$ and correlation $\rho$ it ...
I attempted to sample random variables from the Gaussian distribution in C using the following simulation method: $$X_n = \sqrt{(-2\log(U_1)}\cos{(2\pi U_2)}$$ Where $U_1, U_2 \sim \mathcal{U}(0,\,1)$ I then plotted the results for 100,000 iterations: This didn't seem very smooth to me especially for the number of it...
I sometimes see people use taylor approximation as follows: $$E(e^x)\approx E(1+x)$$ I know that the taylor approximation works for $$e^x \approx 1+x$$ But it is not clear to me that we can do the approximation inside the expectation operator. Intuitively, I guess it works if "the probability that $x$ is much larger t...
Assume that data $Y_t$ is a collection of i.i.d. variables $y_1,y_2,...,y_t$ that are sampled from a normal distribution with mean $\mu$ and variance $\sigma^2$. Assume now that we have all the data up to time $t$, and that we want to predict the sample variance that we get when we collect one more datapoint from time...
I am looking for a term which denotes the violation of Occam's razor. In other word a term which denotes the specification of an overly complicated model when a simpler model works just as well, or almost as well. This practice is so common in science, that I feel there must be a term for it. But I have not been able t...
We are at the advent of quantum computing, with quantum languages anticipating hardware quantum computers now available at high and low levels for simulated quantum computers. Quantum computing brings new elementary functions like entanglement and teleportation of qubits, measurement of qubits, and imposition of superp...
I'm fitting a mixed model with a nesting structure that produces a correlation in the random intercept. I'm having a difficult time understanding the correlation coefficient and obtaining the correlation matrix for each individual (which might not be possible in R but seems possible in SAS?). Here is an example model: ...
I realize that this may be answered somewhere but I cannot find it, either on Cross Validated or with Google. I can find numerous examples of how to use multiple regression with R, and I have done that. Then I used summary to view the output, like so: fit <- lm(target_output ~ weekday + day + month + year + max_temp ...
For the above confusion matrix how to compute the sensitivity and specificity manually. I cann't able to understand when the dependent variable has more than two levels
The Poisson distribution has a simple recurrence relation: given a success rate $\lambda$, the probability of getting $k + 1$ successes in some time $t$ satisfies $P_{k+1}(t) = \frac{(\lambda t)^{k+1} e^{-\lambda t}}{(k+1)!} = \frac{\lambda t}{k+1} P_{k}(t)$. I see why the recurrence works algebraically, but is there a...
I have three variables (monthly for 25 years) including wages (e.g. skilled and unskilled) and food price (P). I am interested to see if there any relationship exist between them, either short or long term and which one has the greater influence on other. All the variables are non-stationary at levels but stationary at...
In Google's paper Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation, it is stated Our LSTM RNNs have $8$ layers, with residual connections between layers ... What are residual connections? Why residual connections between layers? Ideally, I am looking for a simple and ...
This article says At times, you might see that your loss drops steeply after a short period of training, before stabilizing. This is a strong indication that your initial weight allocation is inadequate. I am wondering why steep loss reduction is an indication of inadequate initial weight allocation. Thanks!
I want to make a quantitative statement like "There is a 90% chance that this $X$-$Y$-data follows a linear model (with some noise added on top)". I can't find this kind of statement discussed in standard statistics texbooks, such as James et al.'s "An Introduction to Statistical Learning" (asking as a physicist with r...
In my data (from an experiment in psychology) I would like to test a model with three fixed factors and two random factors. The three fixed factors are categorical, two with 2 levels and one with three levels [ a 2 (var A) x 2 (var B) x 3 (var C) model]. The random effects are participants and stimuli. I am using the ...
I want to simulate 3 types of diffusion processes: normal diffusion $[\langle x^2(t)\rangle \propto t ]$. subdiffusion $[\langle x^2(t)\rangle \propto t^\alpha ; \alpha<1 ]$ superdiffusion $[\langle x^2(t)\rangle \propto t^\alpha ; \alpha>1]$ I was trying to do the following: close all M=1e4; N=50; dx=randn(M,N); ...
I ran an SVM classifier on the CIFAR_10 classification workbench. I got about 2/3 accuracy (which I think is Ok, but I want to improve...) Here is my confusion matrix: [[719 12 70 26 37 12 14 6 72 32] [ 14 783 13 21 11 8 20 5 40 85] [ 69 15 551 92 97 58 58 27 19 14] [ 27 14 87 502 89 1...
I have a one way unbalanced anova say with a levels. My task is to find out if we have significantly different COUNTS at the various a levels. I tried this : I compute the sum of the number of cases at each level a say $n_i$ How do I compute if the $n_i's$ are significantly different ? I do not have a measure of the in...
Consider the $\ell_0$ penalized problem: $$\min_{x\in \mathbb{R}^n} \frac{1}{2}\|Ax-b\|_2^2+\lambda\|x\|_0 \qquad \qquad \qquad \qquad \qquad \qquad (1)$$ and $K$-sparse problem $$\min\frac{1}{2}\|Ax-b\|_2^2 \qquad \mbox{ s.t. } \qquad \|x\|_0\leq K \qquad \qquad \qquad (2)$$ 1. Since $\ell_0$ is a discontinuous functi...
In Jay L. Devore 'Probability and Statistics for Engineering and the Sciences', he presents the following formula to retrieve β, when we consider a two-tailed test and the population mean is known. $\beta_{(\mu')} = \Phi({z_{\alpha/2}+\frac{\mu_0 - \mu'}{\sigma/\sqrt{n}}}) - \Phi({-z_{\alpha/2}+\frac{\mu_0 - \mu'}{\sig...
I've read that it shouldn't be possible to get a F value equal to zero, but my result of a mixed ANOVA was: F(1, 200)= .000, p = .955, observed power =.050 Box and Levene are not significant. Can someone explain how this is possible? What am I missing? Grateful for any help, thanks!
I was training a CNN network on German traffic sign classifier data. The architecture was- 3 convolutional layers with intermediate max pooling concatenated outputs of layer 2 and layer 3 to feed to the input layer of the fully connected classifier. A final layer giving the softmax probabilities of the classes. Used ...
I apologize if my question is extremely simple, but you know my name. I have only the variance of a sample and its 95% confidence intervals, nothing more, nothing less. Please correct me if I am wrong: I know that sd = sqrt(variance), can I compute the standard deviation and its 95% confidence intervals squaring the es...
I am wondering how to get rigorously from Bayes rule to maximum a posteriori estimation (MAP)? I have searched the web, but everything I find is very unclear. Would someone explain, whether or not this can be done rigorously or alternatively please suggest some good books or papers that address this question?
I originally posted this on Stack Overflow, and it was suggested that this question would be better suited for CV: With reference to the HoltWinters function in R, how does one deal with time periods with irregular frequencies (f)? Most obviously, there is an irregular number of days in the year - 365 or 366, dependi...
I have the following linear model: $$ y^{j} = w*x^{j} + e^{j} $$ where $e$ follows a normal distribution: $$e = \frac{1}{\sqrt{2\pi\sigma^2}} e^{-\frac{(-n^{j})^2}{2\sigma }}$$ I don't understand why the probability of the output sequence is: $$p(y^{j}|x^{j};w) = \frac{1}{\sqrt{2\pi\sigma^2}} e^{-\frac{(-(y^{j}- w*x^{...
I'm working through problems I found on the net for which there are no answers given. Therefore I'm looking for someone to check my work. Q: $P\left(\int_0^1W(t)dt>\frac{2}{\sqrt3}\right)$ where $W(t)$ is a Wiener process (Brownian motion). So, let's denote $X_t = \int_0^TW(t)dt$ Then $X_t \sim N(0,\sigma(t)^2)$ sin...
I wonder if I can back calculate standard deviation from mean, sample size, and confidence interval. For example: mean age = 40.2; sample size = 427; and 95% confidence interval = (38.9-41.5) And if so, can it be apply to percentage measure, for example: percent being male = 64.2%; sample size = 427; and 95% confidence...
In «Introduction to Time Series and Forecasting» by Brockwell and Davis, an $\{X_t\}$ SARIMA $(p,d,q)\times(P,D,Q)_s$ process is of the form: $$ \phi(B)\Phi(B^s)Y_t=\theta(B)\Theta(B^s)Z_t$$ where $Y_t=(1-B)^d(1-B^s)^DX_t$, and $Z_t \sim WN(0,\sigma^2)$, and $\deg(\phi,\Phi, \theta, \Theta)=(p,P,q,Q)$. The authors stat...
I am trying to build a Cox proportional hazards model using the coxph function in the survival package in R. My function call is: m1=coxph(Surv(time=df$time, event=df$event,type=c('right')) ~ ln_num_prior_investments, data = df) The model summary is as follows: n= 1888, number of events= 707 ...
I have a time series for which I can't seem to get any good results. I've tried multiple ARIMA models and exponential smoothing models and none of them give good results. I have 104 weeks of weekly data, and I'm trying to forecast over the next 7~8 weeks. The best I can get is a MAPE of 35%. I want to get it to 20% or...
I'm trying to do research on the effect of job type, working day and job position on income. The model is something like below. I'm using OLS. Income ~ Gender + Age + Job type + Working day + Job position Here, Job type, Working day, Job position are dummy variables each coded as Job type(0=Unemployed, 1=Service, 2=Sa...
If $X$ is the number of years a computer works, and it follows an exponential distribution with a $\lambda=3$, what's the probability a computer will work in 8 years? I'm not sure that I'm going about this the right way and would love to get feedback. I'm following this formula: $P(X \leq x) = 1 - e^{-\lambda x}$ When ...
Many people add a symbol to the beginning of the decoder sentence for training, also known as the start sequence. For example, Encoder input: "How are you today?" Desired decoder input: "</s> I'm very good! </e>" Why is this?
How should one identify the most contributory independent variable of a dependent variable? Many use cases are associated with this. There are many ways to quantify relationships, for example, Pearson, and Spearman correlation. ANOVA analysis Machine learning approach (bootstrapping) and find most influencing featu...
In Wooldridge's "Introductory Econometrics: A Modern Approach", 5th edition, p. 212-215, the author describes the procedure for obtaining predictions from an OLS regression when the regressand is in log form. In short, due to the non-linearity of the log/exp transformations, we can't simply use $exp(\hat{log(y_0)})$, w...
This is from Theodoridis' Machine Learning, exercise 3.16. Suppose $\mathbf{x}$ is a vector of jointly normal random variables with covariance matrix $\boldsymbol\Sigma_x$. Let $$\mathbf{y} = \boldsymbol\Theta\mathbf{x}+\boldsymbol\eta$$ where $\boldsymbol\Theta$ is a $k \times l$ matrix of [I assume, known or f...
I have some solid unterstanding of math basics and want to learn more about statistics. I'm following a stats course on Khan Academy that has roughly this content: Summarizing quantitative data Modeling data distributions Exploring bivariate numerical data Study design Probability Random variables Sampling distributio...
Processing each mini-batch gives us the best weights/biases result for the input used in that mini-batch. How to reconcile the results obtained for all mini-batches? Do you take the average to come up with the final weights/biases for the trained network?
Let the mode of transport be a categorical random variable with three categories, representing Car, Bus and Train respectively. The goal is to predict for the $n$-th person, what mode of transport they use to commute to work. Suppose that I think that when making the choice of transport to take, a person first decides...
I am facing a similar situation as that addressed in this question, and the accepted answer there has helped me a lot, but I need to resolve a doubt. The accepted answer draws on the excellent resource "Matrix Cookbook" to show that $$\frac{\partial \mathbf{L}}{\partial \mathbf{\Sigma}}= -1/2\left(\mathbf{\Sigma^{-1}...