instruction
stringlengths
9
38.7k
I have a data set on a biological variable in a wild population. I am interested in how that variable changes with respect to an environmental variable, temperature. Given the constraints of sampling, I have a single temperature metric per year (essentially mean annual temperature). Is there a better option than either...
I am wondering what are the trainable weights inside an attention-powered transformer. I figure the feed-forward layer contain trainable weights and the token embeddings, but what other parts contain trainable weights? i.e. when you store a trained model, what parts are you actually storing I also wonder what weights i...
I am quite stuck on this question. My intuition would have been to say that we would prefer to pour milk first on heads, but I am not sure. The setting is: the Lady guesses "milk first" in 2/3 of the cases and we have a coin that lands heads 2/3 of the time. Then for each of the 8 cups, you flip the coin and pour milk ...
Reading about how to calculate confidence intervals for Poisson distributions, one says that if the unknown mean is high you can use the Normal distribution approximation and use $\widehat\lambda\pm c\sqrt{\widehat\lambda/n}$, where $\widehat\lambda$ is the mean of your sample of size $n$ and $c$ is to adjust your cove...
Deriving life expectancy from FLIPI index data for FLIPI(3) High Risk This updated analysis attempts to transform deaths per year into average years of survival weighted by deaths per year It looks like the 65% of follicular lymphoma patients with a high risk FLIPI index that die within the first ten years will live an...
I don't really know how to approach the following problem. We flip a fair coin for each of the eight cups and we pour milk into that cup first if the coin lands heads, else we pour tea first. Then by chance only one of the cups is tea- first and seven of the cups are milk-first. When the lady was told about the randomi...
Suppose I have a covariance matrix for three random variable $X1,X2,X3$ $$ \begin{bmatrix} 1&0.5& \rho \\0.5&1&0.5 \\\rho&0.5&1 \end{bmatrix} $$ I know I can solve for valid values of $\rho \in [-0.5,1]$ to keep the covariance matrix positive semi-definite. I know I can generate this distribution via Cholesky decomposi...
I have all the information I need from my logistic regression and know which variables are significant and by how much, but is there any way for me to write an equation that will give me the probability of a "yes" result based on new independent variable entries? I'm sure I could figure out individual cases by hand may...
When express results with uncertainty it's common that sometimes these uncertainty pass the limit allowed of the variable. For example, training a classificator model with an expected accuracy we usually express this accuracy with uncertainty using the mean and standard deviation of the accuracy of the many models eval...
What would be the value of r if the slope was steeper than in the leftmost diagram? Is r the slope or is it just proportional to the slope? Does it have anything to do with the quality of the regression (i.e., how much do the data points scatter around the regression line? - I think that is what r^2 is for, right?)
What is your probability of winning a game of tennis, starting from the even score Deuce(40-40), if your probability of winning each point is 0.3 and your opponent's is 0.7? My answer: I think the sequence of independent trials are required to win a game of tennis starting from even score Deuce(40-40),each of which is...
Here is one row from my data: H 7.042 5.781 5.399 -9.118 5.488 7.470 The first column is the class. The rest of them are features. I encoded the classes using one-hot-encoding, concatenated them with the feature list: 1 0 1 7.042 5.781 5.399 -9.118 5.488 7.470 Then I used this list for training. Is ...
I am trying to classify a target group from controls using a SVM. I am predicting probabilities, and noticed that when predicting the target class, the SVM performance was horrible (AUC ~0.2). This made me think, if I predicted the control class, then shouldn't the performance improve - which it did. Essentially, I hav...
I have a Dataset of consumers over 20 months. Each consumer is identified with a unique ID of four digits, which can be 0-9 except for the first character, assigned upon entry. Each month, some consumers either become deceased or drop out of the data and new consumers enter the data for the first-time. If I want a sma...
I need help to understand the multihead attention in ViT. Here's the code I found from GitHub: class Attention(nn.Module): def __init__(self, dim, heads = 8, dim_head = 64, dropout = 0.): super().__init__() inner_dim = dim_head * heads project_out = not (heads == 1 and dim_head == dim) ...
I have an image binary classifier that where class a = 0 and class b = 1 When I receive a prediction of a single image, is working out the probability that the prediction is correct as simple as: a: 0 = 100%, 0.25 = 50%, 0.5 = 0% b: 1 = 100%, 0.75 = 50%, 0.5 = 0% ?
I have calculated the empirical distribution of a certain metric for two different conditions A (blue) and B (yellow). The analytic distributions are unknown. Plotted are the kernel density estimators for each distribution. I am interested to test whether A has too many large values under the assumption that A came fro...
Let’s restrict our consideration to binary outcomes. I have a friend who is terrible at predicting the future, always predicting the opposite of what winds up happening. For instance, my friend predicted Cincinnati to win the Super Bowl, but they lost. My friend predicted that Croatia would beat France for the 2018 Wor...
I have a set of daily data series spanning years of data representing different types of calls to a call centre. This data series are individually not constant, but I have been asked to find combinations of some of them that may be stable in time in the medium and long term (without having any better definition of what...
Assume a population where the numbers are in the range of [0:200]. Assuming the numbers represent the performance of a program, e.g. seconds, the numbers look like v1 = [20.5, 130.32, 0.01, ...] I have a method that estimates those numbers. That is v2 = [20.7, 132.7, 0.02, ...] As you can see there are some differenc...
Is it possible to use a categorical distribution as proposal distribution for Metropolis-Hastings? For example, suppose that at the current iteration we are at the state $x_{i}=1$, from which there are $(1,2,3,4,5)$ other possible states that we can move to with probabilities $p_{1}, p_{2}, p_{3}, p_{4}, p_{5}$. Next f...
I would like to know, if a time series with a constant value for every t is a stationary time series or not? So actually this time series has the same variance, expectation value and autocorrelation for every t which would imply that it is stationary. But on the other hand I read several times that a stationary time se...
Here are some standard methods i am aware of when there is a class imbalance of data for classification problems in CNNs: Change the Loss Function (Focal, Dice, ...) Spatial Pyramid Pooling Non-local blocks Initialise the bias term only in the final layer of CNN Are there any others new or old?
to prove that P(s) = 1. how do you prove such with venn diagram? because it doesn't make sense that p(s) = P(S or T).
Let's consider two random variables $X$ and $Y$ following a Bernoulli distribution such that: $$ P(X=1) = p\\ P(Y=1) = q $$ The correlation coefficient $\rho$ is given and my goal is to compute $P(X \cap Y)$: $$ \rho = \frac{E[XY]-E[X] E[Y]}{\sqrt{Var(X)*Var(Y)}} = \frac{P(X\cap Y)-pq}{\sqrt{p\cdot (1-p) \cdot q\cdot (...
Posted on Math Stack Exchange, where it received little traction. https://math.stackexchange.com/questions/4385830/effect-of-conditioning-on-quantiles Suppose that we have three continuous, independent, non-negative random variables $X,Y,Z$. Fix $q\in(0,1)$ and suppose that $$q=\mathbb{P}(X+Y\leqslant \tau)=\mathbb{P}(...
Consider that we have two independent datasets $(Y_1, X_1)^\top, \dots, (Y_{n_1}, X_{n_1})^\top$, and the second denoted as $(Y`_1, X`_1)^\top, \dots, (Y`_{n_2}, X`_{n_2})^\top$. We assume that the first dataset is iid and follows a linear model (with possibly non-normal noise), and also that the second dataset is iid ...
I'm having a mixed model with 5 repeated measurements (time is categorical) and 2 groups, and I'm interested in the interaction between these two. The omnbibus LRT test says that the interaction is not statistically signficant (p = 0.10). However I'm interested in comparing the differences in changes of the outcome va...
I am currently trying to understand mixed effect models. And I would like to ask for some help understanding these results. The data that I have is the mass volume of different rats across different days. Each rat has different time points where they took the measurement of that volume. There are 6 rats with volume mea...
I'm learning specifically about different forms of simple linear regression including ordinary least squares, median absolute deviation, and Theil-Sen. I have no background whatsoever in linear algebra or even calculus. So I have a super hard time understanding even the notation or symbols of linear algebra. I've learn...
I'm trying to tackle a regression problem in which I want to predict data that sometimes has extreme values. The current machine learning algorithm I'm using is xgboost, specifically the python implementation. Because I want to try to predict these extreme values, excluding these data points is not an option. Some of t...
Consider a population of size $N$ and draw i.i.d. a random sample $S=(i_1,\dots,i_n)$ of $\{1,...,N\}$ with replacement. We define the Hansen-Hurwitz estimator as $$ \hat{\tau}= \frac{1}{n}\sum_{j=1}^n \frac{y_{i_j}}{p_{i_j}} $$ where $p_j$ is the probability of selecting unit $j$. I want to prove this estimator is an ...
Say we have two random sequences of length $y=3300$ and length $z=26$, where the sequences are made out of a combination of $k=4$ four letters ACGT. the letter in each position of the sequence is independent from the other letters the letter in each position in the sequence and can have equal probability for A, C, G o...
EDIT: Apparently I was not thorough enough in my search for previous questions on this topic. This is pretty much the same question, and has been answered: Auto-correlation vs Auto-covariance The answer seems to be cultural, as I was hypothesizing myself. Now the dilemma is whether, as a teacher in an engineering degre...
Given $\widetilde{S}^{2}=\frac{\sum_{i=1}^{n}{(X_{i}-\mu)^2}}{n}$ where $X=(X_{1},X_{2},...,X_{n})^T$. I was trying to find the $n\times n$ matrix $A$ for this quadratic form; that is, $$\widetilde{S}^{2}=\frac{\sum_{i=1}^{n}{(X_{i}-\mu)^2}}{n}=X^{T}AX.$$ I am facing a problem with $\mu,$ as it is known it is not a ran...
Suppose I have 2 clusters of data: $\{(Y_{1i}, X_{1i})\}_{i=1}^{n_1}$ and $\{(Y_{2i}, X_{2i})\}_{i=1}^{n_2}$, and I'm interested in running a simple linear regression on each cluster. I assume that $$Y_{1i} = \beta_{10} + \beta_{11}X_{1i}+\epsilon_{1i}$$ $$Y_{2i} = \beta_{20} + \beta_{21}X_{2i}+\epsilon_{2i},$$ where $...
Let there be a rectangle in the plane and a set of points distributed in the rectangle by a uniform distribution. I select a random point on the top and right border and draw the red line. The blue triangle is formed after drawing the line. I would like to know if the distribution of points inside the blue triangle is ...
I've got repeated measurements data on an outcome including a total of 310 measurements (range in the amount of measurements per patient is 1-6) conducted in 149 patients. For all patients, clinical risk factors were measured once at baseline. For my analyses, I've modeled the association of all risk factors with chang...
I am performing a length-frequency analysis (read: histogram) of data in fishes. This is a common way in which fish biologists analyze life history data in fishes. An example of the data is as follows. fish_lengths <- c(157, 163, 181, 181, 181, 181, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 193, 199, 199, ...
So I know that for OLS, "copying" each of the N observations $(X_i,Y_i)$ once to get a dataset of size 2N has no effect on the values of the coefficients in OLS (related question). Does this still hold true for Ridge and Lasso regressions? I've ran experiments where the coefficients turns out do differ by a small amoun...
Say we have a word game where each round involves finding a unique 5-letter word solution. (Wordle would be an example, for those familiar). For example, we may have a round where the word "magic" is the solution, followed by another with "lowly", etc. Once a word has been used in a round, it does not reoccur in subseq...
I have the data from Li et al. 2003 paper "Belowground biomass dynamics in the Carbon Budget Model of the Canadian Forest Sector". I am trying to recreate equation 6 in R so that I can produce the same parameter estimates. (eq. 6), however, Pf has a maximum value of 0.426, as values greater will produce a 0. The paper ...
The MatchIt package manual says that: The standardized mean differences are computed both before and after matching or subclassification as the difference in treatment group means divided by a standardization factor computed in the unmatched (original) sample. The standardization factor depends on the argument supplie...
In general, describing expectations of ratios of random variables can be tricky. I have a ratio of random variables, but thankfully, it's nicely behaved due to known structure. Specifically, I have a univariate random variable $X$ whose support is non-negative reals $\mathbb{R}_{\geq 0}$, and I want to compute $$\mathb...
I have a binary classification model that has properties min_loss and max_loss. Example: min_loss=0.02 and max_loss=0.5. Part of the algorithm of the model is that it automatically creates a threshold value in between those ranges. Example: threshold=0.08. Given an unknown input, the model produces a loss value loss. T...
Unlike the method of performing hypothesis testing in general, we tried to obtain a kind of z score by dividing the mean of the regression coefficients obtained through bootstrap by the standard deviation of the distribution of each regression coefficient, and infer statistical significance through z scoring. ($H_0: b ...
Note: I realize similar questions have been asked here before but I couldn't find my specific doubt addressed (not in so many words, anyway). In testing a large sample for the population mean if the standard deviation is not known we may use the z-test or the t-test. Is it correct to say that although the sampling dist...
I have a Likert-style survey that includes 2 questions: perceived understanding before an intervention and perceived understanding after the intervention. I would like to use some form of inferential statistics to determine if there is a significant improvement in understanding post-intervention. Issues: Likert-like qu...
Take the first step $t=1$ for simplicity, \begin{align} h_1 &= \text{tanh}(W_{hx}^T e_1 + W_{hh}^T h_0) \end{align} Usually it is written in convention: \begin{align} \frac{\partial L_1}{\partial W_{hx}} &= \frac{\partial h_1}{\partial W_{hx}} \frac{\partial L_1}{\partial h_1} \end{align} where $e_1$ is the first-ste...
Suppose I have a set of observations encoded as a matrix $X$ whose entries $X_{it} \in \mathcal{C} $ correspond to cluster labels of experimental unit $i$ with repeated measures at time $t$, where $\mathcal{C}$ denotes a finite set of nominal cluster indicators. For clarity, here nominal is meant to emphasize that part...
Participants in a survey answer two questions similar to this: What is your estimate, how on average a woman performs in this test (from 0 to 100)? What is your estimate, how on average a man performs in this test (from 0 to 100)? The dependent variable is the difference between these two answers. Thus of course th...
I've got a question about name of some specific value. Root Mean Square value is defined as such: $$ RMS = \sqrt{\frac{1}{N}\sum_{i}^{N}{x_i^2}} $$ I came across a value, that is similar, but is calculated in "reversed" order, i.e.: $$ *something* = {\left(\frac{1}{N}\sum_{i}^{N}\sqrt{|x_i|}\right)}^2 $$ Is there a nam...
In an assignment I was suppose to perform K-means clustering on the MNIST dataset (just the 0's and the 1's) and then use SVD/PCA to visualize the data in two dimensions. I missunderstood this and performed the K-means on the SVD of the dataset and was told that this is not something one is supposed to do. However when...
I've calculated Friedman's tests for my data and want to report an effect size with the individual post-hoc tests that followed on from the statistically significant Friedman's test. I use the formula z/sqrt(N) to calculate r as an effect size as recommended by Field (2018). Edit1: The issue with the effect size that w...
I'm trying to find a distance metric that takes into account the correlation between vectors. That is, suppose we have matrix $M$ of dimensions $n \times k$, and we take the pairwise distance between all $n$ rows of $M$, yielding a distance matrix $D_0$ of dimensions $n \times n$. Now suppose we append a new column to ...
I am conducting a study trying to correlate changes in a biologic parameter (e.g., blood bilirubin concentration) with clinical outcomes (e.g., bleeding). I have found that variability in such parameter over time appraised with standard deviation (SD) and coefficient of variation (CV) correlates strongly with events. H...
If we let $x∼N_3(\mu, \Sigma)$ with $\mu^T=(\mu_1,\mu_2,\mu_3)$ and $\Sigma=\begin{pmatrix}\sigma ^2&\sigma ^2\rho &\sigma \:^2\rho \:\\ \sigma \:^2\rho \:&\sigma \:^2&\sigma \:^2\rho \:\\ \sigma \:^2\rho \:&\sigma \:^2\rho \:&\sigma \:^2\end{pmatrix}$. How do I find the conditional distribution of $(x_2, x_3),$ given ...
I have been working on binary classification problem using algorithms such as Random Forest, Boosting methods, neural networks and logistic regression. I have data from Jan 2017 to Jan 2022. We wish to train the model based on historical (completed transactions) from Jan 2017 to Jan 2020. And use this model to predict ...
I have the data for 3 groups A,B,C with the times of run of 5 kilometers. $ \begin{matrix} Group A & Group B & Group C \\ 27.5 & 35.3 & 45.8 \\ 30.6 & 40.2 & 42.6 \\ 28.5 & 33.8 & 32.4 \\ 36.6 & 28.2 & 37.6 \\ 27.9 & 35.3 & 34.4 \\ 33.8 & 31.6 \\ 29.2 & 29.7 \\ 35.8 \end{matrix} $ Now we suppose no data is av...
I am studying how a clinical parameter (GFR, a measure of kidney function) varies over time across subjects. For each patient, we have a dataset of multiple GFR readings and the associated time they were measured. We summarized the change in GFR over time by performing linear regression for each subject to obtain the s...
I need help in understanding the curve shown in the image. As you can see in the image that I-V curves in (a) is for linear scale and it shows 0 Amps at 0 Volts. But for logarithm scale I-V curves in (b) the curve does not converge at 0. I know that it is a log scale, but I still cannot understand it fully. I will appr...
I have applied negative binomial regression analysis for my data in SPSS. However I am not sure what do I have to report. Is it called IRR and CI or odds ratio (OR) and CI like in logistic regression. I have gone through some papers where they have reported beta, standard error and CI. But they have not mentioned anyth...
A certain set of pesticide concentrations is selected to dose the animals to determine its acute toxicity. Technically, with increasing concentrations, the mortality should increase, but that does not occur. In some cases, in higher dose category the mortality will be less than that of the preceding or earlier dose cat...
I’m trying to figure out how to calculate the overlap (concurrence) of certain building features, for example: high-efficiency windows, thick insulation, efficient lights, etc. I know the probability of the individual features (e.g. 20% of buildings use efficient lights, 30% have thick insulation) but would like to kno...
This should be a simple problem that I have no idea how to solve it. I have two datasets in R each with 3 columns (ID, Age and a response to a drug). I want to subsample both these datasets and build 2 new datasets where the distributions of the age would be comparable between the two) as it stands at the moment the di...
I've got data from 1000 people on a score, and a few outcome variables. Each score is formed of 10 components; to get the total score you sum the score for each component. What I'm trying to do is simplify the score so it uses fewer paraments. At the moment, I'm using a brute force approach using all the 1000 people to...
I have these data of normality tests from a paper. What kind of normality test that use comparison of these parameters? Is there anyone here who can provide a reference link about this form of normality test?
For multi-label (multi-class) classification task, it seems to me that the standard loss to use is the binary cross entropy loss. However, it assumes that the the classes are independent and we are basically training one cross entropy for each class and summing them up. I am wondering how to handle the scenario where t...
CONTEXT I have plenty of clients in my loyalty program where I offer them to accumulate points through X different channels, and those points can be used/exchanged through Y different products I offer. Those points also have an expiration. I have a second-precision data about when the client acumulated, used/exchanged ...
I need to determine the variance of a variable b(v). The variable is defined as the following: $$ b(v) = \begin{cases} \beta, \quad \text{if } v<0,\\ 0, \quad \text{if } v\geq0.\\ \end{cases} $$ As you can see, it is dependent on the random variable $v$. The variable $v$ follows a Gaussian distribution of which I know ...
Suppose that $Y,Z$ are independent, continuous, non-negative random variables. Suppose also that for some $0<q<1$, $$\tau=\inf\{t>0:F_Y(t)\geqslant q\}$$ and $$\pi = \inf\{t>0:F_{Y+Z}(t)\geqslant q\},$$ where $F_Y$, $F_{Y+Z}$ are the cdfs of $Y$ and $Y+Z$, respectively. Then we have (by continuity) that $$F_Y(\tau)=F_{...
Like let's say my predictor X has four levels, 1, 2, 3, and 4. Fitting a logistic regression will generate estimates of $\beta$ for x = 2, x = 3, and x = 4, and I understand that each of these estimates reflects the odds ratio of that level of x to the reference level of x = 1. My question is, how do I express that mod...
I was reading through Andy Field's Discovering Statistics with SPSS. Following ANOVA, he ran several planned contrasts. When he described how to report the planned contrast results, he wrote this: “Planned contrasts revealed that having any dose of Viagra significantly increased libido compared to having a placebo, ...
There seem to be two ideas of placebo - or the treatment received by a placebo group: A "simulation" of a treatment using saline or sugar pill so that subjects in a clinical trial can be randomized, and drug can be administered in a blinded fashion. A "non-treatment" so that the relative effects of a single drug can b...
I am interested in performing a mediation analysis using R's mediation package. I am fitting the following two models: mod.y <- survreg(Surv(time, event) ~ M + X, data = d) mod.m <- lm(M ~ X, data = d) med.m <- mediate(mod.m, mod.y, treat = "X", mediator = "M") summary(med.m) And I get the following output: Causal...
I am reading Rubin's Causal Inference Sec 7.5 in context of completely randomized experiment. It says performing linear regression will produce asymptotically unbiased estimate of causal effect, independent of whether model is misspecified. However, in the later section, it says incorporating interaction between cova...
From what I understand, bagging reduces variance of prediction for a model. Though OLS is on the "low variance" part of the spectrum, I wish to understand anyway the implications of resampling from the training set and getting n estimates of the regression coefficient via OLS. Then, the prediction looks like: $y'=X/n(b...
This is likely a naive question about principle coordinate analysis, but my googling skills are failing me in this instance. I've conducted PCA on a multidimensional dataset, and got this result: My experience working with data makes me immediately suspicious of that long trailing line of points, but I'm new to PCA an...
In a logistic regression with binomial proportion target variable -- i.e. $Z_i \sim \text{Bin}(n_i,p_i)$ with target $Y_i := Z_i/n_i$ -- is there any reason for not allowing $n_i$ to be one of the regressors?
I have a survey composed of multiple choice questions. Several distinct branches of the same organization responded to the survey. I want to see if the distribution of answers from one branch is statistically different from the answers of all the branches combined (including the branch in question). For example: Q1: Do...
Say we have a logistic regression of $ln(\frac{\pi(x)}{1-\pi(x)})=\beta_0+\beta_1x_1 + \beta_2 x_2 + \beta_3x_1*x_2$. IE we have our predictors for $x_1$ and $x_2$, and the final term is for the interaction of our two predictors. I'm trying to understand the math behind $\beta_3$. Let's say $x_1$ and $x_2$ can only tak...
Given a skewed sample whose distribution is not normal and was caused by various reasons. As a result the mean calculation is affected by the skewed distribution. Can the following steps assess the mean better: Using transformation, such as Box-Cox (or other. which?) to obtain a distribution closer to normal. Calcula...
I am not acquainted with Pearl's approach for causal inference. From what I have seen so far, the causality is inferred from directed acyclic graphs(DAGs). Rubin's Causal Inference Sec 7.5 proved a theorem stating that asymptotic unbiasedness of OLS estimator for superpopulation treatment effect. By Rubin, if sample is...
In your opinion/ based on your experience, what is the best time series model (AR,ARMA,ARMAX,ARIMAX,ARCH,GARCH, or others) that is able to better reproduce the peaks of a time series. And if so, could you please suggest me a R/matlab/phyton package to do so? I'm dealing with an hydrological time series: predicting the ...
I have built a binomial logistic model and I am trying to print the coefficients of the equation.I used the summary(step.model) and then ran exp(cbind(coef(step.model), confint(step.model))) and i got different values for the coefficients. Does anyone know why and which values should i trust? Thank you Coefficients: ...
I built a binomial logistic regression model and I want check the effect of the independent variables on the model.This is the model step.model <- glm(decision ~., data = train.data,family = "binomial") I ran logistic.display(step.model) to get the ratio odds as I researched and I would like to interpret those numbers ...
I have data of frequency of 10 males( birds) voice across age. And I want to study how peak frequency ( one of the acoustic parameter in bird's call) of males call changes as they age. Call data taken from particular age is dependent from its previous. My dependent variable is peak frequently of call at that particular...
A Motivating Example The Travelling Salesman Problem (TSP) is a classic one where a "salesman" tries to minimize their length of travel (i.e., distance travelled) to a number of destinations (e.g., a plane flying along a flight route). The TSP can be solved using a variety of techniques such as dynamic programming, sim...
We know that the Wold Decomposition Theorem says that any purely nondeterministic covariance-stationary process, $x = [x_t : t \in \mathbb{Z}]$, can be written as a linear combination of lagged values of a white noise process: $$x_t = \sum_{j=0}^{\infty}\psi_j u_{t-j}$$ According to this lesson lesson (slides 12-14), ...
The error term for an AR(1) model is assumed to be $\varepsilon = N(0, \sigma^2)$, a mean of 0. An example of a source that mentions this: The AR(1) model can be written in intercept form, $$z_t = \beta_0 + \beta_1 z_{t-1} + a_t$$ where $t = 1, \dots, T$, $\beta_0$ is the intercept coefficient, $\beta_1$ is the slope ...
I am currently reading the paper "Importance Weighted Autoencoders" and am having a hard time understanding something regarding the original Variational Autoencoder (VAE) as described here In the first paragraph of the third subsection the author wrote this: The VAE objective of Eqn. 3 heavily penalizes approximate pos...
I am working with an application where I have a grid of cells, and I calculate "concentrations" in each cell by randomly placing a number of "particles" across the grid, and counting the number of particles in each cell. I am then interested in finding the number of cells with concentration less than some threshold con...
I don't really understand, why at least one sample is always exactly lying on the support vector(s). When assuming, that the dataset is exactly linearly seprable and considering the cost function of the SVC $$ c = ||{\boldsymbol{w}}||^2 + C\sum_{i=1}^N \max (0, 1-y_i(x^Tw+b)) $$ I'd also get $c=0$ if the support vector...
I have a panel related to political election. Id is country and time is NOT the year but the election event sequentially ordered (first election in the country, second...and so on), so that you have, in each row, data that belong to different years. Example: you can have election n.1 in Italy belonging to year 2000 and...
What is the purpose of the validation set in model.fit(…)? Does this touch the concept of cross validation at all? Afaik cross validation is done in an "outside" loop, with the purpose of model selection considering theoretical concepts around bias and variance. However this validation set is "inside" the loop. I see t...
I have a dataset and am trying to use GMM to cluster it. The algorithm works well but when I run it multiple times I get different results. While the clusters produced in each run are valid my users are unhappy with the non determinism. I am tempted to use a constant random seed but other threads mostly suggest to use ...
Typically in machine learning we simply run evaluation over the test set and report the test metrics. This makes sense for assessing the trained model. However, I feel that this may not be suitable for assessing an architecture, as training the same architecture with the same objectives, but under different shuffling o...
In my master econometrics class, the professor mentions "mean independence" and throughout his slides, he uses two definitions interchangeably: $E[U|D=1]=E[U|D=0]$ $E[U|D]=0$ where $D$ is the binary variable, $D=1$ indicates the treated group, $D=0$ indicates the untreated group, and $U$ is the error term of a regres...
To select a model I use stepwise with the likelihood ratio test but I have seen that people use the z test (the one that appears in R when obtaining the summary) to include the variable with the lowest p-value and discard the one with the highest p-value. My question is, is this procedure correct? Thank you for your an...
What are appropriate tests for determining whether two GLMs are statistically significantly different? AIC and BIC is not an option because I am not trying to determine parsimony. If it were regular linear models, one could use type-3 anova. Running GLMs through anova does not yield any interpretable results because no...