instruction
stringlengths
9
38.7k
I haven't read anything that says you shouldn't have negative values in your time series training dataset, so I was wondering if there are any consequences for having negative values in my training dataset?
I have want to test the cointegration of interest rates in three time series: a group of small open economies, US, and Erozone. I use daily data, and assume that the small open economy has no impact on the other two series. I know two tests for cointegration: the Engle-Granger test, and the Johansen test. All examples...
I have a dataframe with multiple numeric predictive features, and one binary target feature. 63% of the data belongs to class 0, and the rest to class 1. So the data is imbalanced but not severely. I aim to build a classifier, using Random forests or xgboost. I'm using cross validation with GridSearchCV, I tired with a...
For example, I have a data for N countries where quantitative values for men and women are given. I ran PCA separately for the data from each country. PC1 and PC2 explain most of the variance, so I use them for further steps. I want to test how similar or different the groups - i.e. men and women - are, in respect to t...
I have 15 sets (call them A-O) containing 9 scores each (call them 1-9), so 135 different scores. Those 135 scores have a basically normal distribution. I’m taking those scores and adding 9 of them together, three each from three different sets, to get a total score. So scores 1, 2, & 3 from set A, scores 4, 5, & 6 fro...
So for my dissertation I need to discuss the impact of presidential campaigns on stock price volatility and I need some advice on which test or methodology to use? (not very sophisticated if possible). Speaking with my supervisor, I know my independent variable will be the before/after of the launch date (0 for the 60 ...
I have the following model. $$ z(k) = a(k) e^{i \psi(k)} + n(k)$$ The distribution of $a$ is known to be a Rayleigh and $\psi$ is known to be uniformly distributed. The noise $n$ is a white Gaussian random noise with variance $\sigma_n^2$. $$ a \sim \frac{a}{\sigma^2} e^{-\frac{a^2}{2\sigma^2}} $$ $$ \psi \sim \mathcal...
If $m$ is the VC-dim then it means there is no configuration of $m+1$ datapoints we can shatter. But there could be configurations of $m$ datapoints we cannot shatter. Hence my confusion and my question: Is having an infinite VC-dim equivalent to say our hypothesis class is a universal approximator (contains all functi...
I have the abundance of different species of birds at various locations in a country. From this data I can compute the Bray-Curtis dissimilarity matrix. This question I want to be able to answer from this is whether the dissimilarity matrix correlates better with the observed mobility of birds, as opposed to the geogra...
The example shows that knowing the design matrix of correlation parameters is sufficient to specify the working correlation. genZcor {geepack} R Documentation genZcor Description constructs the design matrix for the correlation structures: independence, echangeable, ar1 and unstructured The user will need this functi...
I have some results from a recent paper and I want to make sure my reasoning is correct in its interpretation of the coefficients. In order to disguise the inflammatory nature of the model, I will relabel variables with synonymous, yet still relevant, labeling. I have the following model specification: $y_{idrt} = \alp...
Var1 <- c("Yes", "No", "Unsure", "Yes", "No", "Unsure") Var2 <- c("Observation 1", "Observation 1", "Observation 1", "Observation 2", "Observation 2", "Observation 2") Freq <- c(719, 212, 33, 624, 238, 102) df <- data.frame(Var1, Var2, Freq) I have the above repeated measures, paired data and I'm working in R. ...
I have a set of time series from different runs of a computational model. I know that the computational model is highly historical in the sense that the state early in a trial heavily influences (in a non-linear, difficult to summarise way) what the state will be later in that same trial. Accordingly, I understand the ...
n the book "Introduction to Statistical learning with R" https://hastie.su.domains/ISLR2/ISLRv2_website.pdf , authors say on page 247 - "There are very efficient algorithms for fitting both ridge and lasso models; in both cases the entire coefficient paths can be computed with about the same amount of work as a single ...
For example, suppose we want to maximize the 3 expressions on the right, subject to some constraints. To give some context, this is a problem about generating prototypes in unsupervised learning. In our example, we have 3 collinear centroids (representing 3 different classes) positioned (1,1), (7,1), (9,1) in the 2D-pl...
I am currently stuck on how to correctly formulate the model for Confirmatory Factor Analysis(CFA). The general formula is $Y = \Lambda \xi + \epsilon$. According to Wikipedia $Y$ is a $p \times 1$ matrix of observed random variables. $\Lambda$ is $p \times k$ matrix where $k$ is the number of latent factors. In my cas...
I have data from six different experimental groups that were collected by two different companies (three groups were collected by company A e the other three by company B). I'm interested in compare a variable X present in all of the groups. But I need to check if eventual differences in sex, age, race and income(six c...
Let's say I have like 300 probes. For Probe 1, you can see the treatment effect on Class 2 but not the others. In probe2, we can see treatment effects in both Class2 and Class3 which is no good. Out of the 300 probes, I would like to find a pattern (specificity) like probe 1 (effects on one class but not the other). W...
Assume we have two independent, random variables, $X$ and $Y$ which follow the same Pareto distribution, i.e.: $f(x) = \frac{1}{x^{2}}, x > 1$ Given that - what would be the joint probability $P(X + Y < a)$ of those variables? And generally speaking - how to obtain the CDF of $S = X + Y$?
It is commonly stated that if $X_i$ are iid $N(\mu, \sigma)$, then with $\hat{X}$ the sample mean, and $\hat{S}$ the sample error (sample standard deviation), then $\frac{ \hat{X}-\mu}{\hat{S}/\sqrt{n}}$ follows a t distribution with $n-1$ degrees of freedom. e.g., wikipedia link states it, and another Wikipedia link s...
So I have a test that you only get right if you guess correctly three independent variables. Guess any of them wrong or even any combination of the variables wrong and you loose. My question is what model do I try to make sense of this and how do I try to find a correlation between the independent variables? Context: T...
I want to merge two different distance functions for one set of observations $(x, y)$ to use in a gaussian process regression. I have the covariance matrix $\Sigma_1$ from distance function number 1 and covariance matrix $\Sigma_2$ can i write $$Y \sim \mathcal{N}(0, \Sigma_1 + \Sigma_2) $$ or do i need some sort of we...
Is it possible to know the actual covariance matrix and estimate betas using $\Sigma$, but fail to defeat the problems caused by heteroscedasticity and autocorrelation and have biased or high-variance, non-consistent beta estimator, non-efficient estimation?
Let's say I have a measurement of height of 200 individuals as $y_1$ and fit a simple linear regression model as: $y_1 = x_1 + x_2 + \epsilon_1$ where $x_1$ and $x_2$ are some subject metadata I would use $R^2$ or $R^2adjusted$ to quantify the variance of $x_1$ and $x_2$ explained by $y_1$ Let's say I have a new meas...
This is a repost from StackOverflow, I was advised to post here instead, thank you in advance! I've seen many lmers , but not so many of them of longitudinal data (which is my case right now). The thing is, I have scores (outcome) collected at 2021 and at 2022 (predictor: Year) and in two languages (Spanish and English...
Currently looking at data in which each participant recorded their level of pain from 1-10 in terms of severity for both pre and post operation, for 3 different treatments. Such as the table below, except i have 100 participants. What kind of test(s) should i use here to see if there are differences between the effecti...
When writing a deep learning paper, I need to train several CNN models and compare their performances. They are from different architectures so different designs. I'm wondering should I use the same learning rate for all models when training (I've made sure they all have the same batch size, same loss function, etc), o...
Given $\Pr(A) = 0.7$ and $\Pr(B) = 0.9$, what is the highest possible value of $\Pr(A \cup B) - \Pr(A \cap B)$ ?
I recently learned about the gamblers fallacy and I understand the idea that past independent events have no bearing on the odds of the next coin flip. Specifically what cleared this up for me is that The probability of 20 heads, then 1 tail is $0.5^{20} \times 0.5 = 0.5^{21}$ The probability of 20 heads, then 1 head i...
Suppose I have 3 hidden states. I want to get the probability of the last element belongs to state 2. How do I achieve this probability? I have looked at the forward algorithm, It doesn't seem like the sum of probability of being state 1,2,3 equals 100%. Which algorithm is proper for inference?
Someone has done a survey, asking a list of $N$ people if they were married ($M$) or single ($S$). You get the result as a table with two columns, 'Name' (text, all unique values) and 'Status' (categorical label, $M$ or $S$). However, there is a doubt that the 'Status' column may have been randomly shuffled. You have t...
I am trying to run a simple regression using a categorical predictor for the first time. I have the following model: lm(income ~ gender, data = df) I have two questions: What are the assumptions that need to be met? I know when the predictor is continuous there are assumptions of linearity, normality of residuals, hom...
I have a question about differential function. When I have one database with x and y, how can I find the slope in specific point? For example, x = c(3935, 3992, 4079, 4100, 4156, 4169, 4197, 4217, 4246, 4262, 4280, 4287, 4313, 4328, 4334, 4352, 4371, 4377, 4397, 4408, 4416, 4430, 4444, 4461, 4467, 4483, 4496, 4510, 452...
I understand the individual measures of skewness (how asymmetric a distribution is) and kurtosis (how "large" the tails are in a distribution). For this specific case, I am referring to Fisher Skewness and Pearson Kurtosis: $$\tilde{\mu}_3 = E\left[\left(\frac{X - \mu}{\sigma}\right)^3\right]$$ $$\tilde{\mu}_4 = E\left...
For me, the usual definition of the Herfindahl index is this one. See also this question. Here, on page 26, it is defined as a function of the coefficient of variation: Are these definitions of the Herfindahl index related to each other? Does anyone know an alternative source for the latter definition? Thank you.
In GRU units, I don't understand the effective difference between the update and reset gate, $z_t$ and $r_t$ respectively. \begin{align} z_t &= \sigma_g(W_{z} x_t + U_{z} h_{t-1} + b_z) \\ r_t &= \sigma_g(W_{r} x_t + U_{r} h_{t-1} + b_r) \\ \hat{h}_t &= \phi_h(W_{h} x_t + U_{h} (r_t \odot h_{t-1}) + b_h) \\ h_t &= z...
Let's say we have a Factor Analysis model with a latent variable $\mathbf{z}_t \in \mathbb{R}^k$: $$x_t = A z_t + \epsilon_t, \qquad \epsilon_t \sim \mathcal{N}(0, \Sigma)$$ Let $A \in \mathbb{R}^{g\times k}$, and $\Sigma \in \mathbb{R}^{g\times g}$ and $\Sigma$ is diagonal. Many sources say that the model is not ident...
I was trying to assess stability using a stationarity test. If an exchange rate is fix, I thought, it must be stationary around its parity. Unfortunately I realised this approach does not work. Hong Kong has a fixed parity with the dollar, 7.8 HKD per USD. However, the monetary authority intervenes only if the exchange...
I'm finishing my masters' project and have some results that are confusing me! I ran a repeated measures anova as 2 (valence - neutral or negative) x 4 (Task 1-4) This showed a positive main effect of valence (expected) and a significant interaction of cue type. Pairwise comparisons showed that this interaction was sig...
I have a classifer (one/zero labels) that was trained and hypertuned by the book. When the model was ready, I applied it to the production data: real-time and unlabeled. After a short period (a few days); the real-time data became historic data and labeled. I checked the model real-time data (now, historic data) predi...
I have n results of nested sampling analyses from prior distribution MCMC. Every one has its own estimation of marginal likelihood & its standard deviation. The analysis has a hyperparameter – subchain length. It defines a minimum number of links that separates two states of interest, & is necessary to enforce the ind...
I have a classifer (XGBOOST) that should predict a user that subscribes to a website. The dataset that the model is trained on is tabular and labeled. Each user (observation) has a single row in the dataset. However, I check the user behavior in the last weeks before his last action, and each week has the same features...
If the joint density of $X$ and $Y$ is bivariate normal with $\mu_X = \mu_Y = 0$, $\sigma_X = \sigma_Y = 9$ and $\rho = 0$, find $P(X^2 + Y^2 \leq 36)$. I think that the double integral to evaluate is $\int_{x^2 + y^2 \leq 36}\int \frac{1}{2\pi}e^{\frac{-1}{2}(\frac{x^2}{81} + \frac{y^2}{81})} \mathrm{d}x \mathrm{d}y$....
Suppose a student starts with test A, and will proceed to test B, then test C if he passes. The probability for the student to pass test A is 30%. The probability for the student to pass test B is 20%. The probability for the student to pass test C is 10%. The student has maximum 20 tries to attempt for the tests in TO...
I am trying to determine whether it is statistically sensible to model a single outcome variable as predicted by a predictor with a high number of repeated measures. For example, the outcome variable for each subject is a single numeric value. The predictor variable has 80 values related to the one outcome variable. Th...
Sparse-group lasso is defined as $$\frac{1}{2n}\left\|y-X\beta \right\| + (1-\alpha)\lambda\sum_{l=1}^m \sqrt{p_l}\left\|\beta^{(l)} \right\|_2 + \alpha \lambda \left\| \beta\right\|_1$$ In the SGL paper, the subgradient equations are shown in terms of group $k$, given by $$\frac{1}{n}X^{(k)\top} \left(y-\sum_{l=1}^m X...
We have data from a survey in which participants are asked about the probability that an event takes place. The question is probabilistic and asks the respondents to assign probabilities to pre-specified ranges. An example of such a question is: What would you say is the percent chance that, over the next 12 months, ...
I have limited data, around 50 sentences per class and around 70 classes. Due to this reason of having less data, sometimes some sentences get classified in a class, which are similar but not belonging to that class. Is there any architecture or method by which I can further fine-tune the model to not classify a senten...
I have a cheap thermometer and I would like to calculate its difference from a high-quality reference thermometer when measuring the same quantity, say the temperature in an oven. Is the recommended form of the difference, in terms of the sign and normalization of the error, as follows: 100*(Tcheap - Treference)/Trefer...
Since the variance of the sample mean estimator decreases with $n$ $$ Var(\bar{X}) = \frac{\sigma^2}{n} $$ does that mean that it becomes more efficient as the sample size grows?
I'm working on a difference-in-differences (DiD) analysis for a healthcare study measuring # hospitalizations (X) per # eligible months (Y). Simplifying the math a bit - my actuary colleagues like to measure the DiD in the aggregate as sum(X)/sum(Y) = E(X)/E(Y) vs. the member-level rate I prefer (the average treatment ...
We have an experiment where we are splitting an audience into 4 equal groups of 2000 customers each. 3 will receive an email but 1 group won't received anything. The goal is to test if they will initiate a first payment event. We expect the data at the end to look like this: Groups Audience size Event count Gro...
I'm measuring counts of birds as a function of the time (in months) across three parks (NP), as well as the presence of carcasses and season. I'm trying to find out whether the population is decreasing. I fit an offset of the length of the transect. My interpretation of the effect of date in the park called Ruaha is: (...
I'm dealing with anomaly classification in multivariate time series. However, in my problem, the different classes of anomalies can be detected when considering different time windows. That is, some classes can be detected by considering just a couple of hours, ad others can be detected only by considering a week. What...
I am running an experiment where I am collecting data for 3 x-values, say X = [x1, x2, x3] (each x > 0). For each of the x value, I am collecting 100 y values (it can be as high as 500 y values per x), i.e., Y = [[y1_1, y1_2, ..., y1_100], [y2_1, y2_2, ..., y2_100], [y3_1, y3_2, ..., y3_100]]. I like to fit the data us...
I have a strange situation with a linear mixed model I can't make any sense of. I have an LMM specified with one categorical predictor (cat_pred; with the three levels A, B, C) and one dependent variable (DV) where I specified random intercepts for my participants (par). The model looks like the following: lmer(DV ~ ca...
Performance during the training of a model for time series forecasting can be computed simply considering the difference at each time $t$ between the real value $y_t$ and the model predicted value $\hat{y}_t$. The prediction of $\hat{y}_t$ can be made considering as model input the real $x_t$, corresponding to $y_{t-1}...
What is the objective for minimization for a maximal margin classifier with quadratic decision boundary of the form $ x^{T}Ax + b^Tx + c =0 $?
Given $X_i \sim N(1,1)$ for $i = 1,2$. Determine $c$ so that $E[c|X_1 - X_2|] = 1$ I am a bit confused whether $c$ should be $\sqrt\pi$ or $\frac{\sqrt\pi}{4} $. If we take $Y = X_1 -X_2$ then $Y \sim N(0,2)$. Then we would have $$ f_Y(y) = \frac{1}{\sqrt{2\pi\sigma_y}}e^{-\frac{y^2}{2\sigma_y^2}} = \frac{1}{2\sqrt\pi}...
I'm interested in learning about the potential impacts of working with a reduced dataset (while keeping a sufficiently high sample size, >30 obs). The data collection process can be expensive and I'd like to know how would one test if working with less data is just as good. Specifically, is it wrong to compare a full d...
Referring to the question in the link below : How can I use Propensity Scores to adjust for survey non-response bias? I read the paper published by Lee and Valliant (2009) and the pew research method article. To make things clear, when dealing with multi-stage survey designs, the best weighting method with the least bi...
I am looking at differences in torpor bout lengths (hibernation times) for bats and my main grouping factor is WNS (disease) status. My study area is used for one analysis, and I basically want to do a two way ANOVA or ANCOVA when comparing to outgroups. In past published research, the outgroups, an ANCOVA was used wit...
I have seen various multivariate statistics book covering Hotelling $T^2$ statistics. However, when reading medical journals and papers, it does not show up anywhere. Q1:Is this test of any practical value? All I can tell is that it detects multivariate mean of multi-groups equal to something. I could also use ANOVA co...
It is claimed (in a comment here) that "The advantage of the multivariate test is that it takes advantage of the correlations between the marginal distributions". Why this is the case for Hotelling's $T^2$?
I have a classification task to predict a binary outcome on a balanced data set, N=138. To make sure nothing fishy was going on in my feature set (overfitting, high correlation), I ran a PCA on the features I generated, and chose the first 2 PCA components for all the modeling/graphing below. To make the graph: Startin...
I am trying to determine if the hospital I work at should open a new unit for admissions. I intend to do this by correlating patient assigned unit and length of stay in days. So far, I have determined that the continuous dependent variable (length of stay in days) should be log transformed, as well as the continuous ag...
I am working with some time series data produced by a sensor at a rate of 1 sample per second, and before I calculate an average for 1 hour, I want to make sure that I have at least 60% of data, but I also want to ensure that the data is sufficiently spread out so that it is not the case that my 60% of data only occurr...
I have fit a multilevel gam (mgcv) that includes a three-way interaction between a continuous variable (prev.rain) and two categorical variables (level and roya_present). The model also has some random effects (quadrat, plantID, and year) as well as a global and group-level smoothers based on month and month/level, res...
I have done two time-dependent cox regression. My time to event is time to disability, and exposure is disease (0/1). I have done a cox regression considering disease as time-dependent covariate. I want to know if my interpretation below is correct? if not what is the interpretation of the given HR? 1) HR = 1.5 , 95% C...
How would gradient descent work in a multilevel regression setting? This is fairly clear to me in a standard linear regression formulation, but haven't been able to wrap my head around parameter updates in hierarchical models. In short, I'd like to be able to make sequential updates to an existing model in a online-ish...
I am using SVM regressor models to fit some chemical data related to spectroscopy (I cannot say exactly what data because it is an ongoing research in my group). To combat overfitting, I have used 5-fold cross validation to optimise the hyperparameters with SVM (and other models). The best result is given by SVM. Howev...
I'm working with the data of the real masses of exoplanets published in the catalogues (NASA, exoplanet.eu). Those catalogues update almost everyday by adding new exoplanet data or correcting some of data already published (because of the precision or anything else). I need to set the probability density function (PDF)...
I'm using scikit's Gaussian Mixture to obtain a 2 component mixture model for some 1-D data. Having obtained a model, I want to test how well a different data set matches this mixture model, or more precisely, with what probability is some data taken from this mixture model. I've tried using gmm.score() in order to obt...
I am a Geoscientist working in the field taking groundwater measurements every day. I frequently work with groundwater monitoring wells as an integral part of my day. For those of you who do not know what a monitoring well looks like, I have included a picture here. (source: water.ca.gov) We use an electrical metal ta...
One way of describing a seemingly unrelated regression model is: $y_n \sim \beta x_n + \epsilon_j$ where $\epsilon_n \sim MultivariateNormal(0, \Sigma)$. We could rewrite this $y_n \sim MVN(\beta x_n, \Sigma)$. When $x$ captures outcome-specific intercepts (no covariates), this looks an awful lot like a confirmatory ...
I want to assess whether the rule of 10 events is in my logistic regression model. My sample is small and I have overfitted my model which goes against the rule. However, I would like to present this graphically plotting the number of events per variable versus the estimate (OR) How can I come up with this plot?
I'm performing an econometric analysis and all my variables (in daily frequency) are stationary, so I've decided to use a VAR model. After analyzing the data in Stata, it suggests all variables should have a lag of 1 day except one (let's call it Z), which should have a lag of 4 days. When constructing the model, shoul...
Let's say we have a model as given below: $Y_1 = \beta_0 + \beta_1 X_1 + \beta_2 X_2+ \beta_3 \frac{X_2}{X_1} + \beta_4\frac{X_2^2}{X_1}$, $R^2= 0.98$ Here, $X_1$ & $X_2$ are positive integers. The value of $\beta_3$ and $\beta_4$ are high compared to $\beta_1$ and $\beta_2$. If we fit multiple regression model for $Y...
I am an MSc student conducting a study on men’s pupillary responses to various sexual stimuli. Because pupils vary in size and degree of dilation, I’ve needed to standardize dilation measures within participants. My approach is as follows: (x - Baseline)/SD(x) I did this individually for each participant’s data. Howeve...
Suppose I have data $\{y_i,x_i\}_{i=1}^N$, where $x_i\in\{s_1,...,s_K\}$ and follows a discrete uniform distribution. For each realized $x_i$, $y_i$ is generated by the logit model, i.e., $Pr(Y_i=1|x_i)=\frac{exp(\beta_0+x_i\beta_1)}{1+exp(\beta_0+x_i\beta_1)}$. We want to estimate $(\beta_0,\beta_1)$ using data $\{y_i...
In the causal studies, there is so-called ignorable assignment mechanism. For instance, The vast majority of causal studies assume certain versions of an ignorable assignment mechanism, where the treatment as assignment is independent of the potential outcomes conditional on some observed variables. How to understand...
I am having a really hard time finding certain summary statistics when running a beta generalized linear mixed model using the glmmTMB function in R. I would like to report the model fit (r2) for both the full model(random + fixed effects) and just the fixed effects as well as the x2 statistic for each fixed effect.
I try to do an (unsupervised) clustering with sklearn, Python, by different algorithms (hierarchical, distance based, density based etc. ones). The data in question has few hundred original features and I do experiments with different dimension reduction algorithms before the actual clustering (PCA, IncrementalPCA, Loc...
I'm currently reading the textbook, "Latent Variable Models" by JC Loehlin and AA Beaujean. Today I've encountered the following regarding whether to analyze covariances or correlations in latent variable analyses. One further consideration, of minor concern in the present study, will sometimes prove decisive. If the ...
I am trying to predict daily stock return volatility using an LSTM network. My data comprises price data of five different stocks, over the same time frame. My question, to which I have not found an answer online yet, is how to combine multiple time series into one data set for the LSTM to train on. A similar question ...
My professor has just covered the concept of two-stage-least-squares (TSLS) regression today. In particular, we explored the over-identified case where we have a single endogenous regressor, $X$, with $m$ instruments and $r$ controls. It was explained that, in the first stage, we regress $X$ on the $m$ instruments and ...
Indirect inference is usually deployed to estimate parameters $\theta$ of simulation models, i.e. models for which likelihood is unknown or intractable but that can be "run forward" relatively easily. In practice it works by running an "auxiliary" model on the real data outputting parameters $\beta$, and then applying ...
Suppose that I have a query with $N$ questions each of which have $M$ numeric answer options. Thus, there are $N \times M$ possible answers available. I have a data set of answers to this query, and I wonder what would be an effective way of visualising them to see what kind of answers are typical. I was thinking some ...
My goal is to predict the number of policies in 5 years. Therefore, I train a decision tree that predicts the termination probability for each contract in a given year. Then, I use a test data set and compute the termination probabilities for the first year for each contract. After that, I increment variables like age ...
I fitted two models using the Oats data from nlme: library(nlme) fm4OatsB <- lme( yield ~ nitro, data = Oats, random =list(Block = pdCompSymm(~ Variety - 1))) fm4OatsB2 <- lme( yield ~ nitro, data = Oats, random =list(Block = pdCompSymm(~ Variety))) Result of summary(fm4OatsB): Line...
I'm mainly working with time-series models and want to make sure to build the correct model selection process. Let's consider a forecasting problem and I have two model candiates, Model A and Model B. For both, I'll do hyperparameter tuning using temporal CV (sliding or exapnding window approach). In the end, I need th...
I am making a GLMM to test for various aspects of grooming in primates. I have made 3 different models for the different species. For 1 of the 3 models, I am getting an issue with the qqplot. The data fits well with poisson distribution according to diagnose() in glmmTMB (I also ran it with nbinom2 - gives errors, pois...
I want to clusterize binary data, so each object is vector of 50 binary values. For real number I can measure standard deviation in each cluster, or something like that. What can I use for binary data? I plan to use it to determine which number of clusters is optimal.
Suppose that we have generated data from a Binomial distribution $$ C_{1}, C_{2},..., C_{K} \sim Bin(N,p)$$ and our goal is to estimate both the parameters $N$ and $p$. I've see numerically (just plotting the likelihood function) that the model is not identifiable since I can find many combinations of $N$ and $p$ that...
The loss function looks like below, where N is the number of time series. ignore N for now and say N = 1. T is length of prediction horizon. During training $t_0$ starts from encoder time step 0 all the way to last decoder time step $T$. $$\mathcal L= \sum_{i=1}^N\sum_{t =t_0}^T \ln \ell(z_{i, t}|\theta(\mathbf h_{i, ...
Main Question In https://arxiv.org/pdf/1807.03024.pdf, a generalization of d-separation in DAGs is introduced, called $\sigma$-separation for cyclic graphs. I am wondering how $v_1 \perp v_6$ using the $\sigma$-separation criterion? Based on that answer, why is $v_1 \not\perp v_6 | v_3, v_5$ Background The following ...
In the Transformer model, the embedding and positional encoding are summed together to represent a word in each location ('positional embedding' from now on). This way, each cell contains semantic and positional information. However, since two types of information are represented by one number only, it seems unclear to...
everyone! So, I've been trying to fit a LMER for my data, which I fully described in this post . This post, therefore, is a follow-up from the previous one. There's something intriguing me, I don't get any errors when I run this ANOVA: aov(SCORE ~ LANGUAGE * YEAR + Error(SUBJECT/LANGUAGE * YEAR), data = data) but I'm ...
Background: In an experiment, subjects had to choose whether they wanted an immediate reward or to wait for a larger reward (dichotomous dependent variable: yes/no). This choice was made multiple times (observations nested within subjects), varying both the amount for the immediate reward (independent variable: amount)...
At work, I just started dealing with seasonal adjustment of monthly time series on credit data, so being new to the topic it is quite possible that my question is pretty trivial. From what I've read so far, procedures like TRAMO-SEATS and X13-ARIMA-SEATS never mention the need to split the data into train/validation/te...