instruction
stringlengths
9
38.7k
When studying the relationship between multiple time series often the first step is to determine stationarity of the individual time series. Given one of the time series, one can check for stationarity by assuming an AR(p) model for some p, and then applying an ADF test. However, from the outset one expects that the se...
I received a reviewer report on a meta-analysis that I submitted which stated that a multivariate regression that I performed should instead be "a backward stepwise multivariate logistic regression analysis since Bsum is insignificant". Ignoring the fact that every source I know says that stepwise procedures should be ...
I'm having trouble understanding why I get radically different results if I try to find the parameter of a Zipf distribution when I use the methods proposed by Clauset et al. (2009) as opposed to using the log-transformed rank and frequency data and fitting a linear regression. This is the code I'm using: # Creating 50...
1. Context I have a dataset structured like this: > str(dataset) 'data.frame': 52135 obs. of 9 variables: $ lat : num 59 59 55 59 59 63 59 59 59 59 ... $ long : num 16 16 12 16 16 14 15 16 15 15 ... $ date : chr "1951-03-22" "1951-04-08" "1952-02-03" "1952-03-08" ... $ julian_day : ...
I am training a model with LightGBM, and I am getting an output like this: [LightGBM] [Info] Total Bins 1981 [LightGBM] [Info] Number of data points in the train set: 28632, number of used features: 15 [LightGBM] [Info] Start training from score 2.534713 [20] training's rmse: 4.7065 valid_1's rmse: 4.79156 [40] t...
Can I use the same training and validation data to perform MLM and train the weights of a classification head? Here is the background of my specific problem: The problem is a binary classification problem using text data. I am using 'bert-base-uncased' from Huggingface. The entire data set was created using various dat...
In this paper (PMID 23123231; paywalled), the authors develop a logistic regression prediction model for Alzheimer's disease. In Table 3 the authors then present disease prediction results after applying the model to a validation set (the Class column specifies probability intervals into which the patients were split):...
I have a sampling process like the following: Randomly select psus from one stage with equal probability Use all ssus of each psu selected for estimation. Each ssu is associated with a statistic from an aggregate of sub-units So for example we want to estimate a statistic about the number of insect per trees in orcha...
I need to test if there is a significant difference in leakage between prototypes. I've tried kruskal wallis and post hoc wilcoxon pairwise and Dunn-Bonferroni test, and the post hoc test always say that there is no significant difference between them for except A.4 and C.4, but that can't be... for example how can th...
I have set of data Columns say $A,B$ Now I form a new data Columns $Y= A+B$ Now $Y$ is the dependent I have another independent data $X$ I now need to fit a regression of the form $Y=c*X^b$ where $c$ and $b$ are constant to be predicted from regression Now I used power fit to find $c$ and $b$ To get a good $R^2$, $AdjR...
I have hypothesised equivalence among 3 repeated measures. The data are such that a nonparametric approach would be needed. What I have considered, but not necessarily know how to implement correctly: Compare confidence intervals at 100 * (1-2 * alpha)% for a Friedman ANOVA. This may be represented in a graph. Attemp...
I know this is technically assignment question. The training data contains 9000 observations and 900 features. I have to build the model to predict the testing data, which contains roughly 5,000 observations and same number of features as the training data. I am wondering that since there are so many features, we use P...
Is bias variance tradeoff a thing for quartile regression? Can I assume the error for quantile estimation follows a certain distribution (e.g., estimated quantile - true quantile follows normal distribution)?
Let $Z$ have a uniform distribution on $[−0.5, 0.5]$. Let $X$ be a continuous random variable which is independent of $Z$. Let$$Y = ⌊X + Z⌋ − Z.$$ I would like to ask how to compute the marginal density function and joint density function of $Y$ and $X-Y$. I have zero idea on how to deal with the floor function. I only...
I’m looking at making predictions of baseline and treated survival from a parametric survival curve that are unbiased. I have a matched sample to try to control for observed confounding and wanted to use doubly robust estimates in my treatment effect model by controlling for covariates. I was wondering, if it was valid...
For some reason my model keeps showing up to be a poor model when checking its accuracy through the confusion matrix and AUC ROC. This is the model I am stuck with after doing backward elimination. This is the logistic output: `Call: glm(formula = DEATH_EVENT ~ age + ejection_fraction + serum_sodium + time, family ...
I am working on binary classification problem: there is a website, where user can do 2 types of actions: Non-target actions Target actions I have a large dataset with columns: utm_source, utm_medium, utm_keyword, ... target There is one row per session. utm_source, utm_medium, utm_keyword and others are parameters of...
Let's say I train a model and it has an RMSE of 2.5. Does this mean, that on average, my prediction will be 2.5 away from the true value? Or does some scaling need to be done in oreder to get this value's magnitute to be in line with the target variable's magnitude?
Is there any mathematical result that states that the Wilcoxon-Mann-Whitney (WMW) test is optimal in some sense, for a specific testing problem that is a subproblem of the general problem the WMW test is testing, say against an alternative of two specific distributions where one is stochastically larger than the other,...
I am performing different Active Learning experiments using several query strategies. One of the query strategies is the "Ranked batch-mode sampling" from Python's modAL library, which is an implementation of Cardoso et al.’s ranked batch-mode sampling. The query strategy computes the scores for each data instance of t...
I want to verify for multicollinearity between independent categorial variables. Which test I should use? First, I want to examine the relationship between the willingness to participate in medical decision making (dependent variabele - 2 categories) and education (independent variable). Later, I would do a multiple bi...
I'm making experiments to evaluate language models to brazilian portuguese datasets. So, i've made so each dataset is divided in 10 parts, I want to use cross-validation to determine the model's performance. But the thing is, I also want to use Hyperparam Search to determine the best parameter for the model. I've red t...
(Using R) - this is my first time posting a stats question online, so please let me know if I'm on the wrong forum or haven't provided enough information and I'll do my best to fix it! About the data and my goal here: Best analogy I can think of is that it's a language course and the final exam is a long conversation. ...
I am working with a distribution with the following density: $$f(x) = - \frac{(\alpha+1)^2 x^\alpha \log(\beta x)}{1-(\alpha + 1)\log(\beta)}$$ and CDF $$\mathbb{P} (X \leq x) = \int_0^x - \frac{(\alpha+1)^2 t^\alpha \log(\beta t)}{1-(\alpha + 1)\log(\beta)} \, dt = \frac{x^{\alpha+1}((\alpha+1)(\log(\beta x))-1)}{(\al...
So I am currently studying the relationship between University Rankings (my dependent variable) and academic freedom (my independent variable, which can take values between 0 and 1). I have a panel of hundreds of universities over 17 years. At first, I was hesitating between a linear model (using OLS regression with fi...
I've recently started learning about Bayesian statistics, and I came across this very nice answer by Xi'an https://stats.stackexchange.com/a/129908/268693, which [in my slight paraphrasing] says the following: Given a family of distributions $\{f(\cdot|\theta): \theta \in \Theta \}$ defined on a sample space $\mathcal{...
I am trying to implement Attention is All You Need paper in PyTorch without looking at any code. I'm struggling to understand how do I get the Keys and the Values from the output of the top encoder. Do I learn 2 linear projections which take as input the output of the top encoder (which is a single matrix) and output t...
In short: MCMC is used to construct posterior distributions for parameters of central tendency and all parameters used in the formula for this central tendency. I only care about the parameters of central tendency which will readily converge. However, several upstream parameters do not converge. Should I worry about th...
I have noticed that Logistic Regression (https://en.wikipedia.org/wiki/Logistic_regression) is a model that used significantly for both Regression problems and Classification problems. When used for Regression, the main purpose of Logistic Regression appears to be to estimate the effect of a predictor variable on the r...
Let $\{f(\cdot|\theta): \theta \in \Theta \}$ be a family of pdfs and let $\pi: \Theta \to \mathbb{R}$ be a prior. According to Bayes' theorem (as stated in, e.g., Casella and Berger), the posterior distribution $\pi(\cdot|x)$ is given by $$ \pi(\theta|x) = \frac{f(x|\theta) \pi(\theta)}{\int_{\Theta} f(x|\theta) \p...
How to deduce the following general result: $$ \operatorname{Var}(\max_i X_i) \leq \sum_i \operatorname{Var}(X_i)\,,$$ where $X_1,\dots,X_N$ are any random variables (maybe not independent) with finite second moment. I have seen this result many times, but I don't know how to prove it. Thank you for your help.
I have a file (corresponding to one and only one person) with n columns (or classes) containing different data: Name (class 1) , address(class 2) , number (class 3), username (class 4), etc (class n). I wish to classify an incoming data as one of these classes. Example : If I get an incoming data to be : "John Smith" ....
Decision Tree I have found Misclassification rates for all the leaf nodes. samples = 3635 + 1101 = 4736, class = Cash, misclassification rate = 1101 / 4736 = 0.232. samples = 47436 + 44556 = 91992, class = Cash, misclassification rate = 44556 / 91992 = 0.484. samples = 7072 + 15252 = 22324, class = Credit Card, misc...
I'm working on a model for survival prediction and using the concordance index to evaluate the results (https://medium.com/analytics-vidhya/concordance-index-72298c11eac7) . I want to show that my model is better than a baseline model using my test set. My understanding is that for a typical test metric (ie prediction...
I'm trying to make sense of some results I ran on a weighted regression with log-transformed IV1 and DV, and IV2, which is a factor variable. IV2 is restaurant price range, categorized as 1 (low price range) or 4 (high price range), to be exact. I'm trying to interpret the effect of IV2 on the DV. The coefficient for t...
What's the difference between Locality Preserving Projection (LPP) and Principal Component Analysis (PCA)? This is our data. It's a 3D plot. Here I use LPP and PCA to reduce the 3D data to 2D data. It gives different results. I know that PCA reduces the dimension on maximum variance, but what about LPP? Locality Prese...
can someone help me please? How can I see the coeficient for municipio6:ano0, considering that I don't want to have a reference level in my model for municipio variable (that's why I set intercept to 0). > m1 <- glm.nb(casos ~ 0 + municipio + ano0 + municipio:ano0 + offset(log(populacao)), data = dataset) > summary(m1)...
I am building DL model that test data can have some different labels compared to training dataset. My semi-supervised model is kind of terrible to predict test data, and I want to know is there any DL paper about this kind of work? And I'm trying to train with multiple datasets that have common labels but also have oth...
It is well known that if a random variable $X$ has distribution: $$ \mathrm{P}(X = x) = \begin{cases} \frac{1}{2}, & x=0,\\ \frac{1}{2}, & x=1,\\ 0, & \text{otherwise}, \end{cases} $$ (i.e., it is Bernoulli-distributed with probability of success $\tfrac{1}{2}$), it saturates Chebyshev's inequality for $k=1$: $$ \mathr...
I'm working with a list of performance metrics. Each row represents some # of observations of one leg of the course/route/etc. So each row/leg will have a best (time), worst, avg and stdev. Adding together the best, worst and average values to get the course/route level totals makes intuitive sense to me, but I'm not...
If a string of characters (S) that is 325384 long, contains 458 As and 22 Bs. What is the probability that if the 458 As and 22 Bs were randomly positioned along the 325384 string of characters that there would be exactly 861 characters between at least one of the AB pairs. Whilst I am interested in the probability of ...
I would like some help with calculating the Fisher Information $I_o(\beta)$ and the expected information for a gamma distribution defined by \begin{align*} f_X(x) = \frac{\beta^\alpha x^{\alpha - 1}e^{-\beta x}}{\Gamma(\alpha)} \; x > 0, \alpha >0, \beta > 0 \end{align*} Where $\alpha$ is a known value and $\beta$ ...
I recently saw some paper about stereo matching : End-to-End Learning of Geometry and Context for Deep Stereo Regression [1] https://openaccess.thecvf.com/content_ICCV_2017/papers/Kendall_End-To-End_Learning_of_ICCV_2017_paper.pdf End-to-End Learning for Omnidirectional Stereo Matching with Uncertainty Prior [2](which ...
As far as I know, Co-variance based SEM requires the normality assumption. To avoid violating this assumption, I am considering using Bootstrap Bias-corrected method intervals for hypothesis testing when performing CB-SEM in AMOS. However, I have found not many studies using these two methods combined. I think the main...
I'm looking for appropriate types of analysis for a data set that contains counts of different crab species across 4 sites with 3 replicates per site (12 in total) over a time period of 1.5 years - 5 sampling time points. The peculiarity of the data set is that each crab species only occurs on specific coral hosts. I'm...
I'm training a BERT sequence classifier on a custom dataset. When the training starts, the loss is at around ~0.4 in a few steps. I print the absolute sum of gradients for each layer/item in the model and the values are high. The model converges initially but when left to be trained for a few hours and sometimes even e...
I am working on a classic problem when the posterior probability distribution of a proportion must be obtained. This parameters is assumed to followed a beta distribution, therefore the number of ocurrence is modelled by a beta-binomial distribution. I am using RJAGS to compute the posterior distribution and have some ...
I have frequency predictions for a discrete distribution: $p(x_1)=0$, $p(x_2)=0$, $p(x_3)=0.05$, $p(x_4)=0.95$ I need to smooth the distribution so I don't have zero values. I think the solution is to use the Lapalace additive smoothing function: $(x_i + \alpha) / (N + \alpha*d)$ But I am unsure what values to use for...
We want to combine two truncated distributions to better model one phenomenon. For example, we have a Gaussian distribution, but we want to modify the right hand side tail to make it heavier. So we want to put a Pareto distribution. Now the problem is that we want to make sure that there is continuity at the density le...
I have the following stochastic differential equation $dX_t=\kappa\left [ \theta-X_t\right ]dt + \Sigma d W_{t}$ I derived formula for $X_t$ which is in the following form $X_{t}=\theta+e^{-\kappa t}\left ( X_0-\theta \right )+\Sigma e^{-\kappa t}\int_{0}^{t}e^{\kappa s}dW_{s} \qquad \forall t \in\left [ 0,T \right ]...
With this very simple data: > A [1] "a" "a" "a" "a" "b" "b" "b" "b" "b" "b" "b" "b" > B [1] "x" "y" "x" "y" "x" "y" "x" "y" "x" "x" "x" "x" > C [1] "l" "l" "m" "m" "l" "l" "m" "m" "l" "l" "l" "l" > response [1] 14 30 15 35 50 51 30 32 51 55 53 55 I try to reproduce the Type-3 car::Anova by using step-by-step term ...
This wikipedia article describes spam filtering using Naïve Bayes: https://en.wikipedia.org/wiki/Naive_Bayes_spam_filtering It says P(S|W) is given as Pr(W|S)*Pr(S) / (Pr(W|S)*Pr(S)) + Pr(W|H)*Pr(H)). However, one could also get P(S|W) by estimating P(W) instead. Most textbooks simply say it's unnecessary to estimate P...
From What's the skewed-t distribution? there seems to be multiple way of defining skew distributions. However I am not sure if these methods are equivalent The original questions show methods from C. Fernandez and M. Steel (1998) P. Theodossiou (1998) - which is the basis of this wikipedia page, and this R package A. ...
Suppose that you have a null hypothesis $H_0$ that you want to test. Let $\alpha$ be a given confidence level, for example $\alpha = 0.05$. Suppose that the test statistic $T$ follows (under $H_0$) a $\chi^2$ distribution, say $T \sim \chi^2 (4)$. In my understanding, the critical region of a distribution means a set o...
I am conducting various active learning experiments on two Biomedical Relation Extraction corpora: 2018 n2c2 challenge: 41000 test samples DDI Extraction corpus: 5700 test samples and using four different machine learning methods: Random Forest, BiLSTM-based model, Clinical BERT, and Clinical BERT with an extended i...
Def. Let $ \theta \in \mathbb{R}^{\mathbb{Z}}$ be a sequence of real-numbers such that $ \sum_{j \in \mathbb{Z}} | \theta_j | < \infty$ and $\{W_t\}$ be a white noise with variance $\gamma$. Then a time series $\{X_t\}$ is a linear porcess if it can be represented as $$ X_t = \sum_{j\in \mathbb{Z}} \theta_j W_{t-j}.$$...
I want to build a model using a dataset. Then, I edit the dataset by changing the class attribute (let's say I will have a new version of the dataset). After that, I want to apply the same model to the new version of the dataset. Is this procedure correct? Because I did it but the performance of the model improved sign...
Let $X_i$ be iid random sample from $exp(\lambda)$ with $f(x;\lambda)=\lambda e^{-\lambda x}$ for $x>0$ and $\lambda>0$. Find the $\alpha$-level uniformly most powerful test for $H_0: \lambda\le \lambda_0$ v.s. $H_1: \lambda> \lambda_0$. I try to use the Karlin-Rubin theorem as follows. Under $H_0$, we take $$T=2\lamb...
Suppose that we want to know how the price of a house changes per meter square of the area of the house. Further suppose that I have a dataset as the following: Area | Price 100 200k 120 230k ... That is, only the area and the price of a set of houses. Given this setup I can think of two different ways: Fit a l...
The screenshot below is from a paper that I am reading and the author says it is a non-parametric regression. The explanation below just seems like a normal OLS with some covariate, fixed effects.. etc. What exactly is a non-parametric regression and how do we see it from the equation below? When do we use it? The only...
Assume that you have made a PCA analysis and you got your eigenvectors inside the projection matrix $W$. If you project your data $X$ with $W$, then you get the desired projected dimension. But PCA and ICA are opposite. If we look at this picture. PCA is projecting the most principal data, while ICA is projecting the m...
Scenario: I have data comparing the number of tree stems in 30 forest plots between two sampling years (1992 and 2012). Each plot received hurricane damage between these 2 sampling years -- this damage was coded as being 0-100% of trees felled/damaged. I ran a linear regression using lm() in R including a centered year...
With all the concern about reproducibility, I have not seen a very basic question answered. Using the standard hypothesis testing approach, if one experiment results in p<0.05, what is the chance that a repeat experiment will also result in p<0.05? I've seen a related problem approached by Goodman (1) and others, start...
For GLMs in the exponential family, we can obtain the standard errors for the regression coefficients as a function of the diagonal of the fisher information matrix. Does this still hold if the regression distribution is not in the exponential family (this is of course technically not a GLM but I'm not sure if there is...
can you help me please? In this model, the interpretation of the continuous variable tmax for an example would be: a increase 1 unit of tmax (exp(coef)=1.06) increases in 6% the incidence of disease in a month. Considering that casos = monthly number of cases of the disease, and populacao variable being used as offset ...
I was reading the following link (https://en.wikipedia.org/wiki/Scoring_algorithm) on the "Fisher Scoring Algorithm". As I understand, the Fisher Scoring Algorithm is similar to the Newton-Raphson Algorithm, but is used more to optimize Likelihood Functions of Statistical and Probabilistic Models. Here is my understand...
Let $p$ be a positive integer and suppose that each observation in my data set is a length-$p$ multivariate normal vector, and I have $n$ (an integer) observations of the length-$p$ multivariate normal vector. So $$ \vec{Y} = \beta_0 + \beta_1 \vec{X}_{1} + \cdots + \beta_k \vec{X}_{k} + \vec{\epsilon}, $$ with $\vec{...
I see it is often quoted that the omitted variable bias formula is $$ \text{Bias}\left(\widehat{\beta_1}\right) = \beta_2 \cdot \text{Corr}\left(X_2,X_1\right) $$ where $\widehat{\beta_1}$ is the estimated coefficient in the biased model, $\beta_2$ is the true coefficient of the omitted variable $X_2$ in the full model...
Scenario: I have data comparing the number of tree stems in 30 forest plots between two sampling years (1992 and 2012). Each plot experienced hurricane damage between these 2 sampling years (in 1996) -- this damage was coded as being 0-100% of trees felled/damaged. Interest: my ultimate hypothesis I'm trying to investi...
After using inverse probability of treatment weighting (IPTW) on the variables of my dataset, there is still an imbalance in one covariate between the two groups. My outcome is binary (yes/no) and it is not a longitudinal study. One example is: library(WeightIt) W.out <- weightit(treat ~ age + married + race, ...
I'm working on getting a read out of a Logistic regression classification model (setup in Python via Scikit-learn's LogisticRegression() wrapped in a OneVsRestClassifier()). I got the confusion matrix running pretty quick, and after a decent amount of effort I got the PR Curve (with a lot of help from https://stackover...
Im comparing two multidimensional MDS solutions, the solutions have the same number of dimensions. I don't think I can use the permutation version of procrustes analysis (commonly, PROTEST in R::vegan) because I doubt my two sets are exchangeable. I read that the sets must have similar covariance matrices to be exchang...
Good afternoon, I am trying to convert annual reported rates to daily probabilities. However, I have annual rates that only occur during certain months of the year. For example, I have an annual mortality rate of 0.72 and this rate needs to be converted to a daily probability of mortality across only 4 months (120 days...
I am looking for the right approach to do a sample size calculation for the positive predictive value in a cross-sectional study. From external sources, I know the prevalence in the population of interest. I also have an estimate of the sensitivity and specificity of the test. My question is now: How many subjects do I...
I am conducting a regression analysis on TNF-a in relation to a genetic marker. I performed a post-hoc power calculation using a software called Quanto. The mean(SD) of my outcome variable is 34(14). The Minor Allele Frequency of the genetic marker is 0.102. The Beta coefficient of the predictor from the regression mod...
Suppose I have a conditional (or any) distribution as so: $$ p(A \mid B,C,D) $$ and in the text, I want to refer to the variables $\{A,B,C,D\}$ associated with that density (or mass). Is there a formal name or notation for this set? What is the formal way of referring to it? Is there a commonly used symbol? It is not t...
I am trying to figure out if/how I can understand if animals are choosing particular plant species for foraging or just using them based on their availability. To do this, I need to characterize the availability of multiple plant species in plots. I have many plots, each one had 8 quadrats (roughly 5% of total plot are...
I am analyzing a set of data of two factors, one at three and other at seven levels, to check how they influence my response variable. However, when testing the ANOVA assumpions it results it follows a normal distribution but the data is heterocedastic. I know that for heterocedastic one-way ANOVA there is the Welch te...
When fitting a Poisson regression on data with low expected values, the intercept term has a small bias even when the model is perfectly specified. Below, I simulated data just using $y \sim rPois(exp(\beta_0))$ and then fit the data using the glm model $log(E[y]) \sim \beta_0$. On average, the estimates are slightly b...
We are using a mixed-effects model to assess the potential impact of different treatments (categorical variables) on a specific soil characteristic (numerical variable). The study uses a randomized complete block design with plots nested in blocks. Longitudinal data were collected and initial assessments of the raw dat...
Let's suppose I perform two separate logistic regression models in two different subgroups of my dataset. glm(death ~ age + ..... , data = female, family="binomial") #female population glm(death ~ age + ..... , data = male, family="binomial") #male population From these, I obtan an OR for age in the female group and o...
I am confused about the derivation of importance scores for an xgboost model. My understanding is that xgboost (and in fact, any gradient boosting model) examines all possible features in the data before deciding on an optimal split (I am aware that one can modify this behavior by introducing some randomness to avoid o...
I want to prove the following, for a given image distribution $P(X), \mathcal{X} \in \mathbf{R}^{n \times m}$, we have a masking model, $\phi:X \rightarrow \{0,1\}^{n\times m}$. We also have the complement mask $\bar{\phi}$, which basically does the complement masking of $\phi$. I want to find the entropy $H(X \circ \p...
This is the target I want to integrate with Monte Carlo with control variate method: $$\theta = \int_{1}^{\infty}\frac{x^2}{\sqrt{2\pi}}e^{-x^2/2}dx$$ I have checked with Wolfram that it is 0.400626, so the control variate should be converge to this value. I use standard normal distribution and gamma distribution (shap...
I am doing a longitudinal study investigating how Y changed across time, with two time-invariant covariates at level two (between-person), one is Gender and another one is OnAge. So I tried to formulate a conditional growth model via lme4, and if I was correct, the equation should be like this: Level 1: Yti=b1i+b2i Ti...
In my study I want to test if certain cities were predominantly visited for holidays or for work (see boxplot below). That means I want to know if there is a difference between the grey box and the white box for each group (City). I have about 20 persons in my study. Some were traveling a lot. That is why for the boxpl...
I'm working with a data set from here: https://nij.ojp.gov/funding/recidivism-forecasting-challenge To put it simply, it is a binary classification problem. The gang affiliation variable is pretty useful, but it is only recorded for men, making this a missing not at random data, with the missingness completely correlat...
I am interested in numerical data imputation problems: how to properly estimate missing values in a tabular data set (rows and columns) with missing numerical values? In 2018, Yoon et al. proposed the GAIN framework, a Generative Adversarial Network tailored for numerical data imputation. Here is the link to the origin...
Suppose that the DGP is an AR(p) with a unit root. When we fit, using OLS, an AR(1) model $x_t=\alpha x_{t-1}+u_t$ to the data, we get $\alpha=1$, indicating, correctly, that this is a unit root process. I've been trying to prove this, but so far I've not been successful. Can someone give some hints?
So I am trying to validate my STAN model before using real data and am having some trouble estimating parameters separately. My data structure contains count data with people on the rows, and test items in the columns. I am trying to use a covariate for item type, for example multiple choice, and see how this affects m...
Hi StackExchange Community, I am performing a Principal Components Analyses (PCA). I would like to know how to extrapolate some PCA components with other variables that were not considered in the PCA function. I have a nutritional survey with 60 questions that was applied to 420 people. The frequency of consumption was...
To compare two treatments (independent variables = intervention A vs intervention B), dependent variables are lipid levels (i.e. LDL, HDL, TC, TG) in scales. Blood samplings were collected at various time points for 3 times. What is the best test to calculate the mean change for each dependent variables while factoring...
A dataset is having 2 or more timeseries eg: with two timeseries x and y I need to predict the slope and intercept using Linear regression model b/w x & y. But my data can have Outliers My Approach: Calculate Mahalanobis distance using MCD Find the Outlier using some threshold value, if greater than threshold then ou...
While building ML model I'm facing a covariate shift detection, so I need to compare old labelled data and new unlabelled data. I'm planning to use KL divergence to quantify the distances between these two distributions. However, KL divergence is asymmetric. Hence, which distribution should be $P(x)$ and which $Q(x)$? ...
I'm trying to implement the (R-)ALoKDE algorithm for the density estimation of the data streams. The algorithm has been published and presented in [1, 2]. Although the algorithm seems simple, I'm struggling to implement it, even in the 1D case. My current (1D) implementation can be found on GitHub [3]. I believe that m...
I would like to do a DIF analysis on a scale The problem is that I have missing data for 10 items for the focal group The questionnaire in question exists in two forms: a 15 item version and a 25 item version When we collected the data from different researchers we realized that they had not all used the same version: ...
Is there a way to demonstrate strength of a Hierarchical Bayesian Model versus a non-Hierarchical Bayesian Model on simulated data? I'm ideally looking for a plot that shows that a Hierarchical Bayesian Model better succeeds in detecting a difference/effect against a non-Hierarchical Bayesian Model as we keep decreasin...
Let the DGP be given as: $$X_t\sim t^2\chi_1$$ with all $X_t$ independent. Based on simulations, an ADF test fails detect non-stationarity (i.e. it does not find a unit root). This makes sense, since ADF is a parametric test that assumes a completely different model than the DGP above. I'm looking for some other test t...
I have already a SARIMA model working at my company (an ecommerce) to predict sales. Right now I am only trying to improve it. The current model is only using endogenous variables (i.e the sales variable). Commercial teams claims that Stock info should be really useful to help predicting sales, as it is very correlated...
Per the regression model: $\mathbf{y} = f(\mathbf{x},\mathbf{\beta}) + \mathbf{\epsilon}$ Where the $\beta$ estimate of LAD regression is given by: $ \hat{\beta}_{LAD} = \text{argmin}_{ b} \sum_{i=1}^n |y_i - f(\mathbf{b},x_i)|$ Now, some background, per Wikipedia on the topic of Iteratively Reweighted Least Squares, ...