instruction
stringlengths
9
38.7k
I am running some t-tests using data from small samples (n=25) whose distributions do not appear to be normally distributed (they are not extremely skewed, but the skew is apparent in the plots and they fail the Shapiro-Wilks test for normality). When I run a permutation test (to test for the differences being zero), I...
Since my knowledge of statistics is less than perfect I decided to ask if my research methodology is acceptable. Is it possible to use a correlation coefficient as a dependent variable in a regression analysis? I have correlation coefficients for social status and life satisfaction for a set of countries. What I'm tryi...
I'm basing my question off of someone else's stackoverflow post. My questions are the following: 1. A widely used R package vegan has a function called procrustes, symmetric argument is set to False. The documentation says "Use symmetric Procrustes statistic (the rotation will still be non-symmetric)" but I don't under...
I am conducting logistic regression and looking to calculate pseudo-R2 values alongside AIC and BIC for model evaluation. I selected Efron's pseudo-R2 because of its simple calculation and the similarity to a proper R2 value. When I run a series of logistic regressions, it produces a negative value. However, it is comm...
I'm giving a lecture in machine learning class covering linear regression, and wanted to briefly touch up on the idea of multicollinearity since I come from a more traditional stats background. I was wondering if there are any papers providing a theoretical backing for the VIF ,rather than simply being a heuristic meth...
I would like to calculate the log likelihood of the null model for a logistic regression manually. Ultimately, this is to calculate McFadden's pseudo-R2, and, yes, I could have software generate the log likelihood of the null model (that is my current workaround) but am looking to expand my understanding through manual...
I would like to roughly estimate the memory requirement of training an arbitrary Transformer model $M$, with $l$ layers, $h$ attention heads, an embedding dimension of $d$, and an input dimension of $t$ tokens. What is the formula to compute this estimate? If you happen to know the formula for a specific architecture (...
Background I have data that roughly follows a power law with a negative exponent (up to a point; also, the parameters of the "fit" were just guesstimated by eye as a demonstration): Now I tried using the histogram to fit a power law in the shape of $$f(x) = k \cdot x^a,$$ but I quickly realized that this strongly depe...
I am wondering how R implement the ARIMA model. So the function arima with order (1,0,0) should be the same as AR(1) model. However when I run it, the estimated coefficients are different than my Excel and Python (Statsmodels) tests. By the way, Excel and Statsmodels output the same coefficients. $$ y_t = \alpha+ \beta...
I am trying to build a model to predict the returns of a stock. I have a dataset containing 63 features that include various indicators that are all numerical. The regression model gave me a very low rsquared value of -0.09. When i viewed the correlation matrix, it showed that the target ouput had a low correlation wit...
I have an experiment where I used $n$ participations from $k$ schools. Each participoant was assigned to Treatment 1, Treatment 2, or control. And I measured whether each participant got a question right (0 or 1). I want to measure the effect of being in any of the two treatment groups, as well as the effect of each tr...
Can anyone verify if the following assumptions are true for prop.test in R? I think it's a hypothesis test for differences in proportions between groups, no? Key assumptions(?): Samples are randomly drawn from each population Samples are independently drawn from one another Minimum sample size is 10 Samples must be dr...
I have a dataset of longitudes and latitudes for stores in New York City. The data consists of only three columns - longitude, latitude, and store ID. I want to use python to cluster these stores by using longitude and latitude. Of course ID is not clusterable so I will remove it from the data before clustering. The ty...
I would like to build a Markov regime-switching based early warning system. From the several papers I've skimmed through, [1][2][3][4] they go on about estimating a Markov regime-switching model as a first step and on the basis of the filtered probabilities they estimate a logistic regression model. The problem I have ...
I am studying the book by Adnan Darwiche (Modelling and Reasoning with Bayesian Networks), specifically Chapter 17. I am unsure about how to proceed with this exercise. Since A leads to B and B leads to C, I know how to compute the maximum likelihood parameters for A leading to B. For B leading to C, we can write the ...
I have learned theories about structural equation modeling but don't have enough experience building a structural equation model. I have spent too much time struggling with building a good SEM. I have some questions about the steps to build a structural equation model and hope someone would give me the answer and save ...
How can I generate a random variable which follows the mixture Gaussian distributions: I found the answer and tried to simulate it, but I think it is not the right dataset I wanted. Here is my code: M = 100 sigma1 = matrix(c(0.2, 0, 0, 0),ncol=2) sigma2 = matrix(c(0, 0, 0, 0.4),ncol=2) sigma12 = matrix(c(0.2, 0.028, 0...
I am trying to better understand the Difference in "Probability Measure" and "Probability Distribution" I came across this post, which says The difference between the terms "probability measure" and "probability distribution" is in some ways more of a difference in connotation of the terms rather than a difference bet...
I am new to stats and I am having difficulty understanding the variances for multiple samples taken from the same population. Suppose the population weight of a group of men has mean 80 kg and standard deviation 8. What is the probability of 2 men weighing more than 190kg? What is the probability of 30 men weighing mor...
The following problem I have $n$ students who are taking a test in which two items of information $X_1$ and $X_2$ are collected. Now I form another variable $X_3=X_1+X_2$ and want to find out how large the relative proportion of the variance of $X_1$ and $X_2$ is in the variance of $X_3$. Would it be enough to simply l...
Imagine a dataset containing billions of data. Some of them will never be used because of its length. That leads to my question: is it better for a Deep Learning model to train constantly new data of this huge dataset, or in opposite, take a reduced amount of data and create x epochs of them?
I'm having confusion about the concepts of object detection. If the dataset has been annotated to have ground truth in (x, y) of the four vertices, then why are the papers (using the same dataset) are using a bounding box that is defined by (x,y,w,h) - box center, width, and height? I'm sure I miss something here, can ...
I see that Markov Chains are useful for providing the conditional probabilities for each individual symbol of the test sequence. So this really gives an incremental overview on how the sequence is evolving, by seeing the conditional probability distributions for each time step, as opposed to just classifying the entire...
I am quite new to Survival Analysis and has only practiced with python package scikit-survival by its user guide. I was actually confused by the output of cox ph regression as well as the ensemble machine learning models like random forest/Gradient Boosting etc. for survival analysis ad hoc. Since my mere knowledge on ...
CDF is the probability that a random variable takes on a value less than or equal to a fixed $x = a$. Assuming we have a a random variable $X$ that has a PDF, both CDF and PDF have the same information as the following PDF gives us the exact information as CDF. $$ \int_{-\infty}^{a} f(x) \,dx $$ Do we still need the CD...
I'm trying to simulate an ordinal regression model in order to compute a power analysis in R. Let's assume that I have a 4 level ordinal variable to predict and a dichotomous dummy coded predictor. The model using the MASS::polr() function would be: polr(y ~ x, data = data, method = "probit") In terms of parameters I ...
I would like to see when we standradize the data and then apply linear regression or Bayesian regression do we need intercept or no? or it has nothing with standardize?
I'm interested in using Fisher information to calculate standard errors for maximum likelihood estimates, as discussed, e.g. here and here. To make sure everything was implemented correctly, I was comparing my results for a simple model, $x \sim \text{Normal}(\mu, \sigma)$, to the standard error of the mean calculated ...
The ideal model is an oracle that simply knows the true probability distribution that generates the data. Even such a model will still incur some error on many problems, because there may still be some noise in the distribution. In the case of supervised learning, the mapping from $x$ to $y$ may be inherently stochast...
It is well known that given iid gaussians $Y_i \sim \mathcal{N}(m, v^2)$, with unknown mean and variance, then $t = \frac{\hat{m}-m}{\hat{v}/\sqrt{n}}$ follows a student-t distribution with $n-1$ degrees of freedom. We can use this statistic for a hypothesis test for the mean under the null hypothesis. Now if we instea...
I have 2 sets of variables that I need to run tests on and I am not sure if they are dependent or independent. I will describe them below: Set 1: these values are river water samples that I collected over the past 6 months. Set 2: these values are grass carp otoliths (structures that can chemically show the life of th...
I have two random variables $X$ and $Y$, both with zero mean. $\newcommand{\E}{\mathrm{E}}$ $\newcommand{\Var}{\mathrm{Var}}$ $\newcommand{\Cov}{\mathrm{Cov}}$ Let's suppose I only know their covariance, which is, in this case, simply $\mathrm{E}[XY]$. Can I easily calculate $\mathrm{E}\left[\frac{X}{Y}\right]$ from $\...
I'm currently playing around with support vector machines in Scikit Learn and I've come across some unusual behaviour. For a basic simulated dataset, I've trained an SVC estimator (with linear kernel), found the support vectors and computed the decision function scores. It's those scores that are confusing me; accordin...
psmatch2 depvar [indepvars] [if exp] [in range] [, outcome(varlist)... in stata, I just learned psm, I have some doubts about the role of outcome(varlist). I found a psm example (with 3 outcomes), I tried multiple times to generate a variable consisting of random numbers as the 4th outcome, but the psm result didn't ch...
This might seem a stupid question but I can't find an clear answer. Say I am studying Species richness (outcome variable) in lakes. I have data from 20 lakes, over 4 years, and 3 values per year(early, mid, and late summer). It is clear to me that LakeID should be a random factor, whatever the model I consider, to acco...
I have a very basic knowledge in statistics, so I am struggling a bit with the ideas of Bayesian inference. My data model looks like this, $$ z(t) = \sum_{n = 1}^{N} e^{j 4\pi/\lambda \sqrt{(x_{n, t -1} + u_n.dt)^2 + (y_{n, t -1} + v_n.dt)^2}} + \mathcal{N}(0, \sigma^2) $$ Parameter space is $\theta = [u_n \quad v_n]$ ...
I have features representing a some specific size category, where a data sample has assigned one out of 110 possible size classes. What it is important that these classes are sorted from smallest to the largest, meaning class 0 is the smallest, while class 109 is the biggest. Example: | Sample | Size B1 | Size...
Say you are measuring the decisions of 50 people in a room. They must either choose to go to the blue corner or the red corner. You count the number of people in each corner. Is this a sample size of 50 or 1? I can see that the choices are not necessarily independent of each other, but also that this isn't a given.
We always do Data Normalization of our data when we have different ranges, and I found that normalization is just a translation followed by a multiplicative scaling, so it does not really change your distribution : a translated and scaled gaussian is still a gaussian ... But this is just in case our initial data is als...
Pretty much throughout my undergrad and postgrad, I have always learned statistical models predicated upon things like large subject size. I also know that a lot of repeated measures designs typically work at reducing the error variance of a predictor by removing the error in between time periods. I know that this can ...
The documentation for scikit-learn sklearn.metrics.roc_auc_score() contains two statements regarding the 'average' parameter that, together, are confusing me: Note: multiclass ROC AUC currently only handles the ‘macro’ and ‘weighted’ averages. and Will be ignored when y_true is binary But won't y_true always be bin...
For the following model yi =β0 +β1xi +εi, εi ∼IID(0,σ2) I want to test the hypothesis that β1=1. For that I am trying to resample the residuals obtained from estimating the model under H0. How could you use lm to obtain residuals for the model under H0?
I am using a KNN model to predict quantity sold for a highly seasonal business. I chose KNN because I thought that using nearest neighbors would inform my model about said seasonality better than a standard regression. For reference, I need this prediction to be fairly close to reality, not a smoothed function that doe...
I'm trying to define a model for comparing temporal intervals, and can't find an appropriate distance function that incorporates the different relations two temporal intervals might have, e.g. overlap, contain, ... Computing the distance between the edges of the intervals is not enough since we might lose information r...
I read that the algorithm candidate elimination would not converge if the Hypothesis space $H$ does not contain the target concept. You can look it up here. I quoted from the 5th heading: The version space learned by the Candidate elimination algorithm will converge toward the hypothesis that correctly describes the ...
In Machine Learning (ML) tasks, one splits the dataset into training and test sets. We train the ML model based on the training test, and then we evaluate the performance of the model with the test set. It is always crucial to have "independent" test set, which are those samples that the model has not seen during the t...
I have a simply but still challenging question (at least to me). My question boils down to the following, if the first differences $\Delta y_t$ of an I(1) process is stationary, is then also the expectation of this $E[\Delta y_t]$ stationary? And if yes/no, why? In greater detail: I have two I(1) time series processes ...
I know that mutual information is the Kullback-Leibler divergence between $p(x,y)$ and $p(x)p(y)$. But mutual information is also described as the amount of entropy lost (or, in another sense, the information gained) about $X$ by virtue of knowing about $Y$. Without just looking at the formula, it's not clear why the a...
I'm trying to calculate the probabilities in the paper 1 but I'm getting different results. In the paper, the forecasted smoothed probabilities are calculated as follows: $$\mathbb{P}(S_{t+1} = i|\mathcal{F}_T) = p_{1i} \mathbb{P}(S_{t} = 1|\mathcal{F}_T) + p_{2i} \mathbb{P}(S_{t} = 2|\mathcal{F}_T) + ... + p_{ji}\math...
I have data of 200 persons with 2 variables: 1. C_level: Blood level of a chemical C (a numeric value) 2. Disease: Yes or No I want to know if C_level can be used to predict the presence of Disease and what is the area under ROC curve. So Disease is y and C_level is X. However, I am not clear about proper method to a...
I am working on fitting an ODE model to some data. So I have a vector of time series data $\textbf{x} = [x_1, x_2, ... x_n]$, and an ODE model $\dot{x} = f(x, \theta)$, where $\theta$ is a vector of parameters. I have defined a simple squared loss function, and can include some additional regularizers, depending on con...
I have a XGB model ready to go to production, in validation I discovered that the random seed makes reasonable difference in the performance of the model, which is pretty good, but for some seeds it's just good, and for others it's very good. Now my intuition is that the random seed shouldn't make too much difference i...
I would like the test whether the frequency of a cellular structure on a histology section is associated with (binary) patient outcomes. This would be a simple logistic regression of i.e. glm(outcome ~ structure_frequency). However, the size of the histology sections vary between patients, and I want to properly accoun...
I am looking for advice on the best statistical tests to use to accomplish my goal. I am making a new instrument to measure a variable and want to compare it to the current (gold standard) instrument. The current instrument's outcomes are ordinal (i.e., High, Medium, Low). The new instrument outcomes would be continuou...
Let $(X_{1i},X_{2i})$ follow a bivariate normal distribution for $i=1,\dots,n$ with means $(\theta_1,\theta_2)$ and an identity variance matrix. Suppose that the parameter space is restricted to $\theta_1 \geq 0$ and $\theta_2 \geq 0$. Find the log-likelihood ratio statistic $\lambda_n$ for testing $H_0: (\theta_1,\the...
I need help with defining the supervisor for a ML model. Background: I’m predicting if a customer will respond positively to a marketing campaign. The response is a binary variable that I am given at each step of the campaign and a positive response stays positive for the remainder of the campaign, but negative can cha...
I'm working on a reproduction of a model and I am running into some issues with the wording of the model and implementing it into R. The model that I am working with is an Additive AutoRegressive model, nonlinear in this case. The paper mentions that the final model that they chose was a "Spline model with a constant a...
Consider a prediction setting in which we are interested in training a regression or classification function $f$ with inputs $X \in \mathbb{R}^k$ and target $Y$, and assessing its expected generalization performance on new data. For example, in a regression setting, we might want to estimate what our model's mean absol...
I have a spreadsheet with this type of information: city cases population prevalence (per 100.000) lower_CI upper_CI chicago 20 10000 200 são paulo berlin I don't know what to do first with it, i tried to aplly to the forest function but it...
I have a sequence of satellite images of land use and I would like to be able to pinpoint the moment time a change occurred. To do this, I have a network that compares any two images and tells me the probability that there was a significant change. It works well but isn't perfect, so now I need a statistical method to ...
Are the computational complexity of 1D CNN and 2D CNN the same? If not what are their computational complexity and what is the best way to compute them? Considering both forward and backward propagation.
I'm not sure about the following situation... In my test setting I need to adjust my p value because of multiple tests in the same population - this is clear to me... I have three hypotheses so my alpha level of 0.05 is reduced to 0.016. So if any test is below 0.016 my result is significant. But what do I have to do w...
I'm arguing with a colleague. We have some pooled time-series data (i.e., longitudinal data involving many individuals) and we're trying to quantify an effect (e.g., we need to measure the mean and variance of the effect in the population). I have a suspicion that the data really consists of multiple subgroups (or more...
I have a feature vector X in a regression problem, where one of the features X1 is categorical (genre) with 47 categories. There is also another feature X2 which is continuous (# subscribers) but takes fixed value on each of the category. If I dummy encode X1 into vectors, X2 can be perfectly expressed as a linear comb...
Why not just testing alternative hypothesis? Why do we need null hypothesis? For example, I am testing the effectiveness of a new drug. I can choose two groups: control and experimental. Based on the result I can say that whether the drug is working or not. Why do I need to state the null hypothesis in this case anyway...
You have a wallet with four kinds of coins with the value of \$1, \$5, \$10, and \$25. Every kind of coin is unlimited. Every time you take money from the wallet, you have an equal chance of getting one of these coins, i.e., \$1, \$5, \$10, or \$25. Now you need to buy something that costs $x$ dollar, and you keep taki...
The study design is as follows: N subjects received MRI examinations. In a subset of cases, one or more sequences (i.e. separate “components” of the examination) were of insufficient image quality (e.g. due to motion artifacts) and therefore reacquired. For all sequences with >1 acquisitions, exactly one was selected ...
Let's say I have a non-linear model model of the form $$\mathbf{y}(\mathbf{x})=a\cdot e^{b\cdot\mathbf{x}}$$ There are 2 parameters to fit ($a$ and $b$). In a reference book (Burnham, ed. 2002, ISBN: 0-387-95364-7, p. 61 ), it is written "K = the number of estimable parameters". According to this, it should be $k$=2, n...
I am analysizing data from a clinical trial. I used multiple imputation to impute the (binary) outcome variable, which is the only variable with missing data. All of the covariates are categorical and I am encountering the problem of complete separation, therefore I am using the %FL macro in SAS (which is based on Prof...
The basic argument against ANN for time-series is that there is no conception of time for the inputs. However, it is obvious that one can feed multiple time-steps into an ANN by using various lag lengths where the features are just various lagged series. And "long term" memory one could include the feature of a moving ...
Is IoU in object detection differentiable or can be back propagated? Is it used in the training process or just in the inference?
I want to do a multiple linear regression but I do not find any way to normalize the data I have. This is the distribution without transformation. The data contains a good number of zeros. When I transformed them summing 1 and then taking the logarithm, I obtained this result: I also thought about using generalized l...
I am in the life sciences field and I don't have much experience with power-based sample size calculations. I am doing a Western blot experiment and my research question is whether protein X influences the levels of protein Y during development. In this experiment, I have two groups of mice (that differ based on their ...
I'm looking for a correlation between 2 parameters, neither of which is normally distributed. Hence from my (very limited) understanding of statistics, I should be running a Spearman correlation or log-transforming before running Pearson's. Both of these tests are not significant. However, the Pearson's correlation on ...
I'm doing some work in R and have the following problem. A streaming service company collected data on TV shows viewings of a pool of 9690 subscribers, with the intent of deploying a more efficient content recommendation system. For each subscriber, the data record the TV series watched in a period of 12 months. The fo...
Ok, so I am trying to see if I understand the following correctly. Suppose I have a bivariate random variable $(X,Y)$.. Just as an example, suppose that $X,Y$ is distributed as: $$\begin{align} Y&\sim\Gamma(\alpha,\beta)\\ X&\sim Exponential(Y) \end{align}$$ Then suppose I have a paired sample according to the followin...
Suppose a binormal population $X_1, X_2 \sim \mathcal{N}(0,\Sigma)$ where $\Sigma$ is obtained from $\sigma^2$ the variance of each item, assumed equal, and $\rho$, the correlation between pairs. We sample $n$ pairs from that population. We can compute two sorts of variances from these data. (1) The variance of the dif...
So - I am trying to decide which resident to promote. Using their "Performance" as one metric (about 50% of their entire score) My idea was to normalize their survey score and then use that score in their overall total rank. I realized I might have a problem. The scoring is 1-10 from 14 reviewers. My plan was to use th...
I am using zeroinfl test with my data, and was wondering if it is enough to mention the z value in a paper. Otherwise, I used the lrtest to calculate the X² and p values as follows: model1<-zeroinfl(y~X1+X2,dist="negbin") model2>-zeroinfl(y~X1,dist="negbin") lrtest(model1,model2) Likelihood ratio test Model 1: y~ x...
My question is at the end of the post. I tried to give as much information as I can to clarify my understanding and to point out as precisely as possible where I am stuck. Independent variables or features may be fixed or random I have recently read that when performing a regression, the independent variables or featur...
When I read debates or listen to videos about probabilities and bayesians versus frequentists, it reminds me like a lot the question of "do we know what infinite means?" (related to the Continuum hypothesis), with the conclusion that "we understand what countable infinite means (natural numbers) but we don't understand...
Say I have an alternate model and wish to determine whether the increase in accuracy is statistically significant enough to replace an existing one. Model A, tested on 100 batches of 1,000 observations has an average accuracy of .80, and follows a beta distribution. Assume a similar distribution for Model B, but with ...
I want to run an A/B test over, hopefully, as shortest time as possible! I have severe variations in the metric over the week which inflates the variance of metrics and hurts the power a lot! I thought I have two options in classic statistics to remedy this, and another option that I do not know how to leverage. Would ...
Curious, do people use data augmentation on the validation set? I am aware there is a debate for the test set -- but the validation set is usually a split form the train set, so wouldn't it make sense to use data augmentation for that? Also, augmentation helps for models to be better, so wouldn't it make more sense to ...
Most of methods of imputations requires either MAR or MCAR. How do we check the assumption on MAR or MCAR in general? In how to check missing data is missing at random or not?, Turgeon said $H_0:MCAR$ vs $H_1:MAR$ is tested by logistic regression of missingness against covariates. There is no particular reason why one ...
Yes, I'm aware that there's similar/duplicated questions already open: Aren't these statements about confidence intervals equivalent? Why does a 95% Confidence Interval (CI) not imply a 95% chance of containing the mean? Are there any examples where Bayesian credible intervals are obviously inferior to frequentist c...
I'm aware, that negative skew means long left tail and the mean < median < mode. Also aware, that negative skew is where most values are plotted on the right side of the graph. But the following statement confuses me the most. It is characterized by many small gains and a few extreme losses Shouldn't it be many large ...
I have checked other questions regarding additive noise model, but I could not convince myself for non-linear case. Assume the data vector $\mathbf{d}$ is described by a possibly non-linear deterministic model $f(\mathbf{m})$: \begin{equation} \mathbf{d} = f(\mathbf{m}) + \mathbf{\eta}, \end{equation} where $\mathbf{\e...
I'm trying to work out if the home advantage for two soccer leagues are different, where teams try to score more goals than their opponent to win, otherwise drawing or losing. Home advantage is the added benefit of playing on your own turf, and I've defined it as $$ \gamma=\frac{\sum x_i}{\sum y_i}, $$ where $\gamma $ ...
Let $A, B, C$ be random variables with covariance $cov(A B) = 0$ and correlation $corr(B, C) = 1$. Is it true that $cov(A C) = 0$?
Similar question to posted here: Metropolis-Hastings using log of the density however my question is around sampling a random number from a uniform distribution. I am following the steps outlined in Murphy: Machine Learning A Probabilistic Perspective on page 850 for Metropolis Hastings algorithm. The difference is I a...
I am using Yelp Dataset and wants to predict the star rating. The official documentation define the star column as // float, star rating, rounded to half-stars "stars": 4.5, The star column values in the dataset are of 1 , 1.5 , 2, 2.5 , 3, 3.5, 4, 4.5 and 5. Since it is a rating where 4 is better than 4.5, I woul...
I'm trying to conduct a noninferiority test to determine whether one treatment is no worse than another. The distributions of the two populations are likely not normal, so I want to use a non-parametric test. What statistical test should I choose, and how can I implement it in R? Thank you in advance for your help -- I...
I understand the view that ML is a big optimization problem where we are trying to minimize the loss function and achieve the most optimal solution given the input. To achieve that we are feeding a loss function (let's say accuracy) and an optimizer (let's say stochastic gradient descent) which is helpful for the model...
Suppose we have two distributions X and Y with the mean of X greater than or equal to the mean of Y. I want to test the hypothesis that $H_0: \bar{X} - \bar{Y} <= d $ v.s. $H_a: \bar{X} - \bar{Y} > d$ for a given d. Which test statistics should I use for testing such hypothesis?
Consider a linear model $E(y)=X\beta,\,\operatorname{Var}(y)=\sigma^2I_n$ where $y$ is an $n\times 1$ response vector, $\beta$ is a $p\times 1$ vector of parameters and $X$ is an $n\times p$ design matrix with $\operatorname{rank}(X)=r\le p\,(<n)$. In the book Plane Answers to Complex Questions by Ronald Christensen, t...
It is a very similar question to this one. In my case, the exact question was why adding a new variable in a linear regression model is the same as controlling for it. I am going to use a similar R simulation as @Fomite and @Bernd Weiss in their answers to the original question, with some changes (now the covariate wil...
Suppose that n pairs $(x_i, y_i), i = 1,,,, n,$ are independently drawn from the following mixture of normals distribution: where $0<p<1$ I have a solution given as: $$E[y]=pE[y|A]+(1-p)E[y|\bar{A}]=4p$$ $$E[x]=pE[x|A]+(1-p)E[x|\bar{A}]=4-4p$$ $$E[xy]=pE[x|A]E[y|A]+(1-p)(E[x|\bar{A}]E[y|\bar{A}]+C[x,y|\bar{A}])=0$$ an...
I'm learning LSTM but I don't get when to use the h hidden/output state or the c carry/cell state. Some resources say the c state is used for encoder+decoder, but can it be used in other places? Let's say I have an array [1,6,7,9,2,3] and I want to find out the max number, which is 9, do I use the h state or the c stat...
Let say i have a bunch of document and I want to analyse the topic of the corpus. The only way i know is to use unsupervised learning with gensim which use model like Latent Dirichlet allocation(LDA),Latent Semantic Indexing(LSi) or Hierarchical Dirichlet process(HDP). So i have a confusion Is there any neural network...