instruction
stringlengths
9
38.7k
My guess is that if a take a sample with $n$ observations ($n$ = sample size), average them and plot it and repeating the same thing for a lot of times then I am getting "dupplicates along the way", meaning that observations which occured in the sample nr 1 could also occur in the sample nr $x$. So I don't always get n...
Two variables $X_1, X_2$ are independent and identically distributed as $N(0,1)$. I need to find Cov($X_1$, $X_1 X_2$). Thanks!
The goal is to have groups emerge bottom-up from the data. I have a number of measures (variables A, B, C, D), each with a value 1-10, for a large number of subjects. Now, knowing that there will be different patterns of correlation between the variables for different subjects, I would like to know which subjects exhib...
Please, I'm a newby with Restricted Boltzmann Machine, I'm a psychologist (not very good with math) and and I've some confusion about the use of Gaussian visible units. Note I'm working on the original Hinton code, in particular: I'm using the Matlab code "rbm.m" (implementing a RBM with binary visible and binary hid...
What is the meaning of the || in this equation? I haven't been able to find it from googling. It's from page 8 of https://arxiv.org/pdf/1606.05908.pdf Thanks!
Why should I be concerned with applying a significance test to raw data that indicate a right skewed distribution? I am not sure if the following info helps: I am faced with data for two samples (n=20) for T4 cell count in two groups (Hodgkins vs non Hodgkins leukemia); the means are 823 and 522, respectively, and the ...
This is an issue that has plagued me for a long time and I have found no good answers in textbooks, Google, or Stack Exchange. I have data set of >100,000 patients for which four treatments are being compared. The research question is whether survival is different between these treatments after adjusting for a bunch o...
I have a large list of numeric (decimal) values ranging from approximately [-2, 2] with some of them being equal to 0 and I need to scale them so that their sum is equal to 0 while keeping their sign (i.e. negative numbers must remain negative after scaling). The first try was to divide each number by the sum of all nu...
I am confused that whether the variance used in the formula from Borenstein's method is the square of standard deviation or standard error of the mean? Could you help me? I thought it should be SD. However, at page 230 from the book (introduction to Meta-analysis) mentioned that "variance is 0.0036 and standard error i...
I have started reading about Bambi and I don't quite understand its notation. For example what does the following random=['condition|subject', '1|stimulus'] mean below? from bambi import Model # Assume we already have our data loaded model = Model(data) results = model.fit('rt ~ condition', random=['condition|subject'...
Suppose I can only observe people who visit Starbucks. My posterior probabilities will be like $\Pr(\text{male} \mid \text{visits Starbucks})$, $\Pr(\text{has hair} \mid \text{visits Starbucks})$, etc. – where all of these are independently distributed. I want to use a naive Bayes classifier to analyze if the probab...
How can I generate multi-dimensional data from a (estimated) Gaussian mixture pdf? In general, what would be ways to generate multi-dimensional data from a pdf? I read rejection sampling can be used, but it requires estimating an upper bound for the pdf, which is not an easy task for me.
After reading Ferson et al's (2003) paper on spurious regression, I understand that he uses extensive simulations to generate the true regressors and then compare them with those in the literature to find out those spurious regressors. What I am still confused about is, how spurious regression can be discovered by this...
I have data in the form of a $n \times t$ matrix $X$ where $n$ is a number of variables and $t$ a (large) number of time points. At any given time point the elements of the matrix can be expressed as a proportion of the column sum of all elements at that time point. So, for example, summing all elements in the first co...
Here is a toy survival model with age only. But I still do not know how the surv numbers in survfit are calculated: $\exp(\beta x)$ is exp(fit$coefficients*60)=1.135894 then what's the next step? How to get $h_0(t)$? All the resources say $h_0(t)$ is non-parametric, but how it was calculated? library(survival) fit<-cox...
I am currently working on a project where I need to evaluate the influence of physiographic region (5 levels) and age (3 levels) on a continuous variable called ASI. I originally planned on a 2-way ANOVA using the following coding: results=lm(ASI~PHYS_CODE*AGE,data=combinedData) The output: After running the analys...
I have a data set with 4 time points and around 200 'subjects' (in my case local authorities). I want to look at predictors of my dependent variable and changes over time in my dependent variable. I want to do a multi-level model using the MIXED command in SPSS. I know I need to use the /REPEATED subcommand, because I...
I'm trying to fit a model with the function glmer (lmer4 1.1-7 package) in R using REML. I tried to use the argument method=REML to do it, but this argument is deprecated. It seems that the way to produce greater accuracy in the evaluation of the log-likelihood is by mean of the adaptive Gauss-Hermite quadrature (i.e....
I would like to find a computationally quick and sufficiently accurate way (i.e., either analytically or numerical approximation) to compute a conditional probability for a specific multi-variate normal distribution, which is defined as follows: Let $X_1, \dots, X_n$ be n independent (univariate) normal random variable...
Suppose I have a probability distribution $P$, and suppose that $U$ is the uniform distribution on the same sample space. Then the KL divergence from P to U is $D_{KL}(U||P) = \sum_x u(x) \log\frac{u(x)}{p(x)}$ We can decompose this as follows: $D_{KL}(U||P) = \sum_x u(x) \log u(x) - \sum_x u(x) \log p(x)$ The first te...
For a multivariate data set, I test normality on the marginals, and I get plots like above. That's not my actual plot.... mine is not that obvious, the middle part is actually quite straight.... but the sharp decline/rise near the ends is the same as in my plots. So, what does this tell us. Which model, if not the mu...
I'm still trying to understand dropout completely, but this is what think is happening so far: At each step there is a chance p of a unit being set to zero. If a rectified linear unit (ReLU) is used for activation, then a weight of zero can often result in 'dead' units. If I run a network for a long time (i.e. towards...
i have to do a report on uk house prices and their effect on consumption, looking at research clearly a time series and regression is the best method. Please can someone answer me what they both achieve and if using both may be better for facialitating my research not just one? also what figures will i have to input to...
Here is how I test contagion effect between six FX series (deleted two due to VAR specification). I first split the whole period into two subperiods exogenously suggested by Forbes Rigobon. By observation of the data, I decided to split the data by 2009 week 35. Previous research before Forbes Rigobon (2002) based on c...
I have got a file that contains 1024 subjects, each have 3 data points. I need to find a corrupted data among them. I know for sure that there is just one data that is corrupted and it is quite evident when I look at the data but how do I do it through R? Need to find the row number that has the corrupted file. Thanks...
Long time lurker, first time question writer in CV, so please be kind. Currently, I'm exploring the benefits and drawback to performing imputation with cosine similarity and with random forest. Rather than using imputation for missing values, I'm using to use imputation for indexing a reference dataset. I think this w...
Suppose we know $\mu_1,\mu_2, \dots,\mu_n $ which are true values. Suppose we simulate data $x_{i1},\dots, x_{in}$ from some model or distribution involving, $\mu_i$. Using this we want to calculate the Mean Squared Error(MSE), thinking that the mean is a good estimate for $\mu_i$. $$\hat{MSE}=\frac{1}{n}\sum^n_{i=1} (...
Suppose you have a data set consisting of 25 samples and you decide to do 10-fold cross validation. Since 10 does not divide 25 evenly, how are the bins for each fold decided? Are the bins necessarily disjoint (in which case, you'd have to round down to 20 and have bins of size 2) or are certain samples shared between...
Hypothetical example: A researcher counts the number of persons entering a building over a one hour period and records this number. The following day the researcher performs the same count during the same hour of the day. Can these two numbers be compared for a statistically significant difference using a t-test, despi...
Linear regression: $Y = X_1 + X_2$ Is that possible that $X_1$ could have a low $VIF (1.25)$ and the same time, have a $0.35$ correlation with $X_2$? If $X_1$ has almost 1 of correlation with $X_2$, implies that VIF will be higher for $X_1$?
In a maximum likelihood fit, one estimates the parameter with the mode of the likelihood $L$, and the variance of this estimator with the second derivative of $\log(L)$: $$ \bar\theta = \mathrm{Mode}[L] $$ $$ \mathrm{Var}[\bar\theta] \approx -\left(\frac{\partial^2}{\partial \theta^2}\log(L(\theta))\Big|_{\bar\theta}\r...
I have 10 measurements $(x, y)_i \in \mathbb{R}^2, \, i \in 1..10$. Each is measured with uncertainty in both x and y. Furthermore, each measurement and its uncertainty is correlated with each other measurement, and I know the full covariance matrix. What is the best way to show this graphically?
I have a list of datapoints that falls within some sort of zipfian distribution or gamma distribution: population = [139212, 70192, 50000, 21000, 16000, 5000, 2000, 500, 600, 100, 10, 5, 5, 5, 5] And I took a sample out of the population: sample = [139212, 70192, 21000, 2000, 100, 5, 5] And the mean and the standard ...
Fitted a logistic regression to predict if a member would default the loan payment. The coefficient for 'loan_amnt' is positive as shown below: As it is positive, an increase in loan_amnt would mean that odds/probability of 'defaulting' also increases. But, the average defaults based on quartile of loan_amnt indicates...
I am working on data set of "Number of days taken to get a reply to mail". I have studied Power-law distributions in empirical data by Aaron Clauset Cosma Rohilla Shalizi and M. E. J. Newman. I have used powerLaw package in R to find if my data is well fit by a power law. It shows that power law is a good fit for my da...
A survey of 170 randomly selected undergraduate students show that 119 prefer to study in their room. What is the point estimation of the proportion of students who prefer to study in their room? Would it just be 119/170 = 70%
One thing that struck me as odd when going through literature on reinforcement learning is how "theoretical" everything is. I expected the results in this field to be things that you can immediately punch into Python or MATLAB and get your hands dirty, but I am seeing most things in reinforcement learning is not expres...
For example, if i write "helo wrld" in a text box could i write an algorithm that would change it to "hello world" or find all the closest solutions to what i write? without actually telling the algorithm that "hello world" is what i'm looking for.
I need to conduct a moderation study using 3-4 raters, a scale of 5-10 items, and between 1 and 5 samples. Would my Kappa coefficient be meaningful with this sample size? Would I be able to generalise to the population that the scale provides sufficient information to the raters to produce reliable results, consistent ...
I wonder if only me feel there are certain connections between them, I googled it for a long time, but found no where mentioned these two method. But to me, they indeed looked so related, Could anyone help?
As this paper (http://www.statnlp.org/research/ta/rnn_truecase.pdf) illustrates, a char rnn can be used to true-case some text i..e capitalize the necessary characters. The paper just says it uses a beam search after the softmax over characters at the final layer of the char rnn. How can you do that? My problem is: I...
I got the results to the multiple regression, but don't know how to form a graph from it? #Final Output with Significant Values summary(lm(volume~ method.C+ subject.2 + subject.6))
I am familiarizing myself with multivariate Gaussian distributions and Gaussian processes using george, and I am trying to understand how sampling from a multivariate Gaussian distribution works. The following is a sample from the prior of a multivariate Gaussian distribution, using numpy.random.multivariate_normal. Ea...
In our lab, we work with the retina which yields very little sample. Although we have a reasonable sample size of six animals in each group, I don't understand which test to be used to test for significance among groups. This is because we mix the sample (from all 6 animals) since it is too less in quantity. So, we mix...
We have a system in which we offer users a selection of items in the form of a list. Hard coded rules are ranking the items in this list. They have to select one of these items (we don't want to model the reasons behind this choice). We record the position of the items for each list displayed and we record which item i...
I have 2 samples: disease (n=21) vs no disease (n=13). I am using histogram features (percentiles) of 8 different type of diagnostic tests. Individual "histograms" are built using hundreds of pixel values over one anatomical location. "Tests" are different imaging modalities. I want to know which test out of the 8 con...
I am working on a regression model of quite complicated dataset. Dataset is heterogenous in the sense that it contains elements of significantly different properties. I am using $\epsilon$ type regression with radial basis kernel (RBF) (libsvm implementation). When I arbitarily set parameter C (~$200$) and leave the re...
Say that we are dealing with a time series of 25 years of daily measurements of a variable with seasonal cycles, e.g. it reaches higher values in winter than in summer. The objective is to compute the monthly weights that produce the seasonal oscillation. Let's say that the amplitude of the cycles does not seem to incr...
I am just curious why there are usually only $L_1$ and $L_2$ norms regularization. Are there proofs of why these are better?
This is a rather theoretical question, so I'm sorry if that's not appropriate to the platform. I have trained a decision tree (partykit) on an imbalanced data set, and to force the model to learn both positive and negative examples I have up-sampled the data to be balanced. On a validation/test set performance was more...
I was trying to get the optimum features for a decision tree classifier over the Iris dataset using sklearn.grid_search.GridSearchCV. I used StratifiedKFold (sklearn.cross_validation.StratifiedKFold) for cross-validation, since my data was biased. But on every execution of GridSearchCV, it returned a different set of p...
I was recently asked a question by my colleague: Can we use multiple LINEAR regression for a binary classification problem? Will the regression model be equally good as a classification model or it is not advisable at all to use multiple regression for a classification problem. The dependent variable(y) is 0 or 1 and t...
I've found a nice presentation describing PLS1 and PLS2 algorithms (pages 16-19). It's pretty clear but there is a thing confusing me. For PLS1. Let's look at the algorithm. The first steps are $w = X'y$ (which maximizes $\operatorname{cov}(Xw,y)$) $w = w / ||w||$ $t = Xw$ $p = X't / t't$ On the one hand one can say...
I am analyzing the results of my VAR model, where the original non-stationary variables are presented as growth rates, and after differentiation they are interpreted as change of growth rates and used in the model. Question: Which impulse-response function (irf) is appropriate for me to present, the original impulse...
What is meant by the condition for a binomial distribution that the number of trials must be fixed? Does this mean the number of trials must be fixed before the experiment?
I have time series data, it's about the wind speed and direction at each time (minute, or hour). If I plot the histogram of the data by grouping in years, the histograms would look like this It can be seen that the distribution is not stable across the years. And recent year is a little bit more smoother and more sta...
Problem: Lets say there is a staging table with four columns. There are incoming CSV files that arrive daily from thousands of sources. They all have different number of columns and the names of the columns are different for files coming from different sources. I have to write an ML program that identifies the four req...
I'm doing some research on CNN for text classification using tensorflow. When I run my model I get a very high training accuracy (arround 100%). However, on test split I get an inconsistent accuracy results (sometimes 11% and sometimes 90%). Moreover, I noticed also that the loss in training is decreasing until it rea...
I would like to fit the data with a linear model for each participant that would look like this: $$ Y=B_0 + B_1X_1 + (B_2 + B_3X_1)X_2$$ where $B_i$ are the regression coefficients and $X_i$ the regressors. Depending on participant's particularities, $B_2$ could be positive or negative. But my hypothesis is that $B_3$...
From what I understand, OLS gives consistent estimates for stationary AR(1) time series but not for unit-root ones. I am trying to illustrate this phenomenon with a small simulation in R but the OLS estimates in the unit-root case seem alright: res <- c() for (i in 1:1000) { ar <- c(0) for (j in 2:1000) ar[j] <- 1...
Some statistical formulas for calculating the 95% confidence intervals for estimators such as Relative Risk (RR) and Hazard Ratio (HR): 95% CI for the log RR = logRR ± 1.96 × SE 95% CI for the log HR = logHR ± 1.96 × SE They tell me one fact that log(RR) or log(HR) follows normal distribution, but how and why? I reca...
Problem: I am currently doing my Msc-thesis on rodent population dynamics. One of my aims is look at symmetry in oscillation topography. For this I want to calculate the growth rates up and down from peaks in a 100 year time series. Attempt: My initial thought was to identify local maxima and then use the points befor...
I'm running an ANCOVA in SPSS to determine the difference in a continuous DV between 3 groups (from one categorical IV). The data also contains a continuous covariate (levels from 1-10), and the cases are weighted so that there is an equal number of cases based on the group type and the covariate (i.e. 5 cases from gr...
I'm fitting the t-distribution to financial data and I know of two methods to do this using R: (A) fitdistr(mydata, "t") Output: m s df 2.608111e-05 8.305111e-03 4.425103e+00 (6.110566e-04) (6.754816e-04) (1.375033e+00) I believe this is using the MLE method. (B) stdFit(M...
Questions: 1. Is there a simple, interpretable way to determine the distance/closeness of a matrix to being not positive (semi-)definite? 2. Alternatively: how can I systematically create matrices that are just barely positive (semi-)definite? Background: I've been studying the performance of different estimato...
Assume we are are serviced by core $I$, where $I=i$ and $i=[0, n]$, with probability $p_i$. Also assume that the time needed by each $i$ in order to complete a job is an exponential random variable with parameter $\alpha_i$. If $T$ is the time that a job will take in order to be completed, then what would $\mathbb{E}[T...
I'm wondering if the standard deviation was always built on the assumption of a normal distribution. In other words, if the sample is not normally distributed, then should using the standard deviation be considered as a mistake?
Say I have an array of data of 10 time series $x_{i,t}$ at 1000 points in time. I wish to test the hypothesis that the first eight series are in some way a positive leading series of the other two. So in other words (I think), the CCF between series $x_{1,t}$ or $x_{2,t}$ or $(x_{1,t}, x_{2,t})$ and $x_{j,t-k_j}$ for ...
Suppose that we have a wide sense stationary process $X_t$. Without loss of generalization assuming that mean is 0, lag one covariance is $\mathbb{E}[X_t X_{t-1}]$. In order to estimate the covariance, I use the sample version: $$\frac{1}{N}\sum_1^N X_t X_{t-1}$$ What's bothering me here is the consecutive products i.e...
I am trying to compare two related measurements in two different groups to see if it is increased in one group vs the other, as follows: Measurement 1 in males with a characteristic vs measurement 1 in males without a characteristic Measurement 2 in males with a characteristic vs measurement 2 in males without a chara...
I'm doing some studies on variables (included their lags) that could influence the response variable (y1). The model that best fits the data is a VAR model (Vector Autoregressive Model) including three delays. Header data: date y1 x1 x2 x3 2015-01-01 27.21140 25.09518 22.89878 23.91072 2015-02-...
What do we mean in statistics when we say 'variable A influences variable B?' And how do we test detect this influence? Im not sure of the right tag for this question. What topic in statistics is this point tackled?
I have $Y$ as a response in a multiple regression. I plot qqplot with K after using lm in R. Is the resulting plot only dependent on $Y$ or do the covariates matter? In other words, is qqnorm(Y) the same as qqnorm(lm)? If not, what are the differences?
I have a fairly good understanding of the theory behind Bayesian modeling and I have started to attempt some practical modeling using jags in R. I have been following examples online to get used to the syntax. However in the below example I simply increase the number of observations and it has an unexpected effect, ind...
I want to do meta analysis of proportion (Outcome). My study has different type of treatments, for example, single arm studies with one or more than one drug combination treatment. Do I need to do correlation among arms before doing a meta analysis? Do I need to do a meta regression considering all arms as individua...
So I have got a data set with 3 variables. Using the function C.n(u,pobs(data)), where u is a matrix containing uniform distributed random variables of dimension 3 and the same length as the data set. However, C.n returns a list of numbers in [0,1] of only one dimension. How can I use this list to generate new data, in...
One solution for calculating the overlap coefficient for two density plots was given by @mmk here: How to calculate overlap between empirical probability densities? Question: However, does anyone know how one would calculate confidence intervals in R for the overlap coefficient, or a measure of error? I have tried the ...
In a standard linear model, $Y = \beta_0 + \beta_1 X_1 + \beta_2 X_2$, a unit increase in $X_1$ leads to a $\beta_1$ increase in $Y$ (likewise for $X_2$). In a log-level model, $\ln(Y) = \beta_0 + \beta_1 X_1 + \beta_2 X_2$, a unit increase in $X_1$ leads to an $\exp(\beta_1) \times 100\%$ increase in $Y$ (likewise for...
I have a scenario like the following: $C$ is a random variable that follows $\operatorname{Uniform}(0, 3.5)$. $T$ is a random variable with $\operatorname{Exponential}(\operatorname{mean}=3)$ for group 1 and $\operatorname{Exponential}(\operatorname{mean}=1.5)$ for group 2. $X$ is a random variable with $\operatorname...
I would like to jointly estimate 4 variables. Two of them are categorical and the two others are binary. So I thought about a "multivariate multinomial probit model", but did not find much. What would be the best solution in my case? Is there a built-in function or package I can use? I am working with a Stata, but c...
Statistical references often present the Kullback-Leibler and $f$-divergences as being information-theoric in nature. Some examples: The paper On Information and Sufficiency, by Kullback and Leibler (1951), that introduced the KL divergence in mathematical statistics. The paper Importance Sampling and Necessary Sample...
Concretely, if we're interested in predicting house price (dollars) from house size (square meters), we can calculate the best fitting line and use that for predicting new values. But why not simply calculate the average price per square meter and use that for our predictions? We can use that to plot a line as well, ca...
To construct the half-normal probability plot, plot the absolute values in a certain statistical diagnostic (residual, leverage, Cook distance and others) versus $z_i$ where: $\displaystyle z_{i} = \Phi^{-1} \left(\frac{k + n - \frac{1}{8}}{2n +\frac{1}{2}}\right)$ $\therefore$ Applied Linear Statistical Models, (Kut...
I have a vector that I'm trying to fit to a distribution using the fitdistrplus package in R. I think that I am getting close, but based on my results I feel like I can get closer. Here are the values I am trying to fit and the code I have produced so far. library(fitdistrplus) samplevec <- c(435, 278, 4579, 4102, 149...
I am wondering what kind of regression would be well suited to analyze whether the independent variable does only impact the dependent variable if it is above a certain threshold. Even though this might not be true in reality, let us say that below a certain traffic density there will be no car crashes. Once a certain...
I am working on ridge regression at this moment: $$\sum{(y_{i}-\beta\cdot X_{i})}^{2} + \lambda \cdot\beta^{2}$$ with an additional constraint: for some $\beta_{m} > 0 $ and some $\beta_{n}<0$, while $n+m$ is the total number of predictors. Basically, there is a positivity constraint here. The positivity constraint m...
I have a problem estimating the parameters via least squares. The problem is as follows: Suppose we want to adjust the following curve $y_i=\beta_0 x_i + \beta_1 x_i^2 +\varepsilon_i$. Compute the parameters' estimator via least squares, and give the expression of the parameters' variance. I have trouble in computing...
I am trying to model some historical variables which are discontinuous. I am working with monthly observations so I have 12 observations per year. However, there are cases in which, for example, I have data for January-2000, February-2000, and then the data jumps to May-2000, and so on. I am using R to perform the tim...
I have a following generalised linear model with logarithm link function in R Call: glm(formula = time ~ I(1/nprocs) + nDOF + I(nDOF^2) + ndoms + nDOF:ndoms + I(nDOF^2):ndoms + I(nDOF^3):ndoms, family = gaussian(link = "log"), data = dataFact) Deviance Residuals: Min 1Q Median 3Q ...
Why fitting a correlated shared gamma frailty model in R, I obtained the negative estimate for the variance of parameters of interest. I used optim, mle and mle2 with L-BFGS-B and Nelder-Mead optimization methods (just to see if there are different outputs) with different starting values. However, all of them gave me s...
In R I get a multiple regression output like the following: I need to know what the column headings translate into. Such as which column would give me b in an equation, which would give me a, what would be x and y values. More importantly, I need to know if I have all the numbers I need to interpret the equation y = ...
My confusion matrix is as shown below CF_Matrix <- structure(c(150L, 17L, 3L, 5L), .Dim = c(2L, 2L), .Dimnames = structure(list( pred = c("0", "1"), truth = c("0", "1")), .Names = c("pred", "truth")), class = c("xtabs", "table"), call = xtabs(formula = ~pred + truth, data = testData_pred)) truth pred...
I'm looking to better understand how Bayesian posterior distributions can be derived from different types of data. There are plenty of examples out there showing how a posterior can be derived from a beta prior and Bernoulli trials as data/likelihood. What I want to understand is how this method can be extended to ot...
I am trying to calculate inter-rater reliability for two raters using a dichotomous scale. In one part of the study, raters have to decide from a list which word candidates of a child's utterances are real words. This works fine with Cohen's Kappa. However, in a second part of the study, raters are asked to write dow...
My research question: I have a data set with good observations and bad observations and have to estimate if all observations are good in the population with 99% confidence. My suggested method: My idea was to test whether the proportion of good observations (let it be p) is significantly smaller than 1. That is, H0: p0...
I am comparing the performance of two regression algorithms on a same dataset. I want to use t-test to evaluate whether there is a significant difference between the performance of the two algorithm. Say there are 200 samples in total. What I am doing right now is using a leave one out cross validation to calculate the...
Let $x\in\mathbb{R}^n$ be a GMM-distributed vector with $K$ components. In the setting where we consider diagonal covariances, we have $P1=K\cdot (n+n)+K$, i.e. linear in $n$ and $K$, and $P_2=K(n^2/2+n)+K$, quadratic in $n$ and linear in $K$, in case of full covariance matrices. Even in a moderate number of parameters...
Sorry if this is has been answered elsewhere, I haven't been able to find it. I am wondering why we take the square root, in particular, of variance to create the standard deviation? What is it about taking the square root that produces a useful value?
According to my understanding about the difference-in-differences (DID) model with fixed effects, there are two specifications y=a0 + a1*TREAT + a2*POST + a3*TREAT_POST + e y=a0 + a1*TREAT_POST + timeFE + individualFE + e Here, the dependent variable is a count variable and TREAT is an indicator variable that represe...
I have seen in many different places that a basic assumption is that the training data and test data follow the same distribution. However, there are references that talk about outliers in the training and/or test data. I have two questions about these assumptions: If all input data have the same distribution, what do...