instruction
stringlengths
9
38.7k
I need to analyse the results of a messaging trial where the value of interest the the click through rate (CTR) on social media ads. I tested 8 ads and a control and I have the CTR for each one (e.g. message one had a CTR of 1%, message two had a CTR of 2%). The issue is I don't know if just using an ANOVA will be ok b...
I am trying to analyze some preliminary data for a conference. I currently have two animal participants completing a series of tasks. The tasks use different types of feedback (4 levels), which vary in the order they are completed (4 levels) that they occur. One animal has completed 20 tasks and the other has only comp...
We know that it's better to standardization the training data (i.e. X_train) before fitting a LASSO model, especially when features are not in the same scale (Ref. Is standardisation before Lasso really necessary?). But after fitting a LASSO model, when doing the prediction with the new data, do we still need to rescal...
I fitted my data in a GLMM model ("poisson" family) in R, and I got a z values of z value = 2.278. But after I put the model into post-hoc analysis ("Dunn" adjustment) with "emmeans", the z value became z value = -3.350. Why would the z value change? Thanks!
Suppose that for $i=1,2, \ldots, N$ and $j=1, \ldots, n$, the r.v.'s $Y_{i j} \sim \mathcal{N}\left(\vartheta_i, \sigma^2\right)$ are mutually independent, where the parameters $\{\vartheta_i\}_{i=1}^N$ and $\sigma^2$ are unknown. Problem 1: If $n=2$ and $N$ gets large, show that the MLE $\hat{\sigma}^2$ converges in p...
I have an imbalanced fraud dataset with ~$1.4$% fraudulent samples across 50,000 rows with 600 columns. I'm performing a binary classification task on this dataset. I've performed an EDA; some columns are $99$% the same value. The $1$% of entries that are not the same have a lower fraud rate of ~$1$%. I believe that ma...
I run competitive events. In our normal event, we have 8 adjudicators split between to categories. Skill and Artistry. For each category we throw out the high and low scores and average the remaining two scores for the final result. This helps eliminate bias. I'm trying to find a similar method when there are only 6 ju...
Does any of the YOLO models use NMS during training? From going through the papers they only explicitly state that NMS is only applied during inference, unlike Faster-RCNN. Does any YOLO (or other computer vision) algorithms filter out low confidence boxes during training based on some threshold before computing the ...
I have some categories in a fraud dataset I'm working on that are composed of 99% one category and 1% the other. On inspection these categories contain the exact same percentage of frauds ~1.4%, which is inline with my dataset's average. If the categories present nearly the same information in terms of the target, are ...
Scikit learn allows us to fit Gaussian processes $GP(0,K(.,.))$ such that $K:T\times T \to \mathbb{R}$ is a covariance function (kernel), however it doesn't let us specify a mean function $m: T\times \mathbb{R}$. I'm trying to work solely with scikit-learn, so working with only the tools it provides. Is it a reasonable...
I am currently working on my thesis and I have run into some issues regarding interpretation of my analysis. I wanted to find out whether relationship between my IV and DV differs based on gender (two categories - male and female). In statistics classes I have been advised to do quick t-test before running the regressi...
I am new to power analysis in multi-level models. I am looking for a possibility to do a power analysis for the following 2-level model: Y = y00 + y10D1 + y20D2+y01Z +y11D1Z+y21*D2Z. In this model, I investigate the effect of time (D1 and D2) and an experimental condition as well as their interaction effect on my outco...
Consider independent observations ${(y_i, x_{1i}, x_{2i}) : 1 ≤ i ≤ n}$ from the regression model $y_i = β_1x_{1i} + β_2x_{2i} + e_i, i = 1, . . . , n$ ,where $x_{1i}$ and $x_{2i}$ are scalar covariates, $β_1$ and $β_2$ are unknown scalar coefficients, and $e_i$ are uncorrelated errors with mean $0$ and variance $\sig...
How to compute the conditional variance of a sum of three normally distributed random variables given two other random variables? Assume pairwise correlations exist and the following joint distributions: $X\sim \mathcal N(\mu_X,\sigma_X^2)$; $Y\sim \mathcal N(\mu_Y,\sigma_Y^2)$; $Z\sim \mathcal N(\mu_Z,\sigma_Z^2)$; $\...
I'd like to estimate an integral of the following form using Monte Carlo method: $$ \int_{t_1}^{t_2} g(t) \left[ \int_{- \infty}^{\infty} f(t, u) du \right] ^\gamma dt$$ In case of $\gamma$ being a positive integer (say, $2$) I can rewrite it as follows: $$ \int_{t_1}^{t_2} \int_{- \infty}^{\infty} \int_{- \infty}^{\in...
I am learning gam by myself. I tried to find posts that can help me to finding and understanding smooth functions i.e., basis functions from gam using mgcv. From a post I found I can use smoothCon to estimate basis functions without explicitly from the model. However when I did so, I observed smoothCon and mgcv$smooth ...
If we have a recorded percentage (statistic) on a population, if we take random samples we might not encounter the percentage till e.g. even we exhaust the population. E.g. a box with $500000$ balls of which $25000$ ($5$%) of them are red and the rest are all white. My question is what is min/max number of a sample to ...
I have made several models (RF, XGB and GLM) to predict a binary outcome and they all achieved an AUC of approximately 0.8 and Brier scores 0.1-0.15. Test set is fairly small (n= 350), cases with outcome are (n=50). I am trying to create calibration plots in RStudio and I am getting results that I don't understand. At ...
I am reading this blog post where the author talks about diffusion models. Let's keep diffusion out of the conversation for now. The author showcased that we can parameterize a Gaussian distribution by a desired standard deviation sigma as shown below: I didn't get how the sigma value is inserted here. Can someone pl...
I'm currently researching an moderation model in SPSS with Gender as Moderator. When I'm running PROCESS number 1 (moderation) I choose the option “only continuous variables that define products”. Result: interaction effect not significant & main-effect not significant. When running the model with "All variables that d...
When we have response variable that is of binary type and our interest is to know how probability is associated with covariates then we use logistic regression. But I specifically want to know about logistic generalized additive models (gam). Suppose, I have a data with binary response. How can I know whether here I ne...
For a data matrix $X$ of dimension $n \times p$ where $p > n$ and corresponding label vector $y$ of dimension $n$, the standard least squares fit, $\hat{\beta} = (X^TX)^{-1}X^Ty$, is underdetermined. A typical approach is to use the Moore-Penrose inverse to find the min-norm solution by solving $\hat{\beta}^{\text{mn}}...
As far as I know [source], $$t_{\widehat{\beta}} = \frac{\widehat{\beta}}{\widehat{SE_{\beta}}}.$$ It means the sign of the t-value should be the same as the sign of beta. In Table S1 of Shen (2018), the signs are different. Why? Did I miss something? I have noticed the passage referenced by user @utobi before. But (1)...
Description of background Consider a 2d random walk with drift: $$X(t) = \sum_{k=1}^t X_k \\ Y(t) = \sum_{k=1}^t Y_k$$ where each $X_k$ and $Y_k$ are independently exponentially distributed with rate $\lambda = 0.5$. Let's define $Y^\star$ as $Y(t^\star)$, where $t^\star$ is the time when $X(t)$ passes some boundary ...
Let $X_i$ be an iid sample from $X\sim N(\mu,\sigma^2)$. I try to find the generalized likelihood ratio test of $H_0: \sigma^2=\sigma_0^2$ v.s. $H_1: \sigma^2\neq \sigma_0^2$ with $\mu$ unknown. My work: I try to find the likelihood ratio statistic: \begin{align} \lambda(x) &= \frac{\sup_{\theta=\theta_0}L(\theta\mid ...
I have run a Kruskal Wallis test in my dataset and have a significant overall result (p<<0.001). However, since the medians for my categories are the same, I can't work out the direction of the trends. Post hoc tests have revealed which groups are different, but I'm not sure how to work which groups are affected more b...
I'm running a bayesian paired t-test using JASP. In the software, it says that one of the assumptions is that "The difference scores are normally distributed in the population". I'm a little confused as to why this is true since the prior is a Cauchy distribution, not normal. Please let me know if you know why! Thanks!...
If we have a dataset $D := f(x_i, y_i)^n_{i=1}$ where $x_i = [x_{i_1}, x_{i_2}, ... , x_{i_p}]^T$ is a p-dimensional predictor and $y_i \in R$ is the response to $x_i$. Now, shall we select as our parameter vector   $\beta = [\beta_1, ... , \beta_p]$ and choose our model to be $\hat{y}_i =  \beta^Tx_i$ or select as ou...
I measured changes in the appearance of chronic wounds. There are four levels of this variable that can be ordered from the worst to best as necrotic < sloughy < granulating < epithelialising. There are proportions of the set of patients with corresponding levels such as: The wounds were measured at the baseline on wh...
I need to analyse one dataset composed of two experiments. The goal is to identify sick individuals (animals) based on different parameters. These parameters have been collected on different farms (one time per farm), during two data recollection campaigns. I have very limited information on one of the campaign, and I ...
Given the constants $\{a,b,c,d,e,f$}, I want to compute the conditional mean $\text{E}[Z|S_1,S_2]$ and the conditional variance $\text{Var}[Z|S_1,S_2]$, with: $Z=a+bX_1+cX_2+dY_1+eY_2+fY_3$ Is the following true? $\text{E}[Z|S_1,S_2]=a+b\text{E}[X_1|S_1,S_2]+c\text{E}[X_2|S_1,S_2]$ and $\text{Var}[Z|S_1,S_2]=b^2\text{V...
I am considering the model: $$ y_t = \beta_0\left(\Pi_{i=0}^{K}x_{i,t}^{\beta_i}\right)\left(\Pi_{j = K+1}^{L}e^{\beta_{j}x_{j,t}}\right) $$ where we want to have multiplicative effect between variables and linear for the others. My question is the following: in this model, how can we interprate and estimate the coeffi...
Say I have a set of measurement values $y_\text{m} = (y_{\text{m},1}, \dots y_{\text{m},N}) $, and compare these with some ground truth $y = (y_1, \dots y_N)$. Then, if I understood correctly, I can estimate the (sample) variance of the error $(y_\text{m} - y)$ in my measurement values as \begin{equation} \sigma^2 = \f...
If I were estimating the treatment effect in a linear regression model. Assuming there isn't a risk of collider bias and multicollinearity, would it be acceptable to add in as many covariates as possible to control for the remaining variation unexplained by the treatment effect variable? Or would the risk of including ...
Can anyone explain me about how sample size selection happens which is generally used as $20\times (p+q)$? Here $p$ is the number of parameters in the final model and $q $ is the number of parameters that may have been examined but discarded along the way. Any credible reference is appreciated.
Below you can view the univariate sales dataset for a particular product with x3 promotional interventions/campaigns (highlighted in grey and green); each promotion campaign stretched for a length of 14 days. My main objective is to eventually measure the post-period uplift of all 3 campaigns separately, but to keep co...
I am a bit lost on the correct approach to this Statistical problem. Let me explain the context of this problem: I have a cohort population with longitudinal measurements during a period of several years and in this population, a subsample of its, has been wearing an accelerometer to measure Physical Activity (consider...
I wonder if anyone can help me to decide what steps to undertake in making a mixed-effects model in R. My data consists of 5 treatments of which the effects are being measured in 10 consecutive time points. All subjects (20) receive 4 of the 5 possible treatments in a block-randomized fashion. I want to construct a mod...
I have been taught that if an estimator is unbiased, then its convergence in probability can be proven by taking the limit of its variance as the sample size grows to infinity and showing it is equal to 0. However, considering the definition of the variance and the fact the estimator is unbiased, this would also prove ...
The context is about the use of a given model deviance (often referred to as “Residual deviance” in R) and that of its “Null deviance” to calculate D2, the deviance explained for models with non-normal error. This metric (D2) is somehow an approximation of what a coefficient of determination (R2) is for a linear model,...
Sometimes, in a meta-analysis, it happens that studies include more than one independent sample and multiple component outcomes are reported for each sample. Which model would be more reasonable to use, three-level or four-level meta-analysis? I have read the two nice papers “Three-level meta-analysis of dependent effe...
Is it possible to include mixed effects into a random forest model in R? I know about the lmer (from lme4) and randomForest (from randomForest) functions but it would be nice if I could combine the two in some way, if that makes sense. I'm afraid that if I don't include random effects in my random forest model, it will...
The wilcox.test function in R calculates the pseudomedian and a confidence interval when conf.int=TRUE. In this question, Wilcoxon signed rank test - help on interpretation of pseudo median for example, there is a description about the calculation of the pseudomedian, but I don't understand why the confidence interval ...
I have been tasked with evaluating hospital length of stay (LOS) in two groups of patients using the Cox proportional hazards model. One group of patients received a medication, the other did not. Hospital discharge constitutes a failure, there is no censoring (all patients are eventually discharged). The hazards for t...
During the fine-tunning of a DistilBert model, I tried two optimizers (with different parameter sets) on the same dataset. Here are the results: - AdamW: train loss (0.21), val loss (0.33), accuracy (0.88) - SGD: train loss (0.35), val loss (0.35), accuracy (0.87) I read that if: - train loss > val loss: the model is ...
Binary cross entropy is normally used in situations where the "true" result or label is one of two values (hence "binary"), typically encoded as 0 and 1. However, the documentation for PyTorch's binary_cross_entropy function has the following: target (Tensor) – Tensor of the same shape as input with values between 0 a...
I will show what I'm doing it in R to make sure if I'm doing it correctly This is my dataset which I'm using for analysis dput(df2) structure(list(TCGA_ID = c("TCGA-AB-2965", "TCGA-AB-2881", "TCGA-AB-2834", "TCGA-AB-2818", "TCGA-AB-2898", "TCGA-AB-2956", "TCGA-AB-2994", "TCGA-AB-2920", "TCGA-AB-3009", "TCGA-AB-2892"...
Analysts often use Rubin's rule (RR) to obtain a pooled estimate of a popular quantity from multiple (imputed) datasets. While popular statistical software (such as the R survey package or Stata's mi) will apply RR to any set of inputs, this may lead to invalid inferences when the underlying assumptions are violated. F...
This answer gives an answer for discrete distributions referencing Halmos (1946). However, I am looking for a more general result. For this, the references provided in the previous answer only dealt with creating non-negative estimators from already existing unbiased estimators. Bickel and Lehmann (1969) give a charact...
I am to analyze a set of economic variables, taken from multiple countries, and recorded across time. This is certainly a panel dataset. If I'm not mistaken, the pooled OLS, fixed and random effects models are linear while polynomial regression models seem to focus on a single variable Is there such a thing as a poly...
I am analyzing count data (number of negative mental health symptoms). I ran a 1 sample KS test in SPSS and the sig is <0.001 for both a Poisson distribution and a normal distrubtion - indicating that the data does not follow either. There are no zero values whatsoever (values range from 1-9). What other options do I h...
I have some doubts about how to recognize if there are extreme weights after balancing my population with inverse probability treatment weighting. For instance, let's look at these results [code at the end of the post] - I know that age is not perfectly balanced but it doesn't matter as it is just an example: M.0.Adj ...
I have a set of 5000 samples with 24 features, and I'm runing a Gridsearch using scikit-learn to find optimal values for C, epsilon and gamma in SVR. In total I'm testing 90 different hyperparameter configurations with 5 fold cross validation. Also I included verbose = 10 to get feedback on whats happening. For the fir...
Given a type 1 ANOVA where both factors are fixed and with equal cell numbers, how do I mathematically formulate the $H_0$ testing for interaction effect? Let's say I have 3 levels of Factor A (rows) and 3 columns of factor B (columns). I denote my interaction term in my model as $\gamma$ This is my take on my question...
I am stuck in the diagnostics of my model, and I am looking for advice on what to do. My data frame goes like this $ ID : Factor w/ 15 levels "Buzinza","Kabukojo",..: 1 1 1 1 1 1 1 1 1 1 ... $ Period : Factor w/ 3 levels "After","Before",..: 1 3 1 1 2 1 1 2 3 1 ... $ Class : Factor w/ 3 levels "Adult female"...
Let's say we have two Heckman selection models. Can we correlate the residuals from the their outcome parts (since they might have different lengths)? If yes, how?
I am estimating the population mean of the 2023 value of cars from a stratified sample. The value of the cars is right skewed on visual inspection, and some basic diagnostics indicate normality assumptions are violated. I need to calculate the 95%CI of the calculated population mean. My first thought was to use acceler...
I have multiple discrete time Markov processes. They each consist of the same 12 categorical states. I want to model how the probability of each of these states varies over time across each process. To do this, I fit a multinomial logistic regression model with this formula: State t+1 ~ State t + Time My data is organi...
I have an interesting medical problem where the price of failure and offset between precision and recall is much much higher than typical ml systems I’ve worked with before. The precision of one class needs to be so high that we actually measure it in false positives per day, which should be 0.01 or less. In terms of p...
In Minitab, we can obtain the sample size/power result with only the maximum difference between the group means instead of ALL the group means.(As seen in the picture below.) How is this done? What are the formulas for the calculation of the sum of squares? Also, I guess R shall also do this. However, it seems that fun...
I have a list of students from different classes, so far I have used a linear regression to create predicted future test scores based on multiple criteria such as attendance, previous test scores etc. I would now like to use these predicted scores to work out the probability of each student finishing 1st, 2nd, 3rd in ...
So I'm trying to use Weighted Binary Cross Entropy Function. I'm trying to calculate the weights for each class. I have 14 of them them in the target variable. I'm using the following function for calculating the weights. def compute_class_freqs(labels): """ Args: labels (np.array): matrix of labels, si...
I want to test a claim that the population probability is at least 0.9 and Im confused about how I should set my alternative hypothesis. Should it be H0 : p=0.9 vs H1: p<0.9 or H0: p=0.9 vs H1: p>0.9 ?
I am studying this source about One-Way ANOVA Test in R. We know that ANOVA test assumes that the data is normally distributed and the variance across groups are homogeneous. In the source the claim that we can check this with some diagnostic plots. At the part Check the homogeneity of variance assumption, the say that...
I have fitted two robust linear mixed effects models, null.model and full.model, with same random-effects term, (1 | id), to a data set using robustlmm::rlmer. These models only differ by a predictor x: null.model <- rlmer(y ~ (1 | id), data) full.model <- rlmer(y ~ x + (1 | id), data) I have chosen to fit robust LMMs...
I'm following this note to learn about deriving an upper bound of the UCB algorithm on the Stochastic Multi-Armed Bandit Problem. In particular, the proof of Lemma 15.6 there connotes that we can apply Hoeffding's inequality to $$ Pr(\frac{1}{N_{t,a}}\sum_{s=1}^t Z_{s,a} I_{A_s=a} - \mu_a \geq \epsilon ) $$ where $Z_{s...
I am asked in a homework question to prove asymptotic normality for the generalized method of moments estimator. The assumptions (which i think are necessary to solve this particular subproblem) given in the theorem are $ (Z_i)_{i \in \mathbb{N}}$ is a sequence of i.i.d. random variables. $g(z|\theta)$ is continuously...
I had planned to perform a 3 x 2 repeated measures ANOVA before I realized that all the variables are distributed in a bimodal, U-shaped distribution where 0 and 1 are the modes. The high occurrence of 0 and 1 are meaningful to the analysis and therefore it may be inappropriate to transform the data. Why is the variabl...
I am training an LSTM where I have sales data from 20 different individuals over the past 10 years. Now, I read this brilliant answer: How to train LSTM model on multiple time series data? But, due to domain knowledge / prior analysis, I believe that only “recent” timesteps are useful in predicting a future timestep, l...
The formulation of the conditional density is: $$ f_{Y|X}(y|x) = \frac{f_{X,Y}(x,y)}{f_X(x)}. $$ I need to estimate this density from data and it's prohibitively time-consuming to calculate the joint density (I have 10s of variables). However, for fixed values of x, it is easy to estimate directly the conditional densi...
Experts, I fitted a GAM Model with mgcv package containing a significant independent variable: number of days since first Action. Max.number of days were 40 days. Dependant variable is Action of frogs.Question is Do you recommend gam.predict or time series function for predicting action patterns of frogs.Thanks a lot f...
Is there a theoretical upper limit to the number of parameters that be estimated with maximum likelihood estimation? My understanding is no, but that if you have too many parameters it may not be possible to find one set of parameters that uniquely optimizes the log-likelihood. Assuming the above is correct, practicall...
I want to run robustness tests for my model. For example, by reducing the sample to heavily concentrated groups, running a different regression (probit etc) etc. But, how do I ascertain that my results are robust? Is it sufficient that my key explanatory variables have same sign as the original model, magnitude of coef...
Some background on my problem - Let us consider a discrete memoryless channel (DMC) $W_{Y|X}$ from Alice to Bob. A DMC is a conditional probability distribution over the random variable $Y$ given input random variable $X$. We wish to send a uniformly randomly chosen message from a set of size $\mathcal{M}$ over this ch...
I'm struggling a bit with intuition behind resampling tests for difference in means. I've two samples s1 and s2 of size n1 and n2 respectively. Population parameters are unknown. I'd like to know if the means of the two populations from which the samples came are different. The Permutation approach for this I've read t...
I am trying to simulate data coming from a joint model of longitudinal and survival data. Basically, my thought process is this. I need to define a maximum follow-up time, F. I need to define coefficients ($\boldsymbol{\beta}$, $\sigma_t$,generate X from some distribution, W from some distributions and define $\alpha$...
I am currently working with a MLR model comprising 1 numeric/continuous predictor variable (x1), several nominal categorical variables (x2 ... xi), and an interaction term between the continuous variable and one of the categorical variables (x1*x2). I wish to plot the relationship between y and x1 on a 2d scatterplot (...
Suppose I have model $M$ generating data $Y=\beta_0+\beta_1X+\beta_2Z+\beta_3W$ with all $\beta$'s known. Instead of using model $M$, I used misspecified models $M':Y=\beta'_0+\beta'_1X+\beta'_2Z$, $M'':Y=\beta'_0+\beta'_1X+\beta'_3W$ and went on testing hypothesis $H_0:\beta'_1=0$ vs $H_1:\beta'_1\neq 0$ with level $\...
Say i have a dataset with groups that i want to use for a Regression problem that looks like the following where feature1 is the group column: idx: [0,1,2,3,4,5] feature1: [1,1,2,2,3,3] feature2: [6,7,8,9,4,5] target: [9,8,4,3,2,6] How do i split this properly without any data leakage? Ive read that you need...
I am struggling to understand a certain inequality based on the regression $L_2$-error of a regression function estimate. The setting is that of random forests for regression. Let $\Theta = \{ \Theta_{1}, \dots, \Theta_{M} \}$ be the (iid) random variables that capture the randomness that goes into contructing the ind...
Let’s assume I am simulating data under a given model, and using MCMC with said data to estimate a (known) model parameter. Let’s assume I do this thousands of times. The results I obtain show that the median of the posterior distribution for this parameter is always smaller than the true value, yet the 95% highest pos...
I'm trying to derive the influence function of the estimand $\Psi$ $$\Psi(P) = P(Y > y | X = x)$$ Following tutorials for deriving the influence function of the average treatment effect here. Has anyone seen this derived anywhere?
I am conducting a meta-analysis with a skewed distribution. To address this issue, I transformed the "marker" data into a log-scale, "ln marker". I obtained the (geometric) mean and standard deviation of ln marker from one article. My goal is to find the 95% CI of ln marker. To do this, I transformed the geometric mean...
I am working with a bunch of different GAMs with predictor land cover and remote sensing variables derived at different scales and comparing models within scale. I am not interested in spatial and temporal autocorrelation as an explanatory variable in my model, but it does need to be accounted for (checked with Moran's...
In a book about Biostatistics, I found this example to calculate expected value: Consider the following hypothetical example of a lung cancer study in which all patients start in phase 1, transition into phase 2, and die at the end of phase 2. Unfortunately, but inevitably, all people die. Biostatistics is often conce...
I understand that the x-intercept can be calculated using $y = mx + b$ for a linear model. I am unsure if this is statistically appropriate for a mixed model with count data, given that counts cannot be negative and there are random effects to consider. I have seen examples of x-intercept calculations for count data wi...
Based on a data set I found a sensitivity (.82) and specificity (.88) for a diagnostic test bases on a n=257 sample. However, I wonder whether I can generalize these numbers. I thought this was very much the same question as inferring a succes rate in a binary proces (k successes in n trials) using a binomial distribut...
Does $P(B|A) = 0$ with $P(A) \neq 0$ mean $A \cap B = \varnothing$? I think I already have an answer, but I'm not sure it's correct. I would say no, because we can consider a variable $X \sim U(0,1)$, described by a continuous uniform distribution, where, for example, $A$ is "$0.2 \leq X \leq 0.9$" and $B$ is "$X = 0.5...
I'm trying to prove that the 2nd order polynomial kernel, $K(x_i, x_j) = (x_i^Tx_j + 1)^2$ is a valid kernel which satisfies the following conditions: K is symmetric, that is, $K(x_i, x_j) = K(x_j, x_i)$. K is positive semi-definite, that is, $\forall v \space\space v^TKv \geq 0.$ We can actually prove that second-o...
I'm looking at 4 pairs of independent variables and one dependent variable. The correlation analyses revealed no significant correlation, although it was positive, between all independent variables and the dependent variable. Is it bad that my correlation coefficients were not significant? The regression analyses revea...
I will be administering an early literacy assessment to preschoolers at 2 time points in the preschool year. I want to be able to examine the growth from point A to point B. I also wanted to administer a social emotional assessment at the two time points and asses for growth as well. Lastly, I wanted to examine correla...
I have merged data to create an event study for the treated population. This treatment happens in 4 batches for some university students in certain cohorts (when they turn 19 in 2005 and are at university when the treatment commenced - thus are treated. But this treatment doesn’t happen for a majority of students and f...
The Bonferroni correction seems to be quite controversial. But I read again and again that it should be used for multiple tests. But what exactly are multiple tests? If I have three different data sets in the same study and run only one t-test on each data set, is that a multiple test and do I have to apply a Bonferron...
I'm new to probability theory. Let's say that I have the following situation: Three identical boxes have different collections of doughnuts in them. The box on the left ($L$) has 2 plain ($p$) doughnuts, 3 maple ($m$) doughnuts, and 5 chocolate ($c$) doughnuts. The box in the middle ($M$) has 2 plain doughnuts, 3 maple...
My dataset consists of temperature measurements from thermocouples as shown in the figure. I use several models like Long Short-Term Memory (LSTM) and GRU in order to predict future values of these thermocouples. Only past measurements of the thermocouples are taken into consideration in my model, no other variables. M...
I need to test the relationship between 3 variables. The problem is, one variable is ordinal and the other two are nominal (more precisely, both are from a dichotomous scale). I have already looked for this, but it seems to me that there is no suitable type of analysis. The best way currently seems to me to use a logis...
In a simple neural network, having more nodes on an input layer that on the next layer performs a compression or dimension reduction similar to what PCA does. The fewer nodes encode in a combination some kind of information that is in the previous layer. While the forward computation is structurally similar to PCA , th...
Say I'm running Metropolis-Hastings with target density $p$. What I would like to do is divide the space $E$, on which $p$ is defined, into a disjoint union $E=\bigcup_iE_i$ and run a separate instance of Metropolis-Hastings inside each stratum $E_i$ (for example, since I can come up with a proposal kernel specifically...
Say I want the probability of at least 1 event occurring out of a series of n events each with differing but known probabilities from observing past behavior p_0, p_1, ... p_n. Generally, if I assume all of these events are independent, I can get that for some share of the events via 1 - the product of all (1 - p_i) in...
I am struggling to interpret the location parameters in generalised partial credit models. Say you have location parameters $a_1$,$a_2$ and $a_3$. My professor said that for the item to be accepted then they must be monotonic i.e. $a_1$<$a_2$<$a_3$ which I think has to do with the monotonicity assumption of such models...