instruction
stringlengths
9
38.7k
I'm working on a project where I have to perform MCA and MFA. My dataset contains the following data (for context). Also I created some extra variables: WeightTried* for each lift, that has the absolute value to remove the negative values Lifted*? for each lift, that is Not lifted if the lift was < 0 and Lifted otherw...
In the typical difference-in-differ rences design with multiple time periods the periods concerned are equal e.g. days, months, years. What, if any, are the implications of having time periods of different duration e.g. $t_1$ ~ 5 days, $t_2$ ~ 10 days, $t_3$ ~ 1 day etc? For instance, say we have data of the following ...
I was reading the book "Introduction to Statistical Learning - 2nd ed" and I can't understand the derivation of equation 6.15 on the page 247. This question is similar to Introduction to Statistical Learning Eq. 6.12 and 6.13 but the answers there weren't satisfactory. My approach was to use the modulus definition to ...
I'm running a chi square test on some categorical values pertaining to race, and whether different racial groups participated in a clinic. As there's about a dozen different races in this data, I bucketed them down to 'White', 'Black' and 'Other', just for the purposes of testing (as the correlations indicated most of ...
I have this bivariate distribution and I would like to tell if it is in the exponential family: $$f(y_{i},d_{i}|\theta_{1}\,\theta_{2}\,p)=\left(\left(\frac{1}{\theta_{1}}\right)\exp\left(\frac{-y_{i}}{\theta_{1}}\right)\right)^{d_{i}}p^{d_{i}}\left(\left(\frac{1}{\theta_{2}}\right)\exp\left(\frac{-y_{i}}{\theta_{2}}\r...
I have $N$ numbers from uniform random distribution. Now I have done a transformation on these $N$ numbers as: each $x$ is converted to $\frac{(x-\mu_N)}{\sigma_N}$. Where $\mu_N$ is the mean of $N$ numbers and $\sigma_N$ is the standard deviation of those $N$ numbers. Does the converted distribution follow a normal di...
For example, let me suppose that I have 100 thousands of geospatial data in my dataset, and I want to extract certain group that which is the most crucial. So I decided to do clustering and pick 'one cluster that seems to be most appropriate for my purpose of analysis' in the visualized result. Let me call this 'target...
I have a variable that takes the value of 5% or 10% throughout the data set. Is it okay to transform this variable into a dummy variable such that 10% (high) = 1 and 5% (low) = 0. I am running a logistic regression (binary response variable) and I want to know if the probability of event success i.e. y=1 decreases when...
I have a model $Y = f(X) + \epsilon$ where $\epsilon$ is independent of $X$ and $\mathbb{E}[\epsilon]=0, \mathbb{E}\left[\epsilon^2\right]=\sigma^2$. Show that $$ f(X)=\mathbb{E}[Y \mid X] $$ This is my attempt at the proof: $$ \begin{aligned} & E[Y \mid X] \\ &= E[f(X)+\varepsilon \mid X] \\ &= E[f(X) \mid X]+E[\varep...
I am currently looking into the dickey-fuller test but seem to not understand something fundamental. To understand the test better, I created 4 time series: cons, lin, r1 and r2. How these are generated can be seen in the code below. While r1 pulls samples from N(0,1), r2 follows the definition of a random walk. These ...
Assume I have an ARMA(p,q) weakly stationary process with the error term $\epsilon_{w}$ such that $\epsilon \sim WN(0,\sigma^2_w)$, can either be gaussian or non-gaussian. The covariance matrix,$M$ is built based on the auto-covariance function of the ARMA(p,q) process in the form of $\sum \sigma^2_w K$ where the proce...
In Bayesian/variational neural networks one often uses the Evidence Lower BOund (ELBO) as the objective function to optimize with respect to the model parameters. That is if $D=\{y_i,x_i\}_{1\dots n}$ is the set of our training data, $\{y,x\}$ is a new data point, and $w$ represents our network weights/parameters, then...
Consider the following setting: There's a time dependent biomarker X and the outcome of interest is death. Time 0 (t_0) for each patient is their entry into the study. For simplicity, assume I fit a time-varying Cox model and estimate absolute risk using conditional survival probabilities over a time window w. The mode...
Let $x_{t}, \omega_{t} \in \mathbb{R^{d}}$ The Hamiltonian Monte Carlo says this: Deterministic: it relies on the Hamiltonian dynamics so given an initial state, at any time $t$, specified by the position and momentum $(x_{t}, \omega_{t})$, the state $(x_{T}, \omega_{T})$, of the system at a forward time $T$ can be de...
I feel like this is probably a really stupid question but I'm having issues finding the answer. When I think of reliability, normally I think of several items on a test that are compiled into some kind of sum score, with which the individual items are tested with a reliability coefficient like alpha, gamma, or omega. H...
Let $y_1, y_2, \ldots , y_N$ be arbitrary real numbers and suppose a process of simple random sampling without replacement that selects $n$ out of $N$ elements. Then suppose that these $N$ elements are embedded in an asymptotic regime, indexed by $h \in \mathbb{N}$, whereby (1) the original set of $N$ real elements is ...
I am running one-way ANOVA for my research data, and I'm meeting all the assumptions except Homogeneity of variances. Am I allowed to run the Kruskall-Wallis test, as it's the non-parametric test for one-way ANOVA, or are there any other statistical methods I should use?
if I was thinking to design test for a control and 3 treatments or variants looking at a 0 dollar value for control and then 5,10 and 15 dollar amounts for completing an assignment, would a normal t-test be fine or anova? I am a little confused as ANOVA states to compare to each other but here I just want to see which ...
I know how to conduct a sample size calculation comparing two independent means in a randomized controlled trial. However, I am confused by the following situation. There are 2 groups: intervention (IG) and control (CG). The outcome of interest is a severity score (0-100, the higher the worse). The baseline score in bo...
I am running a model with an interaction term and I am unsure of the interpretation even after reading the other questions here in the forum. My model looks as follows: Where roi is the return on investment, logfreq is the log transformed trading frequency and treated is the binary treatment variable. My interpretatio...
i was reading this paper https://arxiv.org/pdf/1807.00263.pdf in which Kuleshov gives a definition of a well calibrated neural network in a regression task I would like to ask one thing: why does he makes a special cases for when $x_t,y_t$ are i.i.d. realizations of random variables $X, Y \sim \mathbb{P}$? when we d...
Here in my country it's time to choose a president. So some institutions make surveys about how many votes (in %) the candidates are gone get in the poll day. The population is about 200 million peoples, but to make these surveys about 2000 people are asked their opinions. How it's possible to predict the result of the...
I would appreciate some help interpreting and inferring outputs from aov() in R, and understand what the next step is in the analysis. Background: I am working with AOV() in R and I will do an analysis of variance where the main purpose of the study is to investigate the influence of storage conditions on the flavour o...
In the equation R is the decision region and C is the classification. I don't understand how did he go from probability to integral!
Suppose $\{X_{1},\ldots ,X_{d}\}$ is a sequence of independent random variables, each with finite expected value $ E[X_{i}]$ and variance $ \text{Var}[X_{i}]$. We define $$s_{d}^2 = \sum_{i=1}^{d} \text{Var}[X_{i}].$$ If for some $\delta >0$, the following Lyapunov's condition holds true \begin{align*} &\lim_{d \to...
$X$ is a random variable defined in a sample space $c$ is a constant $\in R$ (real numbers).
I am trying to figure out the correct specification of random effects (specifically an interaction varying across levels of a random effect) when moving from a linear mixed model to a GAMM. I am working on brms which uses lme4/mgcv syntax respectively. Suppose we have experimental plots in a 15x2X10 design, where each ...
I'm trying to evaluate my change point detection algorithm based on F1 score[1] defined as follows Let $\mathcal{X}$ denote the set of change point locations provided by a detection algorithm and let $\mathcal{T_1}$ be the set of (single) human annotations. For a set of ground truth locations $\mathcal{T}$ we define th...
I'm reading a blogpost about VQ-VAE, and it says there that: If we are working with a 1-d signal like audio, casting the problem into an autoregressive form is very simple: just predict the next latent in the 1-d sequence encoded from the audio. This approach assumes that the encoder is configured such that later late...
Conceptual Question: Suppose a banker wants to run regression on S&P 500 companies to see if they make more returns than the last year on average daily return basis. He runs on dummy variables for each company. Suppose the model is $R_i=\beta_0+\beta_1 k_{1i}+...+\beta_{500} k_{500i}$ where $R_i$ is returns on a daily...
I'm reading about Variational auto-encoders, and in section 1.8 they describe a latent variable model $p_\theta(x,z)$ where x are observed and z are hidden variables. They say that the marginal distribution over observed variables for a single datapoint is $p_\theta(x)=\int p_\theta(x,z)dz$. They proceed to say that th...
So I have a set of experimentally-determined values (inhibition constants) that are given with their respective standard deviations. I used these values to calculate the free energy via the following formula: free energy = R * T * ln (inhibition constant) I want to also transform the standard deviations. My question i...
Problem 1 Given a set of points and their weighted geometric median, find the weights associated with each point. For instance, given the points ((1, 1), (1, 3), (2, 3), (3, 1)) and a weighted geometric median at (2.447, 1.450), find the weights. The geometric median (non-weighted) is in green and the ground truth weig...
I need help interpreting my path analysis. I already reached the best fitting model but I am having difficulty interpreting. All the paths are significant and both direct, indirect and total effects are significant as well. To explain my model, I have 3 exogenous variables and 2 mediators, and 1 outcome variable. Betwe...
From this question: Example of a Discriminative Bayesian Model There is this table comparing Frequentist/Bayesians and Discriminative/Generative models. $$\begin{array}{l|c|c} & \text{Frequentist} & \text{Bayesian}\\ \hline Discriminative & {\quad\quad P(Y; x, \theta)\\\text{Linear Regression}\\\text{Logistic Regressi...
Let $X \sim Bernoulli(p)$, $Z \sim Bernoulli(\rho)$, and $X^* = Z * X$. In other words, $X^*$ is "censored" with probability $\rho$. What type of censoring is this called?
I am trying to compare my model's (a neural network) results with human-scored results on the same type of data. However, there are no ground truth labels (humans disagree on classifying these results), so Cohen's kappa is used to get the measure of agreement. I hypothesize that my model is performing as well as humans...
I'm trying to build a network. While creating the fully connected part in the last, Which one should we prefer: More layers that regularly reduce with heavy dropouts or fewer layers that reduce drastically with light dropouts? x = Dense(1000, activation='relu')(image_features) x = Dropout(0.8)(x) x = Dens...
Is there any Python implementation that would allow to use logs data of clicks and their ranking, and return and estimate of relative position bias as discussed in section 4.3 Estimation from Regular Clicks of Position Bias Estimation for Unbiased Learning to Rank in Personal Search?
I have some continuous data, and want to do kmeans clustering with this. But weirdly when I did kmean clustering with this data, the outcome was very conflicted with my presumption. So I decided to do same thing with ordinal categorial data, but I was reluctant to converting continuous form into discrete form, because ...
I was wondering if I need to provide a regression table including the estimation of all main varibales + confounders? Can I just present the final result (coefficeint and pvalues) of the main variables after adjustment?
I use qqnorm to plot my data as the photo attached. Does this plot indicate the data is normal distributed?
I am trying to compare Epoch Greedy in Langford & Zhang's paper and the epsilon-greedy approach for contextual bandits as in Chen et al, 2020. My question is that are these the same algorithms?-- one considers minimizes the regret over a hypothesis class while in the other we minimize the expected cumulative regret for...
I am an MBA Student taking courses in statistics. We have been learning about regression models for count data. Recently, our professor has been talking about situations in which there are a lot of zeros in the response variable - our professor mentioned that when there are a lot of zeros in the response variable, this...
I am not a statistician (clearly) and am trying to wrangle environmental data. My data looks like (note data is on time scale - 1 = Day 1, 650 = Day 30: I am developing a GAM model which predicts the effect of environmental variables and anthropogenic variables (i.e. vessel noise) on call rate of an animal. Call rate...
Simple setup: observed response is binary (yes/no, 0/1, positive/negative). use logistic regression to model the probability of the response being, say, 1: $P(Y=1|X)$. the MLE of the model coefficients enable us to predict the probability by $\frac{1}{1+exp(-X\hat{\beta})}$. By checking ROC and AUC, we find the most a...
Context: We all know: $$ \text{Total Variance}=\text{Unexplained Variance} + \text{Explained Variance} $$ where, $$ \text{Explained Variance} = \text{SSReg} = \frac{1}{n-1} \sum_{i=1}^n(\hat y_i-\bar y)^2 $$ Now, I was doing some random experiments in R. During that, I (empirically) found this this relationship to...
I am taking an introductory course on statistics/probability and there's a concept that I am confused with. That is the difference between empirical histogram vs PMF. First off, let's use the example of rolling a fair dice. Then we do "secretly know" the underlying PMF is given by $$ \mathbb{P}[X = i] = \frac{1}{6} \fo...
Consider a standard linear regression model in a matrix form given by \begin{equation} y=X\beta+u \end{equation} where $y$ is $n \times 1$, $X$ is $n \times k$ with $n>k$. Assume that $X$ has full column rank. When using cross validation, we typically remove some rows of $X$. Let $X_{-i}$ be an $(n-1) \times k$ matrix ...
Suppose three pool players A, B, C are equally good, meaning that they each have a 0.5 probability of winning against each other. They are playing a game as follows: the winner of a game plays whoever didn't play the last round. For example, if A plays B, and B loses, then A plays C. Whoever wins 3 games first wins the...
I know that Dropout will remove neurons randomly to reduce over-fitting. If Dropout is going to remove neurons, why are those neurons built? We could remove those neurons from the architecture. Why don't we do that?
In a multiple regression problem, suppose we have responses $Y_1, Y_2, \cdots , Y_n$ corresponding to data $\mathbf{X}_1, \mathbf{X}_2, \cdots, \mathbf{X}_n$ where each $\mathbf{X}_i$ is a $d$-dimensional vector. The covariates are arising from some continuous distribution. Now, we can of course employ our good old mul...
Considering I have a machine learning model that predicts the matching score of two entities. The lower the score is the more different the two entities are and vice versa. Labels : 0 = no match; 1 = match From the figure, as you can see there is a good overlap between the two normal distributions (score for label 0 a...
I'm having a dataset with over 90k records and 28 variables. About 13 of these variables are binary variables and each of these 13 variables have around 40k missing values. Please suggest some imputation techniques that would be appropriate/reliable for binary variables specifically. I tried imputing all these missing ...
Suppose I have a dataset and two estimators, each with different hyperparameters. I want to select the best estimator and make sure it generalizes well. Therefore, I need to use nested cross-validation to find the best hyperparameters for each estimator, and then, to select the best model. The pseudocode for the nested...
It seams like confidence intervals resemble critical regions in hypothesis testing .. are there cases when one cannot use these intervals in testing? In critical regions we use the mean and see where it lands while in confidence intervals we use the mean to construct the boundaries.
I have to perform regression for product prices over a period of time and I have to do so for multiple categories. For eg. Category_1 includes prices of item_1, item_2 and item_3 over a period of time, let's say two months. My question is how do I combine/transform these item_1, item_2 and item_3 into one dependent var...
I am running a very simple experiment. There are two different experiment groups, participants are randomly assigned. They have to make a simple binary decision in the experiment. I have three control variables (demographics) about the participants that I still would like to control for. I am using a logit regression m...
Consider $f(x,\theta),$ a density function for the random variable $X$ with a parameter $\theta$. Suppose $f(x, \theta)$ is continuous in $\theta$. Is the location $$\int_\mathbb{R} x f(x, \theta) dx$$ continuous in $\theta$?
I have four research questions and all of them has the same main "independent variable", as such the relationship between x and y1, y2, y3, y4. This is not a multivariate analysis, I am just interested to know the impact of one variable X on loan term, interest, default etc. as separate multiple linear regression (one ...
If one normal distribution has a larger mean and a larger standard deviation, prove that the CDFs of the two distributions have a crossing point. If the assertion is false, can you provide a counter-example?
I am doing a study using OLR. The model tries to assess the satisfaction of ground level stakeholders (scale of 1(extremely dissatisfied) to 5(highly satisfied) in an urban area. The independent variables of the model are treated as continuous scale variables (variables are valued on a scale from 1 to 3). The model was...
considering that I have a very small sample and that my residuals are non-normally distributed, I've decided to perform a lmer() with bootstrapping. This is my very first time doing this, this package lmeresampler seems to be the easiest one to do this, but I didn't find much on that, sonI have a few questions. The da...
In the beginning of chapter 2 of Information Theory, Inference and Algorithms, the author says that he will refrain from being unnecessarily rigorous and provides the example of saying that something is "true" instead of saying more formally that said thing is "true with probability 1". Is there a difference between so...
My question is regarding the practical definition of Arima (0, 1, 1) posted on this site ARIMA(0,1,1) Forecast. The random walk part is very clear to me, the current observation is a function of the previous observation. Could anyone explain to me what the MA(1) part practically indicates? for example, if I have popula...
I have a sample of observations which is right-skewed and taking the natural logarithm brings it close to a normal distribution, e.g. $Y=\log X$, and $Y$ follows a normal distribution. I want to test if $\mu_X = 30$ so the null hypothesis is $H_0:\mu_X = 30$ against the alternative hypothesis $\mu_X > 30$. I am stuck ...
I am searching for the R function that generated this Exploratory Data Analysis plot. Anyone know what it is?
I am looking for exercises (more theoretical than applied) about linear regression models. Maybe you can advice me where I can find such exercises. Here is what my linear models course deals with if you want an idea : Properties of the multivariate Gaussian distribution and related quadratic forms. Gaussian linear reg...
I'm a bit confused whether residual vectors in OLS are orthogonal to every vector in X. The problem I have is: Which of the following are true statements for our multiple linear regression with datapoints as rows of design matrix X, label vector Y, and using the model Ŷ = X̂. I can understand that the residual vector e...
Suppose we are performing a least-squares multiple linear regression of the form $$ \mathbf{Y}=\mathbf{X}\boldsymbol{\beta}+\boldsymbol{\varepsilon}\,, $$ where $\mathbf{Y}=(y_1,y_2,...,y_N)$ are the response variables, $\mathbf{X}$ is the $N \times P$ design matrix, $\boldsymbol{\beta}=(\beta_1,\beta_2,...,\beta_P)$ a...
I'm currently working on modelling how house prices have changed in the last 5 years, with dummy variables for property type and region. I know that there is likely to be unobserved heterogeneity as property type and location aren't the only factors that impact house prices, therefore I have ruled out the pooled OLS re...
Suppose we know that the correlation between $X_1$ and $Y$ is $\rho_{X_1Y}$ and the correlation between $X_2$ and $Y$ is $\rho_{X_2Y}$. Furthermore, suppose $0 < \rho_{X_2Y} < \rho_{X_1Y}$. Now, we fit the simple linear regression models $Y \sim X_1$ and $Y \sim X_2$, which one will have a lower MSE? i.e. which one has...
Thank you so much for all the input and for pointing out my mistakes. I made some corrections and try to add more details but ended up trying to answer my problem based on other people's posts. Please let me know if there are any mistakes. Why is a T distribution used for hypothesis testing a linear regression coeffici...
Let $\{X_{1},\ldots ,X_{n}\}$ be a sequence of non independent random variables. For $i,j \in [n]$, given \begin{align} E[X_{i}] &= 0.\\ \text{Var}(X_{i}) &= \sigma^2 < \infty.\\ \text{Cov}(X_{i}, X_{j}) &= 0, \quad i \neq j. \end{align} Can we say something about the asymptotic normality of $X_{1}+ \ldots+ X_{n}$ as...
Suppose you have data on $y_{it}$: outcome $y$ of unit $i$ at time $t$. You fit a varying intercept (hierarchical) model: $$y_{it} \sim Normal(\mu_{i}, \sigma_y)\\ \mu_i \sim Normal(0, \psi_{\mu})\\ \sigma_y \sim Cauchy(0,1)\\ \psi_{\mu} \sim Cauchy(0,1)\\ $$ I often see specifications where the random effects $\mu_i$ ...
I was revisiting my notes about the classical linear regression model, $Y = X \beta$. If we want to estimate the variance of the least squares estimator we usually suppose that the outputs $y_{i}$ are uncorrelated and have fixed variance $\sigma ^{2}$. We then have $Var(\hat{\beta} ^{2}) = (X^{T}X)^{-1} \sigma ^{2}$ an...
The scenario goes like this: a cell phone user has 1/3 of a chance to send a text message, and a 2/3 of a chance to receive a text message. Question: what is the expected number of text messages received by the cell phone user before they send a text? Is the answer 1/p = 1/(2/3) = 3/2 = 1.5 messages? (the expected valu...
I am running some model inference using AIC and BIC. My problem is that when I go and calculate the (maximum) loglikelihoods of my models, they are usually really high (range between 4700 and 1400 approx.). This is mostly because I have a lot of data points, in the order of 20k, and (apparently) decently good models. S...
So I have an attribute that ranges from 0-100 (similarity of angles). Now I need to transform the values, as I have realized that the values 0~20 and ~80-100 share the same characteristics actually. In particular 0 and 100 are exactly to be treated the same. This of course ruins any kind of regression I try to run. How...
I'm trying to understand (and relate) how much curvature one can expect from fitting a GAM to that obtained from a non-parametric lowess. Is the fact that the GAM fit is quite linear for the two groups in the below, simply because that's likely to be the best fit (or have I mis-specified something)? I have tried changi...
For a research report, I want to show that the standard expression of the Hellinger Distance between two discrete distributions, $$H(p,q)={\sqrt{\frac{1}{2} \sum_{x \in X} \left[\sqrt{p(x)}-\sqrt{q(x)} \right]^{2}}}$$ is equivalent to the alternative expression $$H(p,q)={\sqrt{1-\sum_{x \in X} \sqrt{p(x)q(x)}}}$$ I hav...
In my research we want to know if there is a higher mortality rate from stroke in hypertensive males than in other groups. And we want to know whether there is an interaction between hypertension and BMI and its effect on stroke mortality. I have many demographic variables, comorbidity factors etc. I’m running a Cox su...
I'm currently performing a drug-wide associatinon study (DWAS) in a population-based cohort, in which I'm iterating over commonly used drugs to assess whether they have an association with my outcome of interest. Given that medications are not randomly assigned, but rather prescribed for an underlying condition, we wan...
I am conducting a regression analysis between $X$ and $Y$, where $X$ is the main independent variable. However, I want to control for several variables that are related to $Y$. For example, my dependent variable is loan default and $X$ is a unique independent variable, but I also want to control for loan characteristic...
Context I'm working with product data for a retail company. I have the daily impressions (number of times it was viewed online) for all products over a 30 day period (can get more data). Here is the data for one product: on_sale = [False, False, False, False, False, False, False, True, True, True, True, True, True, Tru...
In a paper I've been reading recently, at some point the authors define a new probability distribution over original data $\mathcal{D} =\{\textbf{x}_1, \dots, \textbf{x}_N\}$, by introducing a gaussian perturbation. In practice, given that we have some (unknown) probability $p_{data}(\textbf{x})$ and some scalar $\sigm...
I have two dependent variables (soccer dataset) that I'm interested in. They have the following skewness and kurtosis: Variable A: % of minutes played --> Skewness: 0.145 | Kurtosis: -1.03 Variable B: Market value development --> Skewness: 7.1 | Kurtosis: 156.76 How can I deal with these high results? I want to analy...
I want to fit multiple (several hundred or thousand) generalized additive models using the statsmodels package. I have different response variables $Y_1,...,Y_n$, each of which i want to model with two explanatory variables $X_1,X_2$ (the same two for each $Y$). $X_1$ is a categorical variable and $X_2$ is smoothed by ...
I have a timeseries data of signals in stock market ([-1, 1]) and I want to find mean values at which I have down trend and upwards trend. I already used Moving Average and Autocorrelation, but it’s not exactly what I need. For example, here's ts data And I want to find two values, like signal < 0.1 and signal > 0.05 ...
The problem I am trying solve involves identifying the best n data points from a dataset. For example if I have dataset with x1,x2,x3 independent variables and y1,y2 dependent variables I want to find the best data points (not variables) that could predict y1, y2 (multi-output) or any interaction effect etc. The reason...
I have a model where I care about testing the differences among interaction terms. To make is more straightforward, I just use lm The model is : mdl<-lm(Ethylene ~ Genotype * Treatment,data=df) I can obviously get the model summary, including the interaction term compared to the reference. What I want to get is the pai...
Context: I mean the $P(X=k)=(1-p)^k p$ not the $P(Y=k)=(1-p)^{k-1} p$. Apparently the mean of the 1st kind of geometric is $\frac{1-p}{p}$ instead of $\frac{1}{p}$ for the 2nd kind of geometric. I believe the relation between the 2 kinds is $Y=X-1$ s.t. $P(Y=k)=P(X=k+1)$. Definition: Afaik, if the probability of an eve...
Is there any benefit in evaluating model performance under different train/test ratios? To me, this sounds kind of nonsense because of these reasons: I cannot access such a parameter when the model is in production, making it pointless to have it in a model selection process; How should I interpret a change from one r...
I have longitudinal retrospective data and want to perform Cox proportional hazards regression. Still, I would be extremely grateful if the CrossValidated community could sanity-check my understanding of how I'm treating censorship, death, lost-to-follow-up, and those leaving the study during the observation period. My...
Suppose I encode the sequence to sequence dataset as a vector of integer $\{0,1\cdots N\}$ where $N$ is the maximun number of unique words in the dataset. For example, I am planning to build a chatbot with inputs maximum of 8 words: Q:Where can I buy these apples ? $$ [8,19,23,5,76,10,2,0] $$ A:At the market downtown ...
This question is from the book "Introduction To The Theory Of Statistics, Mood Alexander", Chapter 7, Problem 15. In genetic investigations one frequently samples from a binomial distribution, except that observations of $x=0$ are impossible; so, in fact, the sampling is from the conditional (truncated) distribution \b...
I'm currently trying to use dynamic time warping to group a large number of time-series I have. Unfortunately, each series has around 400000 entries, and Python can't handle creating a 400000 x 400000 matrix. Is there a another way to use DTW that doesn't use as much space?
According to "Autoencoding Variational Bayes" article by Kingma and Welling the decoder part of the VAE should roughly look like this: log q(z|x) = log N(z; µ; σ^2I) where µ = W4h + b4 log σ^2 = W5h + b5 h = tanh(W3x + b3) From this description, I don't understand what the dimension of the mean and variance vector sho...
In the lecture by D.Blei: https://www.cs.princeton.edu/courses/archive/fall11/cos597C/lectures/variational-inference-i.pdf Variational inference is explained and he shows how to derive the optimal variational distribution. However, he does not show the mathematical details on how he did to go from equation (22) to equa...
I have extensively researched the application of cross validation for unsupervised learning (as it is a requirement by my project manager) but it seems that there is no clear consensus as to how to put it in action. I am currently working on a Clustering project and I have selected 2 algorithms I want to tune : K-mea...