instruction
stringlengths
9
38.7k
On Wikipedia the null hypothesis of the Ljung Box test is given as: $H_{0}$: The data are independently distributed (i.e. the correlations in the population from which the sample is taken are 0, so that any observed correlations in the data result from randomness of the sampling process). Why is the null hypothesis "t...
This question has been addressed previously in here but my question is different. It is from Hogg and McKean's "Introduction to Mathematical Statistics". Theorem $5.2.7.$ Let $\{X_n\}$ be a sequence of random variables bounded in probability and let $\{Y_n\}$ be a sequence of random variables that converges to $0$ in ...
Let $X = (X_1,\cdots, X_n)$ where $X_1,\cdots,X_n$ be i.i.d from the uniform distribution $U(0,\theta)$ with $\theta>0$. I was asked to show the regularity condition of the Cramer-Rao lower bound: $$\frac{\partial}{\partial\theta}\int h(x)f_\theta(x)dv = \int h(x)\frac{\partial}{\partial\theta} f_\theta(x)dv$$ does not...
Why do I get significantly different answers from the logistic regression and survival analyses? How can I fix this code? Logistic regression: logit1 <- glm(Hospitalization~ Age+Sex+Race_cat+Condition+Tobaco_Use+previous.positive+Vaccination_Category, data = dataset_D,family = "binomial") status.top ...
the function loss of VAE is : def vae_loss(y_true, y_pred): reconstruction_loss = binary_crossentropy(y_true, y_pred) kl_loss= -0.5 * K.sum(1 + z_log_var - K.square(z_mean) - K.exp(z_log_var), axis=-1) kl_loss *= self.beta return K.mean(reconstruction_loss + kl_loss) but the loss is negative...
I recently conducted an observational study with a relatively small sample size, comprising three groups (A: 30 patients, B: 500 patients, C: 30 patients) with varying event rates (5-10%). To estimate treatment effects, I employed Inverse Probability of Treatment Weighting (IPTW) using several methods, including glm, C...
I am performing some simulations for a power analysis but, I am finding some strange results. In a scenario of a two-way ANOVA (5*5) where I check a relevant interaction (One level of Factor B different in a level of Factor A), running an ANOVA type III will yield a significant result for Factor B and the interaction A...
I have an income rank variable which is calculated using the following formula: Income rank = (j-1)/(n-1) where j – 1 represents the number of people within the individuals' comparison group with lower income compared to this individual, and n represents the total number of individuals within this comparison group. Thi...
In statistical modelling, it is advised to have at least 10 observations per predictor as a rule of thumb. It is further suggested that in survival analysis this corresponds to number of uncensored observations. Does censoring within this context include censoring at the end of follow-up? How would this differ between ...
I'm currently searching best hyperparameters for a regression model of Gradient Boost, using 5-Fold Cross-Validation and OPTUNA. However, I'm uncertain about which model's hyperparameters to choose, between cases A and B described below. My code is like below: def params_model_gb(trial): params = { ...
I've been learning about spline regressions, and I'm trying out a statsmodels negative binomial spline regression as a changepoint detector for a time series of count data. I'm pretty confused about the coefficients of the model, and I'm hoping I might ask for some pointers. I'm using the statsmodels.api GLM to fit the...
Say I have a non stationary process. Let's say I take one realization of this process given by finite number of random variables $X_1$, $X_2$,...$X_n$. Now I plot them on a histogram. Can this histogram (distribution) change significantly with multiple realizations of the same non stationary process?
I have issues when reading a paper when calculating the eta parameter in the following equation where the authors of the paper describe eta as the vector of the covariance-standardized residuals, which can be simulated from a joint distribution estimated with the copula density function. Can someone help me by explain...
I have the standard deviations and means of 7 questions of a questionnaire and also the sample size. How can I calculate the standard error of the mean of the total questionnaire? I know SEM is standard deviation divided by the square root of the sample size but I don't know how to calculate the total SDs from individu...
What does it mean to have a high p value but a very very low effect size? What can I conclude? Is it necessary to report the effect size when p=0.998?
I have a set of 30 data points, measuring percent of acknowledgement of an event that should not happen. So ideal value is 0.0 but we are getting some values greater than that, of order $10^{-5}$. It is not time series data. A person has elicited an upper bound. If this is crossed, we ring some bells, but we want a mor...
I have an experiment data (total of 96) with 10 predictor and 2 response variables. I want to build a traditional multiple linear regression model to them in R. My aim is to build clearly interpretable (coefficients) and explanatory models for a journal article. Not all variables being significant, I have been trying t...
I am trying to derive a formula for the variance of the fourth sample central moment $m_4=\frac{1}{n}\sum_{i=1}^n (X_i-\bar{X})^4$ (where $X_i$ is the $i$th realization of a random variable, $\bar{X}$ the sample mean, and $n$ the sample size) in terms of population statistics (variance, kurtosis, etc.) and sample size....
Let's imagine an NxM contingency table, where rows represent groups and the columns represent attributes, so the table describes the number of entities with given attributes belonging into given groups. If my understanding is correct, the chi-square test only analyses ratios, i.e. it compares the ratio of entities with...
I have two arrays, one representing an auditory stimulus and the other representing neural activity from auditory cortex. The auditory stimulus has known temporal and spectral structure. The neural data has unknown structure, but visual inspection suggests that some stimulus types elicit neural responses with temporal ...
I am struggling to understand a proof from Browne M. (1984) Asymptotically distribution-free methods for the analysis of covariance structures. Given $\boldsymbol{\delta_s}=n^{\frac{1}{2}}(\boldsymbol{s}-\boldsymbol{\sigma_0})$ has null mean vector and covariance matrix $\boldsymbol{Y}$, with null asymptotic mean and a...
I am working with some biological data where I am trying to compare 5 categories of genes by expression which occur at different loci (locations on the chromosomes). I have samples from different tissue categories and 3 technical replicates per sample. Since I am interested in comparing gene categories by locus, I cons...
I have a dataset from RNA sequencing of 4 different regions and comparing 2 groups. I would like to be able to compare the average expression of each group for each gene, however, I don't know the optimal multi-parametric tests allowing me to generate the most information. My idea was to carry out a correlation study (...
First, I understand that including covariates in the outcome model after matching is optional based on reading the matchit vignette and similar question here. However, I'm a bit confused on what is the recommended/correct way of specifying matching covariates when estimating effects after matching with exact matching. ...
I am trying to find the p-value to test a null hypothesis using a Standard Two-Sample t-Test. Usually I would use tsum.test(mu1, sd1, n1, mu2, sd2, n2, conf.level=0.95, var.equal=TRUE) but I am not given mu1 or mu2 or sd1 or sd2. Instead, I am given mean difference d=2.7 and standard deviation sdd=15.9 and ...
I am involved in writing a manuscript applying logistic regression to estimate rates of seafood mislabelling. The model (fitted using glm() with the default logit link) employs source (grocery store, restaurant, or sushi bar), state (modified or plain), appearance (cooked or raw), form (chopped, chunk, fillet, or whole...
If the pdf of a random sample is $f(x)=e^{-(x-θ)}$ where $x \geq θ$, Show that $T=X_{(1)}$ is a sufficient statistic for $θ$. Can one show that $T$ is a sufficient statistic for $θ$ in the following manner? Step 1: Find the pdf of $T$ $$f_{x_{(1)}}(x_{(1)})=ne^{-n(x_{(1)}-θ)} \quad x_{(1)} \geq θ$$ Step 2: Find the joi...
I'd like to use Catboost for actuarial models (eg claims frequency). Although I see that Poisson loss is an option, I don't see that exposures are directly supported. How do people deal with this?
Here is my understanding of these topics: MLE is better when you know about the type of distribution that generated data (ex: formula for mean of normal distribution is different from mean of binomial distribution which is different of mean of negative binomial distribution ..... and all variance formulas are also dif...
If : OLS estimates are BLUE (best linear unbiased estimator) OLS = MLE MLE is used for GLM regression Does this also mean that all regression coefficients from GLM are also BLUE? Or is this only correct for simple linear regression? If the first order conditions of MLE and OLS are identical, is MLE as efficient as OL...
I am having a lot of trouble determining if a model is linear or not linear. Within the computer, all models are stored as if statements ... which means they can be written as a long line of if statements. EX: Apparently all popular models are linear: GLM, logistic regression, polynomial regression, GAM model, spline...
Suppose there is a school with 15 male students and 15 female students. Each student runs 100 meters and we measure the time. Next month, the students again 100 meters and we measure the time. The month after that, the students again 100 meters and we measure the time (we have now 3 measurements for each student) If y...
I'm trying to determine if there's a statistically significant difference between the O2 permeability into two different materials. The measurements are percentage of O2 (O2%), measured every 15 seconds. O2% can obviously only go up to 100%, so the data looks like an exponential decay, mirrored about the x-axis (like $...
I'm analysing the breakdown of substrates (i) that were previously treated with a first enzyme for defined time periods (j), and then subjected to a second type of enzyme (l) that will generate the final product of the sequential enzyme reaction. I'm using the 1st order kinetic model: p (i,j,l,t) = Sij0(e^(Kijl * t)) w...
Today I came across Value Evaluation Algorithm under the topic of Bellman Equation when learning reinforcement learning, which is stated as: While not converged: Policy Update: $\pi_{k+1} =\arg\max_{\pi}(\gamma_{\pi} + \gamma P_{\pi}v_k)$ Value Update: $v_{k+1} = r_{\pi_{k+1}} + \gamma P_{\pi_{k+1}}v_k$ This algor...
I think it is an obvious question with an obvious answer, but I want to confirm. In hierarchical regression models, if some clusters have very few observations, the coefficients for those clusters should be less reliable compared to clusters with more observations. In a longitudinal regression model, if some medical p...
I trained an ARMA model using Python's from statsmodels.tsa.arima.model import ARIMA . Separated the training and testing data, and fitted the model with parameters p, d, q = 1, 0, 1. Below is the result of plotting my rolling prediction results (red) against the test (orange). At first, I thought this was not making g...
I have 9 variables, namely BMI, waist-to-hip ratio (WHR), healthy-diet (HD: a score of 0 to 4, close to 4 indicates healthy), waist circumference (WC), neuroticism score (NS), body fat percentage (BF), physical activity (PA: total MET score data obtained from uk biobank), pack years of smoking (SMK) and alcohol intake ...
I'm using the BVAR package in R to estimate a Bayesian vector autoregression involving the following monthly variables: US Capacity utilization, US Total Employees, US PCE index, and 5,10,20,30 year US yields. The yields are in levels and the rest are in 12xlogs. I have specified the model following https://link.spring...
i want to find our average length of stay in months with a discrete values however the number of months in the dataset is up to 60 that we can treat as continuous. I would like to determine when is better to use poisson analysis and when is better to use linear regression analysis for predictive modeling?
I understand why a T-test uses the standard error, after all we are dealing with the inaccuracy of small samples. $$T = \frac{\bar{x} - \mu}{\bar{s} / \sqrt{n}} = \frac{\bar{x} - \mu}{SE} $$ But why does Z-tests also uses standard error (calculated using the population standard deviation (sigma))? $$Z = \frac{\bar{x} -...
I have 5022 data files. I want to feed them into a CNN model. However, the lengths of data files vary from, say, 50 to 1015 rows (the number of columns is constant). In the case of image files, we can resize or downsample. However, the files I am working with are not image files. What options do I have to feed those da...
Question is Let X be a random variable with $E(X)=1$ , $V(X)=5$. I need to find (a) $E[(1+X)^2]$ and (b) $V(4+3X)$. I think I solved (b) alright. Please let me know if there is an error. For (b), I used definition of variance $V(aX+b)=a^2*V(X)$. So in this case, it would be $V(4+3X)=3^2*V(X)= 45$. How can I solve (a)? ...
I just read a question from here (Likelihood ratio minimal sufficient) and have some thoughts. Let me restate the question first: Consider a family of density functions $f(x|\theta)$ where the parameter space for $\theta$ is finite, that is, $\theta \in \{\theta_0, \cdots, \theta_p\}$. Assume that $\theta_0$ is such th...
I am testing if a coin is fair by throwing it n-times and having n/2 + sqrt(n) heads. However, I get very different p-values from both binomial and chi-squared tests. In particular the relative difference (chis_p - bin_p)/chis_p is close to 50% even when n grows larger and larger. I already read the post Does a 2*2 chi...
I am getting acquainted with statistics and R and got stuck with my model. I am hoping someone could give me some insight on how to overcome overdispersion in generalized linear mixed models (GLMMs). So, my model is trying to explain the variance in fungus infection in frogs using population density, air moisture (VPD)...
I am trying to calibrate a Heston Model with 100 call options using this paper https://arxiv.org/pdf/1511.08718.pdf. In algorithm 4.1 on page 18, they define the dampening factor as: $$\mu_0 = \omega \text{max}\{diag(J_0)\}$$ Where $J_0$ is the gradient of the cost-function wrt the parameters you want to estimate. The ...
Say, we have three groups and we want to run a test of group invariance with the following data. set.seed(1234) df <- data.frame( id = 1:300, group = as.factor(rep(c("a", "b", "c"),each=100)), x1 = round(rnorm(300, 3.00, 0.50),2), x2 = round(rnorm(300, 3.00, 0.50),2)) df$dv <- round(.20*df$x1 + .30*df$x2+ rn...
I am using survival analysis to model Treaty ratification, using country-treaty dyads as my primary unit. This means that I have several hundred survival spells covering different time periods (when the Treaty opened onwards). Other research has used specific years in their survival analysis and regressions, e.g. one T...
The Wikipedia article on KL divergence mentions a link with data differencing. Directly quoting Wikipedia (as of 2023/11/01): Just as absolute entropy serves as theoretical background for data compression, relative entropy serves as theoretical background for data differencing – the absolute entropy of a set of data i...
I'd like to estimate the factors that determine the development of heating networks in French municipalities. To do this, I use various variables (population density, age of dwelling, ideology of the municipality, heat consumption, fuel poverty, etc.) to determine the probability of the presence of a heating network in...
I have fitted a GAMM using the mgcv package in R. The predictor age is a continous variable and is included with a smooth function in the model. library(mgcv) themodel <- gam(survival ~ s(age, bs="tp", k = 4) + s(mother_id, bs="re") + s(litter_id, bs="re"), family=binomial, data=thedata, ...
I have two response variables, one is gaussian (parental feeding rate of chicks per hour "Rate_h") and one is binomial (proportion of chicks that survive to fledging "propfledged"). I want to see whether the two responses covary at the among-individual level ("ID"). I am unsure how to properly specify my priors for the...
Note: for the sake of readability, this question was heavily shortened. Parts based on a humane mistake were removed, and the focus was put again on the biased mixed models. Please correct me if I have understood or made something wrong. The question is, why the mixed models of the lme4 and nlme packages of R do seem t...
I have received two differing recommendations on analyzing whether a categorical variable X varies over time when I have a continuous outcome Y measured at multiple time points: Approach 1: Prespecify a model including the interaction term X*time along with main effects. Fit this model and report the results for X*tim...
I would like to know whether it is possible to compute one identical coefficient for three different variables in a regression. So instead of estimating $\beta_1$, $\beta_2$, $\beta_3$ here: $$ Y=\beta_0 + \beta_1 x_1 + \beta_2 x_2 + \beta_3 x_3 + e $$ I would like to estimate one single coefficient from $x_1$, $x_2$, ...
I have a very large library of technical drawings (in image only format) specifically of mechanical parts, grouped in bundles. The drawings have various levels of cleanliness since some were hand drawn and some come from CAD software. The drawings may have line linking annotations to the object itself. I would like to ...
I would like to use a bayesian model to determine which position (X, Y) is most likely the best position to score a goal in soccer. For this I have a dataset of a soccer club with all its goals and shots with X and Y coordinates and the type of shot for some seasons. To make it more clear, imagine we have the following...
I have the temporal data of Landslide events in CSV format. My data consists of Year, Month, and Day of events. I want to see if there is temporal clustering for events or not by using Ripley's K function (kest function in R studio). Actually, I got the Ripley'K function plot for spatial data (Latitude and longitude) b...
I am working on a paper where we plotted BMI trends as a function of age in the population. We plotted trends for six databases, then we plotted for each sex, then for race, in three categories. I mean that I have a lot of trend lines, and I have no idea how to summarize in a few graphs all the trends plotted and where...
I am investigating effect of various "treatments" on various disease outcomes with univariate mixed logistic regression models corrected for covariates: f1 <- as.formula(paste(disease, "~ age + ", t, "+ (1 | relatives)")) where disease is binary age is continuous t is binary relatives is a factor (relatives h...
It is common to break down the total sum of squares (related to the total variance in $y$) in a regression problem, into components. $$ y_i-\bar{y} = (y_i - \hat{y_i} + \hat{y_i} - \bar{y}) = (y_i - \hat{y_i}) + (\hat{y_i} - \bar{y}) $$ $$( y_i-\bar{y})^2 = \Big[ (y_i - \hat{y_i}) + (\hat{y_i} - \bar{y}) \Big]^2 = (...
I'm running Cox-LASSO (using glmnet as explained by Tay et al) on about 50 variables with about 300 observations. The variables fit into different categories like "clinical scales" or "risk measures". One category of variables is highly correlated to each other and only each other. It's about 12 of them. My thinking i...
I estimated a 2PL model for ordinal data and got discrimination as well as difficulty parameters for each item. To be able to estimate a cut-off value for the discrimination parameter, I wanted to transform it to a factor loading metric. In another thread on here I found the formula: $\frac{\alpha}{\sqrt{(1+\alpha^2)}}...
Assume that you having $N$ clusters. Each cluster have multiple classes. So we know the class ID for every major clusters, but not the class ID for the data points inside the major clusters. Each colour is its own class ID. E.g red can be class ID 1 and blue can be class ID 2. Assume that you are using Support Vector M...
I am trying to create a linear model where the dependent variable has the following summary features: Min 1st Qu. Median Mean 3rd Qu. Max 0.1579 0.3155 0.3547 0.3459 0.3827 0.4583 There were some notable outliers on both ends, so I used a robust linear regression. In training the model, I logged both the de...
For my experiment, I am comparing the results of melanoma grades( ordinal data, such as Stage 1, 2, 3, 4) as obtained from my proposed noninvasive imaging modality to that obtained from the gold standard (biopsy). In that case, how do I compute the sample size required to have an agreement between these two methods 90%...
Suppose I have a survey and for the sake of simplicity let us suppose that I have asked a question: "What motivates you to work more efficiently?". Now, if the possible answers were 'Money.', 'Social status.' or 'Both.', how can I test properly whether money or social status is more important and check, whether this di...
The .query method in pgmpy computes the effect of one variable X on Y given evidence Z. I'm not sure Z is a set of observed covariates; if that is the case, isn't it possible that, depending on the structure of the graph, a valid adjustment set does not exist?
In a typical training loop what is the correct way to report and average metrics like accuracy and loss. Should you maintain a running average through the whole process or reset it each epoch. What is the impact of doing either on and is one more correct? train_loss = 0 num_samples = 0 for i in range(EPOCHS): for bat...
If we use classification labels from a machine learning model in a linear regression, and treat those labels as the ground truth, will the resulting confidence intervals be valid? Imagine we have $n$ labelled (ground truth) points and a larger set of $N$ unlabelled points. We train a machine learning model on the $n$ ...
I tried running analysis using glmmTMB with profile=TRUE and the model that previously wasn't converging, now converging, anyone knows what assumptions does this parameter "profile" takes and whether this is reliable?
In another question, I asked for $\mathbb{E}\left( \frac{X}{\lVert X \rVert} \right)$, in the case where $X \in \mathbb{R}^d \sim N(\mu, I_{d})$. Somebody posted an exact formula based on the symmetry of the isotropic covariance case. I am now interested in obtaining some expression (or approximation) for the more gene...
I have an (low incidence) binary outcome compared between 2 groups. The intervention for group 1 is coming from a specific type of center (academic) while group 2 from a different center. It is not possible to randomize due to the nature of the intervention. What is the best way to address selection bias in my analysis...
In papers about unsupervised clustering I see a lot of references to a metric "clustering accuracy" or "unsupervised clustering accuracy" (ACC) which is usually defined as something like: $$ ACC(x,y) = \frac{1}{N} \max_{m}\sum^{N}_{i=1}1(m(x_i) = y_i) $$ where m is all possible permutations of the x and y. I think the ...
I have read that conformal prediction requires IID. However, I have seen methods that enable uncertainty quantification for time series forecasting. Do you know if there is some similar for time series classification?
I don't know how to interpret the ordinal variable 'Stress' in my binary logistic regression analysis.'Stress' was measured on a 10 point scale where 1 is 'Least stressed' and 10 is 'Most stressed'. The outcome variable is prosocial behaviour. Edit: I now understand that the variable 'Stress' is not significant (p>.05)...
I recently read a paper describe their result with MA-contour plots, I did some searches, but most of the information I could get was about the results of contour plots, which seemed to be different from the data in the article. Is this a variant of MA-plot? See Figure 2g of https://doi.org/10.1101/2023.08.21.554109
Here is regression model without penalty: $$y = \beta_0 + \beta_1 x + \epsilon$$ Here is regression model with penalty: $$y = \beta_0 + \beta_1x + \epsilon + \lambda\beta_1^2$$ Here is the error term for the model without penalty: $$E = \sum_{i=1}^{n}(y_i - (\beta_0 + \beta_1x_i))^2$$ Here is the error term for the mod...
Suppose there is some data and all assumptions for regression are met. I fit 2 regression models now: Case 1: Regression model where all coefficients have significant $p$ values but overall the model has high error. Case 2: Regression model where all coefficients have non-significant $p$ values but overall the model h...
I've determined there is a difference in factor levels on a dependent variable. I'd now like to determine which level differs from other levels. I know I can use contrast coding, specifically deviation coding (described here) to compare each level against the grand mean. However, problems are: Comparison of one level ...
I have a dataset containing observations at time t and t+1 of ratings A (best) to E (worst) and Default. I want to use transition matrices to predict future ratings t+2, t+3, etc The transition matrix of the full portfolio is monotonic (transition to a further state is less probable than a transition to a nearer state)...
I start with Binomial distributed random values with known $N$ and success probability $p$. I can easily estimate PMF and CDF of such distribution. Now assume these Binomial distributed random values go through a filter, for example moving average. Is the PDF of the new distribution well defined? Context: my goal is to...
I'm reading the paper "The Fully Convolutional Network" and I don't understand this passage in 3.1: Typical recognition nets, including LeNet [21], AlexNet [19], and its deeper successors [31, 32], ostensibly take fixed-sized inputs and produce nonspatial outputs. The fully connected layers of these nets have fixed di...
I'm following the third recipe of this answer to estimate the Shannon entropy of my samples using histograms. My expectation was, increasing the sample size should lead to a better estimation of the true entropy. To test that, I sampled from a Gaussian distribution $N(0, \sigma^2)$ with known entropy $H(X) = 0.5[1 + \...
I have been told that the heteroskedasticity-robust standard error of $\hat{\beta}_1$ from an OLS regression with a binary $X_i$: $Y_i = \beta_0 + \beta_1 X_i + u$ should be the same as the conservative estimator of the sample average treatment effect (SATE) SEs when treatment is randomly assigned (such as in a randomi...
I am doing research and interested in the following question: What are the evaluation metrics for chunking, retrieval and synthesis steps for Q&A, when I do NLQ with LLMs? I am looking for scientific approach, not just human verification. I am familiar with this article for retrieval, but cannot find anything on on met...
I'm struggling to grasp Gaussian Process Regression (GPR). I am familiar with the weight-based methods since we can use a basic linear regression to understand about how it works. While I understand weight-based methods like neural networks, I find it challenging to find straightforward explanations or simple examples ...
Suppose we have random variables $$X \sim N(0, \sigma_X^2) \\ U \sim N(0, \sigma_U^2) \\ V \sim N(0, \sigma_V^2), $$ where $X$, $U$ and $V$ are independent. And $$ S = X + U \\ T = X + V. $$ Is it possible to define a linear combination of $S$ and $T$ such that conditioning on $$R := aS + bT, \ \ \ a, b \in \mathbb...
While working on a meta-analysis, I found different types of Chi-Square tests in the literature. I wonder if all these different types can be handled the same way when converting χ² to Pearson correlation r or Cohens' D. Type A: The Chi-square test according to Pearson (Pearson's chi-square statistic) includes the squ...
I just learned about permutation tests through self-study. According to Wikipedia we have : (1) "The null hypothesis is that all samples come from the same distribution $H_{0}:F=G$." and : (2) "Under the null hypothesis, the distribution of the test statistic is obtained by calculating all possible values of the test s...
One of the R plots for a diagnostic of linear model lm() is a plot Cook's distance vs. $\dfrac{h_{ii}}{1 - h_{ii}}$. My question is: why don't we plot Cook distance against $h_{ii}$? What's the gain from $\dfrac{h_{ii}}{1 - h_{ii}}$? Obviously it is a monotonic transformation $[0,1) \mapsto [0, +\infty)$.
What are the similarities and differences between Spiked tensor decomposition and canonical polyadic (CP) decomposition? My understanding is that CP decomposition aims to find a low-rank approximation of the full tensor. Spiked tensor decomposition aims to recover a planted low-rank structure within a full tensor. Are ...
I am doing the above exercise in Jim ALbert's "Bayesian Computation with R", Chapter 5. I have made a normal approximation of the paramater $\eta$, which is the logit of $\theta$. I understand that for the problem (a), I can simply get a 95% credible interval for $\eta$, and them apply the inverse transformation to ge...
Suppose that there are $J$ markets, and prices in every market $j$ follow a random walk. That is, for any time $t$, the price $p_t$ is the sum of shocks up to $t$: $$p_t = \sum_{i=1}^t \epsilon_i^j$$ where $\epsilon_t^j \sim N(0, \sigma^2)$ for all $t, j$. Intuitively, one expects the cross sectional variation across t...
To test cointegration relationship for multiple time series, one usually writes the VAR(k) as $$ \Delta y_t = \Pi y_{t-1} + \sum_{j=1}^{k-1}\Gamma_j\Delta y_{t-j} + e_t $$ See, e.g., https://www.uh.edu/~bsorense/coint2022.pdf According to the above lecture note and many textbooks, if $\Pi$ has full rank, then all $y_t$...
I have a complex dataset, collected through a survey, with both continuous (such as Age, Body mass index, etc..) and categorical variables (i.e. Gender, Education, etc..). I want to estimate their multivariate distributions and then sample from it. I was looking at nonparametric techniques and copula functions suitable...
I am running a test across two groups over a period of time and want to understand if the Change in proportions for my test group is significantly different to the change in proportions in the control group. Most of what I have found compares one proportion to another either over group or over time but not both. If I h...
I want to run an experiment with 4 variants (3 and a control), comparing the 3 variants to the control. I want to correct the alpha for multiple comparisons. I have 2 ways: Benjamini-Hochberg procedure Bonferroni correction What are the trade-offs of using any of the two?
Using Amelia II for multiple imputation in R, I cannot find elaborate explanations of whether to set variables to being ID or nominal (perhaps a Stata forum post comes closest). How to choose? In my case I have concatenated, or appended, some data drawn from the same world and made an ID variable representing (a) each ...