instruction
stringlengths
9
38.7k
I am aware that measures of skewness based on the mean are affected by outliers, and just one outlier can significantly shift the mean. However, in case of a distribution with a very long tail, should I use a mean-based measure of skewness or a median-based measure of skewness, to measure the lack of symmetry of the di...
I have been working on my Master's Thesis which included a survey and its results have been put through various tests. The unusual thing about my Thesis is that I have no hypotheses at all, making it a descriptive statistical analysis. However, I have set up hypotheses just for the purpose of calculating p-values for m...
If I use the lower.limits = 0 argument, it doesn't apply to the intercept for some reason. I can't find any documentation as to why or how to do it. Any ideas? Below is a reproducible example. As you can see there's still negative intercepts. # Load package library(glmnet) # Generate data set.seed(12345) n <- 1000 X <...
I ran a small study where all participants attended a psychological intervention, and completed measures at pre, post, and follow-up. Approx. 40 participants took part, of which approx. 5 did not complete the follow-up measures. I suspect the data is missing at random (i.e. participants forgot there was a follow-up, di...
Feeling a bit stupid but here goes: There are 6 people in this secret Santa thing, one of them is person X and another is person Y. All the names are put into a hat and each person comes up to take a name from the hat. If the name is their own, they put it back and redraw until it is someone else's name. Then, the next...
When performing regression with categorical variables, in order to avoid multicollinearity, it is necessary to drop one level. This is clear in fact: Let's assume I have a binary categorical variable (A, B) and the following data: id, cat, y 1 A y_1 2 B y_2 3 B y_3 4 A y_4 ... where id is just an index...
I am working on a mixed effects model in r where I have 2 treatments, 5 replications and subsampling with each site. I dont have access to the raw subsampling data though, I just have the mean effect size for each replication, number of subsamples at each replication, and pooled variance at each replication. I am exper...
I have a dilemma. I have a data set of different proteins from 4 groups of animals characterized by two factors: age (3 or 12 months) and presence of a certain gene (KO or WT). For each combination of factors (3m, KO; 12m KO; 3m WT; 12m WT) I have 6 measurements (i.e., 6 animals), except for one group of which I have o...
I have a time series at day level granularity: Date. Value 2023-10-01 78945 2023-10-02 78990 2023-10-03 79005 2023-10-04 78999 ... While there are some fluctuations, the overall trend is increasing and we want to estimate when this value will reach a threshold, say, 90000. While standard time series models like H...
Are Bayesian models subject to the same problems as frequentist ones, where we cannot run a bunch of different models due to Type I error? For example, let's say I have a large data frame on airplanes, dependent variable miles flown, independent variable total passengers, and a grouping variable of airline company (mad...
I am in the progress of calculating the sample size for a treated/untreated group comparison. The data provided is a mean infection rate (mean/100 years) of a literature recherche. Assuming the infections are poisson distributed. So the SD=sqrt(mean). The alternative hypothesis would be: Treatment lowers the rate of in...
I have $N$ Independent Random variables Laplacian distributions with $\mu=0$ and positive $b=\sigma^2/2$. I also have dominant random variable $(X_s)$ with Laplacian distribution with $\mu=0$ and $b=\sigma^2_s/2.$ $(\sigma^2_s \gg \sigma^2).$ I want to find the joint distribution for $$X= \sum_1^N X_i +X_s$$ My work:...
Decoder-only models do not use an encoder. Hence, they do not get the embedding from it. I went through this nice description of a decoder-only transformer -based model I do understand the training phase but need some clarification regarding one thing in particular. What is the word embedding that is being used? Does ...
I am a new learner of Fect package in R, see https://yiqingxu.org/packages/fect/fect.html. I try to use method to do counterfactual analysis of my DiD. I use unbalanced panel data, and the Matrix Completion method, but I got NA in F test when testing Pre-Trend(MC)? Does anyone know the reason? What should I do? Thank y...
In one article explaining MCMC, I once read the following statement. The idea of sampling methods is the following. Let’s assume first that we have a way (MCMC) to draw samples from a probability distribution defined up to a factor. Then, instead of trying to deal with intractable computations involving the posterior,...
I want to match in a certain order. I am aware of the argument order, available in package {MatchIt} - but this refers to the propensity score. However, I want to match in ascending order using a grouping variable named set. Thus, matching begins within the least value of set, 1:1, without replacement. Some IDs contrib...
I have already asked a similar question on this site (Correlating two variables / convergence); however, I feel like the way I wrote the previous one made it a bit too ambiguous, and on top of that, there are several aspects of the issue I'm facing that I left out from there. Feel free to remove that post. I have two v...
I found two papers that provide their results showing the significance of an increase in adjusted R-squared between two models statistically, with p-values, to show the improvement after adding a few more explanatory variables. One paper: https://pubsonline.informs.org/doi/10.1287/mnsc.1050.0366 The other paper: https:...
I am struggling to understand how parameter interaction contrasts play into model averaging. As I am new to Stack Exchange, I apologize if my question is in the wrong place or incorrectly asked. I will adjust as needed. I have found very few sources for understanding this topic, so any insight or directions to sources ...
I am working on my master's thesis and conducted two studies. The first study utilizes 3 groups. The problem is, that the group sizes are very small (n1 = 13, n2 = 14, n3 = 14). I want to test if there are significant differences in the independent variable (construct measured with 4 items with a 7-point Likert scale)....
I'm trying to run a linear mixed effects model using the nlme package using the lme() function with the txhousing data from the ggplot2 package in R. When I run the following model I get that some of the fixed effects estimates are zero. What can I do to remedy this? Model Summary Output I'm specifying the following mo...
I am working on a problem where I would like to estimate chargeback rates for online goods orders as a function of the proportion of orders that are approved (approval rate). The approval rate is a function of scores determined by a machine learning model for each order. The model tries to determine the likelihood of a...
I'm finishing a manuscript, but have one nagging problem which I'm unable to find an answer. Study has two groups which receive different procedure for a disease. After the procedure, one patient may face multiple different adverse events (complications). I want to test if there is a difference in total number of adver...
In a meta-regression model, a precision measure (SE or SE^2) is often included in the model along with covariates. Is the same true for subgroup analysis in a multi-level analysis wherein moderators are tested individually? For example: moderertorX <- rma.mv(MarginalEffect, Variance, mods = ~ SE + moderertorX, random =...
I have a presence/absence distance matrix based on eDNA sampling for certain species at ~30 sites. I would like to see if the volume of water filtered influences species detection, accounting for the fact that sites that are geographically close together are more likely to share common species. My first thought was t...
I was wondering where does the "sigma^2 estimated as 12.2" in the following example came from. I tried to compute by myself the variance of the residuals, however it seems I probably forgot something. Can you point out what am I missing? x=c(-2.6779495241255313, -1.2934144511034473, -0.2780248054025196, 0.7111655218852...
To train a glm model, I'm using using clinical data (~10 features) of a large cohort of patients and healthy subjects. I'm using a smaller test group (around 20 people) and predict their outcome (healthy or patient) based on the training model. Now, some of the patients in the test group underwent surgery and I want to...
The PIs are looking for biomarkers in pre and post-trauma individuals. I need to calculate a sample size for a microarray study of 10 genes and the top 5 up- and down-regulated proteins and metabolites. Each subject will be sampled twice: pre-exposure and post-exposure. I've calculated sample sizes of non-genomic studi...
I have a partial set of measurement data that is limited due to my tool's sensitivity. I know that the data is approximately normally distributed and I have a standard deviation from another data set that was within my measurement tool's range. Is it possible to use this limited data to estimate its mean? In one case I...
Can logistic regression predictor variables be nominal (like the charlson comorbidity index which ranges from 0-6)?
Suppose I have $Y=\beta_1X_1+\beta_2X_1X_2+g(X_2)+u$, where $E(u|X_1,X_2)=0$ and $S=g(X_2)+e$ with $E(e|X_2)=0$. I have a random sample $\{Y_i,X_{1i},X_{2i},S_i\}_{i=1}^n$. Suppose I first use a nonparametric method such as kernel or series regression to fit $\widehat{g}(X_2)$, and then consider the following two estim...
I have a person wearing 2 sensors. I create two models, one using Sensor-1 and other using Sensor-2 data I have multiple people repeating the same experiment with varying numbers. How do I a statistical comparison between the two sensors based on data availability and model performance?
The anova function doesn't allow comparison of glmnet models: data(QuickStartExample) x <- QuickStartExample$x; y <- QuickStartExample$y set.seed(11) fit1 = glmnet(x[,1:10], y, lambda=0.1) fit2 = glmnet(x[,11:20], y, lambda=0.1) anova(fit1, fit2) Error in UseMethod("anova") : no applicable method for 'anova' appli...
I'm currently reading p228 of The Element of Statistical Learning, which covers training error, in-sample error, and optimism. Let me quote some of the textbook contents as follows. The $Y^{0}$ notation indicates that we observe N new response values at each of the training points $x_i$. We define the optimism as the...
I have data consisting of catches of insects at weekly intervals over 2 years, repeated with the same methods at the same location 3 decades later. My main question is, have numbers (total and for individual species) changed over that time. Numbers in a catch can range from zero to thousands. Much of this variation ...
I have a table that looks something like this: group 1 group 2 group 3 group 4 region1 50 217 340 53 region2 32 23 36 42 :------- :-------: :-------: :-------: -------: male 40 200 36 42 female 42 40 340 53 :------- :-------: :-------: :-------: -------: city 45 42 63 34 The table has more demo...
I have a confusion matrix that is 4 class. Ground Truth Class A Class B Class C Class D Class A a b c d Pred Class B e f g h Class C i j k l ...
I am trying to design a neuron network for an scalable target assignment problem and use RL to train it by reward feedback. My major concern is making the neuron network somehow adaptable to different targets size (like 5-100). I have used self-attention to deal with the variable input size (the input: all resource-tar...
I am giving a talk about logistic regression and I am trying to go back to basics with explaining what odds are in the context of model estimation using logodds and calculation of probabilities which is what one is ultimately wanting with a logistic model. I can explain the concept of odds (and odds ratio) simply enoug...
I have sales data for which I would like to predict what will be the sales for each product at the product level, product store level, product store and region level etc. To solve this problem, I came across multiple tutorials for hierarchical forecasting such as listed here in Nixtla hierarchical forecast and here usi...
I have product sales data for which I would like to predict what will be the sales for each product at the product level, product store level, product store and region level etc. To solve this problem, I was reading up online about this topic and came across some useful basis tutorials for hierarchical forecasting such...
Let's say I have 2 sets of grades from students. Maybe I'm looking at gender differences or some such but the disaggregating factor could be continuous or multinomial. Group A: 3 D's, 5 C's, 13 B's and 2 A's. Group B: 2 D's, 3 C's, 7 B's and 11 A's. How do I perform a statistical analysis to determine whether the grade...
I'm doing a project where i study bending angles in plants, with different genotypes and treatments. I have done the experiment 4 times, so i have 4 different batches. I'm trying to take into account the batch effect in my analysis. When doing a three-way ANOVA with interaction in R (model formula : aov(Angle~Genotype*...
From Figure 2 of Ferreira et al. (2016) "Graphical representation of chemical periodicity of main elements through boxplot", we can see the taxonomy of some common cases of symmetrical and asymmetrical distributions, with their corresponding boxplots: Now, if the box of the boxplot is symmetric (i.e. same distance fro...
Poisson regression is commonly used to analyse count data. However, when we deal with rare events it does not seem to be appropriate any more. At least, graphical criteria to assess the model fit like Pearson residuals or deviance residuals are inappropriate. How do we have to deal with that? For example, consider the...
I am running 2sls. Dependent variable - y Independent variable - x Instrumental variables - z1, z2, z3, z4 Interaction terms - xz1, xz2, xz3, xz4 Control variables Thus, the first stage of 2sls: x regressed on z1, z2, z3, z4, xz1, xz2, xz3, xz4. Then the second stage: y regressed on predicted values of x, z1, z2, z3, z...
What type of model for word tokenization in a group of words is good?? I want to tokenize skills in a group. There are multiple groups, and I want to predict group number using a single skill. I have used BERT but I think it's mainly used for sentences not list of words. Can you suggest better model??
I have a bunch of iid random variables $X_i\sim q$ and I have defined other random variables $A_i = a(X_i)$ and $B_i = b(X_i)$. Then I bumped into the following expression $$ \begin{align} \mathbb{E}\left[\left(\frac{1}{N}\sum_{i=1}^N A_i\right)\left(\frac{1}{N}\sum_{i=1}^N B_i\right)\right] &= \frac{1}{N^2}\mathbb{E}\...
I am running a logistic mixed model with a binary outcome (correct/incorrect). I have two fixed effect predictors: Condition (0, ‘low’ vs 1, ‘high) Sumspq (a continuous questionnaire score) There is a random intercept for participants. Participants complete trials in each condition and each have a single sumspq score...
I have two hierarchical models with continuous variables. In the first block, one of the variables is significant. However, in the second block, when I add three more variables the first variable loses its significance. I've checked for multicollinearity using VIF and they're all less than 5. What else could be contrib...
I've conducted a four-phase experiment with physiological measures on two groups (Controls vs. Patients). After applying a Mann-Whitney test to examine differences between groups for each dependent variable at each phase, I found some significant results. However, when I attempted to build a linear mixed model (LMM) in...
I'm running a longitudinal study comparing patients with a lung growth which either developed into cancer (cancer_status = 1) or didn't (= 0). Here is some example randomly-generated data in the same format as the study: patient_ID* cancer_status time_to_outcome cpg_1 cpg_2 1 1 -532 0.49578632 0.9301869 1 1 -...
I am going through Expectation Maximization (EM) algorithm derivation for Gaussian Mixture models. I understand it except for a small detail. So, the general idea of EM is to maximize the expectation of complete log-likelyhood of the data $\log L(\theta;\mathbf{x},\mathbf{Z})$, where $\mathbf{x}$ is observed and $\math...
I have fitted a GAM model by using the R package mgcv via the expression model <- gam(formula, data, family = binomial()) The dimension of the basis used to represent the smooth terms is k = 10. Hence, having 9 covariates, I obtained 73 coefficients of the type Intercept, s(X1).1, s(X1).2,...,s(X9).9 (coming from the ...
I'm looking at a collection of very similar dichotomous outcome studies, and in order to assess the relative risk of an intervention and account for study variability, I believe I should use the Cochran-Mantel-Haenszel relative risk to produce a weighed estimate, of the form $R_{CMH} = \frac{\Sigma \frac{a_{i}(c_{i} + ...
I am trying to understand how a CART tree grows, So I am growing a tree step by step, and I am finding a strange (?) behavior. Let me show this by means of an example: I will use the titanic data set and the rpart package to grow the tree. Here is the code: ####################### ###load packages #####################...
How do I choose a sample size for a multiple factors irrigation experimental research? Here is what I mean, I want to compare the effect of precision irrigation and conventional irrigation on crop yield and irrigation water management. The research involved three factors with two levels for each, irrigation type(drip-i...
Let's say there is this questionnaire-based study: A restaurant serves these 2 categories: Food ("f") and Drink ("d"). Each respectively has hamburger (f1), fries (f2), and fried chicken (f3); coffee (d1), tea (d2), and juice (d3). 15 testing customers tasted these 6 items. After finishing an item, each tester enters h...
I have multivariate time series with mixed data types, which includes continuous variables, binary variables, and variables with bimodal distributions. I need to identify distinct states or epochs in this time series. So far I used sliding window to smooth the scaled data and applied k-means clustering (in the picture...
I'm trying to build a weather forecasting AI. I have a dataset that contains the peak temperatures for each day. I have trained it with MSE as the loss function and it has worked fairly well. I do notice however that it tends to prefer "safe" predictions, i.e. predictions near the mean temperature for the period. I'm a...
I am reading a slides about correlated random effects here. The baseline model is $$ y_{it} = \eta_t + x_{it}\beta + c_i + u_{it} $$ In page 5, it assumes that we randomly draw sample $i$ from the population. Thus the assumption is saying there is no cross-cluster correlation. Do I understand it correctly? In page 9, i...
I'm reading the paper "Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift" by Ioffe and Szegedy, which discusses Batch Normalization as a way to reduce the internal covariate shift in the activations of the NN layers. Although the paper includes a graphical representation compa...
I (computer scientist) was discussing with a friend (mathematician) about what is the best way to measure the sparsity of a neural network. Consider a very simple model with two layers: $\hat{y}=\sigma\left( B \cdot ReLU(A\cdot \mathbf{x})\right)$, where $ReLU$ is the rectified linear unit activation and $\sigma$ would...
Consider the probability distribution \begin{align} p(x) = \frac{1}{Z} x^2 e^{-x^2 / 2} \end{align} where $x \in \mathbb{R}$ and $Z$ is a normalization factor so that $\int_{-\infty}^{\infty} dx \, p(x) = 1$. I want to use a Markov Chain Monte Carlo algorithm (e.g. a Metropolis algorithm, for which we don't need to kno...
The point of regularization methods (for example ridge regression) is to penalize large ordinary least squares estimates. We know that variance-covariance matrix for OLS estimates can be decomposed using the spectral theorem into \begin{align} \Sigma_{\hat \beta} = \sigma^2 (X^TX)^{-1} = \sigma^2 U\Lambda^{-1} U^T \end...
First off, sorry for the convoluted title, but I didn't manage to come up with a shorter one. Background: I have some 2D particle tracks that I would like to fit with polynomials. The tracks are parameterized by time, so we can fit their coordinates $x_i(t)$ and $y_i(t)$ independently (I believe). For simplicity let's ...
In a much larger dataset, I am getting an error saying the variable is not available for a mgcv model fit. I've been able to reproduce with a toy example, below. For context, the variable causing the issue is a data indicator flag (for genuinely undefined / non-existant data measurements, as per Handling NAs in a regre...
I'd like to compare performance between two models that use different sets of predictors. I'm trying to implement what Roland suggested I did in his answer: set.seed(42) data(QuickStartExample) x <- QuickStartExample$x; y <- QuickStartExample$y errors <- data.frame(err1=rep(NA,10), err2=rep(NA,10)) for (i in 1:10) { ...
I'm new to the world of mixed-effects models and trying to understand what method/results to report for my given data/question. I am trying to determine the coefficients of a regression model but have three sub-populations within the data. My question is 1) whether y is predicted from x at a likelihood much greater tha...
I have a linear mixed effect model I am fitting using lmer: lmm <- lmer(output ~ flag + (1 | subject), data = data, REML = TRUE) where output is a continuous, real-valued number, flat is a binary, categorical predictor, and subject is a discrete, categorical ID#. I am attempting to check that I am not violating the as...
With lm models I can construct a null model like this: lm(y ~ 1, data=df) What would the equivalent be in glmnet? The idea would be to compare the performance of my actual model with that of the most basic model I can define.
Suppose I have 3 predictors to predict stock returns. 1 of the 3 is known for ages and is still doing well. The rest 2 are newly found ones. So in a crude portfolio construction fashion, I'd do $s = 0.8s_1 + 0.1s_2 + 0.1s_3$ and then take position proportional to $s$, to reflect that I'm more confident in the first fac...
Suppose I have an waitlist of patients waiting to be served. Each patient has a benchmark number of days that the service should be completed by as a goal (not a hard constraint of the modelling). Each day more patients are added according to a stochastic process that depends on calendar-based seasonality (e.g. day of ...
What is the difference between $$ \frac{exp^{-\beta_j}}{1+exp^{-\beta_j}}$$ and $$ \frac{exp^{\beta_j}}{1+exp^{\beta_j}}$$ From an application perspective ?
Suppose that we have two continuous random variables $Y$ and $X$ and a discrete random variable $W$. The discrete variable $W$ can have only three values 1, 2, or 3. That is, $Supp(W)=\left\{1,2,3\right\}$. Next, define a binary variable $D=\mathbf{1}\left[W>1\right]$. In this setup, I am considering a linear model: $$...
Suppose I test two subjects on $n$ pass/fail (Bernoulli) tasks, $k$ times each—for a total of $n\cdot k$ tests per subject. I want to compare the subjects to see if there is a statistically significant difference in their ability to pass a random task. Many tests, such as the two-proportion z-test, are eliminated becau...
we have created a software for a given task. What we wanted to achieve is 1) to speed up the process 2) without lowering the quality of the work. Now I would like to run a test to see if 2) stands. My question is how should I go about this? First I thought I should do a one-tailed paired t test. If I'm correct, for one...
I classify pairs of entities, let's say dog-cat pairs, whether there is association between them (positive class) or there is not (negative class). I have a moderately sized positive dataset (~130k pairs) to which I use negative sampling to create the same number of negative pairs by randomly recombining the dogs and c...
I am new to running survival analyses. I am attempting to construct a cox regression using the coxph() function. I want to include a frailty() term for mixed effects, but I also need to include a time interaction (tt()) for one of my categorical predictors, as this variable breaks the proportional hazards assumption. T...
Let's consider the interquartile range (IQR), the standard deviation (SD) and the mean absolute deviation (MAD). We know that "one of the most common robust measures of scale is the interquartile range (IQR)", while the "standard deviation, is greatly influenced by outliers", with "a breakdown point of 0". Also, "The m...
Sometimes you have a problem that presents as a multiclass problem in your data, but you only care about the result of a binary classification. E.g. you have a manufacturing process which can result in multiple different anomalies, but you only care if the produced part is good or scrap. What I've seen done before is t...
Ive been having some trouble determining which analysis to run for a project of mine looking at the relationship between cycling and env variables. I would like to include two different types of statistical analysis, so the question becomes which ones. I am interested in using a predictive model as well, and would appr...
Recently, I compared two multilevel models of the same data: One with fixed slopes: R Code: lmer(RT ~ Kontrast + (1|ID) + (1|Satz), data = reading_times, REML = FALSE) and one with random slopes: lmer(RT ~ Kontrast + (Kontrast|ID) + (Kontrast|Satz), data = reading_times, ...
How to prove that OLS estimators do not depend on other parameters, given the same variables are included in the regression? I generate some random data for 30 observations and 4 variables $x_1,x_2, x_3, x_4 $, then generate a dependent variable $y$ based on these variables plus an error term: $ y = \alpha_1 x_1 + \alp...
In [The m-connecting imset and factorization for ADMG models] (https://doi.org/10.48550/arXiv.2207.08963), it was mentioned the notation of an "elementary imset". The definition of elementary imset is: If $\langle a,b \mid C \rangle \in J(V)$, then the corresponding elementary imset $u_{\langle a,b \mid C \rangle}: P(...
Is It always better increase the mutation probability if the problem is more complex? I'm doing different experiments trying to check if a higher mutation probability helps to find a solution when the problem is more complex. In this case i have a sphere función with 5 dimensions as "simple problem" and a Schwefel func...
I am currently facing a challenge in analyzing customer satisfaction data from an electric drive production facility. During a specific period of the month, we encountered technical issues with our machinery, resulting in lower-than-expected customer satisfaction values. To provide context, we operated optimally from t...
So I have a Probit model that uses weights w, which I got from propensity scores, but I can't find any information on how to represent the Weighted Probit regression. All the information I could find was about normal probit regression... Ideally I would like to get a classical probit representation, something like this...
I have a fairly complicated problem and I would like some advice on how to properly assess the results. I have a series of 12 connected 'zones' that have a specific numerical value at any given point in time, either negative or positive. I have some forecasted values for each zone and I have some realised values. The ...
If I have a joint pdf of multiple random variables, say 3 for simplicity, $f_{X,Y,Z}(x,y,z)$, is it true that the marginal density functions derived from that joint probability distribution ( $f_{X}(x)$, $f_{Y}(y)$, $f_{Z}(z)$ ) are not guaranteed to be valid probability density functions (integrate to 1) in all cases....
suppose I have two parameters: $(\mu_{1},\Sigma_{1},\alpha_{1},\mu_{2},\Sigma_{2})$ and $(\mu_{1},\Sigma_{1},\alpha_{1},\mu_{2},\Sigma_{2})$ and suppose I mapped them to PDF using the gaussian mixture model with one component, let the pdfs are $P_{1}$ and $P_{2}$ so is it possible that if both the parameters are differ...
Suppose, I toss a fair coin n = 10 times and get 7 heads and 3 tails. The probability of fair coin is p = 0.5. Now, that the beta distribution is a conjugate prior of the binomial likelihood. I used the probability density function equation for beta distribution, as given in Wikipedia (https://en.wikipedia.org/wiki/Bet...
In a simple regression context: $$ y = \alpha + \beta x + e $$ We can estimate beta from: $$ \hat{\beta} = \frac{cov(x,y)}{var(x)} = \rho_{xy} \frac{\sigma_y}{\sigma_x} $$ This last decomposition is useful in empirical cases as it allows to calculate correlation separately from standard deviation. In my use case, for e...
I'm working on a challenging machine learning problem, where I need to find the expectation of the likelihood of one Gaussian, given the parameters of another. Apologies if any of the notation is rough, this is new territory for me. More precisely, given two independent Gaussian distributions. $$X \sim \mathcal{N}(\mu_...
I was wondering which book you recommend for a treatment of panel data that is both rigorous and intuitive. What do you recommend among Wooldridge(2010), Baltagi(2021), and Hsiao(2022)? I studied static panel data models during my master's classes using Wooldridge. The latest version of Wooldridge is from 2010. Is it s...
From formal statistics classwork and some research experience, I understand that it is widely considered standard practice to apply transformations to predictor variables for conducting significance tests in A/B test settings if their sampling distributions don't satisfy conditions of normality. However, based on some ...
In Section 4.1 of "Intriguing properties of neural networks" by Szegedy et al., the authors define the optimization problem they solve to find adversarial examples in a deep neural network. I am a bit puzzled by the second constraint: why is it necessary to require (2) $x+r \in [0,1]^m$? The authors say that solutions ...
I am using a LSTM to make a multi-label classifier. However the problem is, the validation accuracy fluctuates between 0.7 and 0.3. I have about 4367 samples (80-20 validation split) and 240 sample length. My current model is quite simple, just 1 LSTM layer and 1 output layer. I have tried with more complex models for...
I have been reading about alternatives to assuming an AR(1) covariance structure for mixed models with repeated measures (in time). In particular I have heard about Toeplitz and Ante-dependence structures (that are both available in SAS but not too many others as far as I know), as well as homogeneous/heterogeneous ver...
Y is the dependent variable, X is the independent variable, and C is a control variable. However, since X is endogenous, I plan to use an instrumental variable Z for X. From what I understand, if I conduct a two-stage analysis, in the first stage I predict X using C and Z to obtain an estimated value of X, and in the s...