instruction
stringlengths
9
38.7k
I have people that have two measures taken (measure A and measure B); they have these taken at baseline and after an intervention. I want to know if the change in one measure after the intervention is related to the change in the other measure. I could just correlate the change scores for the two variables but I was h...
I'm having difficulty solving this exercise. When I assume that p=0.4 and player A's fortune is 99 dollars and B's fortune is 1 dollar, I can find that the probability of player A losing to player B is 0.33. But when there is an abstraction like this and that 1-p > , I cannot prove that the probability of A gaining M d...
I am interested in studying time series (both theoretical and applied), my background is in mathematics and my probability knowledge is well enough but I haven't studied stats deeply (only one course in inference); what is the minimum prerequisite in stats for a good grasp of time series? And generally what mathematic...
I'm curious how power analysis can be conducted when the scientist is stratifying on one or more variables? I came across this approach but it went over my head. Ideally, the answer would not be "do X" but motivate for a scientist (not statistician) why we might formulate this question mathematically in a certain way. ...
I define data such that: The outcome variable performance is a number between 0 and 1 high_school is either private or municipal coarse_educ is either A or B I estimate: > incorrect_reg <- lm(performance ~ high_school + coarse_educ, data = data) > coef(incorrect_reg) (Intercept) high_schoolprivate coarse...
I have data on length/weight for male fish and want to compare by $b$ value for slope of regression against 3 to test for isometric growth. I tried using hoCoef fucntion also hoCoef(lm1, 2, 3)
When interpreting the coefficients of an Accelerated Failure Time (AFT) model that assumes a log-normal distribution, should we focus on the impact of coefficients on the mean survival time or the median survival time?
In multi-class classification using nearest neighbour, I believe that as the dimension of the space increases, we need exponentially more samples to keep the classification error under a certain threshold. Is there any theoretical support for this intuition? I am considering scenarios where the boundary is deterministi...
My scenario is as follows. I am using three different devices (TempDeviceA, TempDeviceB, and TempDeviceC) to take the temperature of each animal in a group every day over several weeks. TempDeviceC is considered the gold standard for temperature measurement of animals. TempDeviceB and TempDeviceC measure temperature by...
I was thinking about the differences in approaches between parametric and non-parametric statistics in regression. I am working with a non-negative integer response $N$ with $N\in\mathbb{N}_{0}$. Let's imagine I wanted to use a boosted regression tree to model this quantity. This regression tree would give me $$\mathbb...
Let $(X_1, Y_1), (X_2, Y_2),....,(X_n, Y_n)$ be iid random variables with joint distribution function $F(x, y)$ and $F(x), G(x)$ be the marginal distribution functions of $X_1$ and $Y_1$ respectively. Suppose $F(0)=G(0)=0$. Find a U-statistic estimator of $$\gamma(F, G)=\int_0^{\infty}F(x)dG(x)$$ when (a) $F(x, y) \neq...
I have a question about the properties of white noise in a time series context. Specifically, I want to know: If we assume that the error term $u_t$ in a time series model is white noise, does this guarantee that the lagged variable $X_{t-1}$ is uncorrelated with the current error term $u_t$? In other words, does the w...
In statistics, there is approach, aka, fixed-sequence hirarchical approach to control the Type I error when it comes to multiple tests for different variables. For example, there are 3 tests to be tested, and the test sequence is pre-defined as H1 -> H2 ->H3, that means, H2 will be tested if and only if H1 is statistic...
If in my model, the independent variables are uncorrelated with the error term, there is no endogeneity problem, and the residuals satisfy the OLS assumptions, can I say that this model identifies causality? And in another scenario, when I encounter an endogeneity problem but cannot find suitable instrumental variables...
I'm trying to fit a model to my data and have tried to use glm(). The plot of the data (black line) and prediction (violet line) look like this: Here is the code that I used to create this plot: plot(cumulative_reputation ~ creation_date, json, xlab = "Date", ylab = "Reputation", type = "l") model <- glm(cumulative_re...
Recently I have conducted a experiment exploring the relationship between stress and mind wandering (MW). When I analyzed the data via SPSS, I found an unexpected negative edge between two variables. My experiment was within-subject design, so every participant (26) experienced two sessioins (T:stress induction; C:cont...
I would like to run an exponential survival model using the psm function in rms package, but I am still trying to understand the estimates, and how to obtain them. Using the colon data, say I would like to assess the risk of getting colon cancer for different treatment groups (Obs, Lev and Lev+5FU), while adjusting for...
Say you want to decompose a probability distribution (a PDF) into a mixture of distributions in such a way as to minimize the mean entropy of the component distributions. I have an idea that this is achieved iff the mixture components are Gaussian. Can this be proven?
I am aware that sequential testing is risky, but it makes sense for me to do it anyway. So, I would like to read up, to do it properly. My idea (which is probably not new): In my reality, the true effect in a hypothesis test sometimes exceeds the minimum effect size by a large margin. So, to be more efficient with reso...
When performing a logistic regression this can be done by adding covariates. How could I do the same for a Fisher test?
The measures of skewness and kurtosis respectively are $b_1=\frac{m_3^2}{m_2^3}$(skewness) and $b_2=\frac{m_4}{m_2^2}$(Kurtosis) where $m_r$ is the central moment of $rth$ order. That is $m_r = \frac{\sum_{i=1}^{n}(x_i-\bar{x})^r}{n}$ $\bar{x}= \frac{\sum_{i=1}^{n}x_i}{n}$ To Prove: $b_2 -1\geq b_1$ I was trying to use...
I want to plot discrete time measurements made for two subjects, but where many cells were observed for each subject in triplicate. I think the experimental unit is the subject, so I should just get a mean for each subject and plot that. Another option is to get a mean of each cell's tripicates and plot those. In any c...
I've been working on a multiclass problem (5 classes) and having some challenges on Feature Selection and Class Imbalance. I have around 1,000 rows and 2,000 features (which I also generated exhaustively) consisting of in-app activity (data has many zeros because of inactive users, making the distribution right skewed ...
I want to ask if the proportion of different repeat families in a genome (LINES, SINES, LTR, Other, DNA) differ in guenons compared to outgroups. The data I have is the following (in a simplified format) |species|repeat.family|fraction|species_type| |-------|-------------|--------|------------| |A_lhoesti|DNA|0.0334|gu...
Most sources give a simple equation to compute the geometric mean (GeoMean) of data samples from a lognormal distribution. GeoMean = exp(m) where m is the mean of the natural (base e) logarithms of the values A bias-corrected equation is given in: Parkin, T. B. & Robinson, J. A. Statistical Evaluation of Median Estima...
I have a question following the great response @DaveArmstrong answered in this topic about sum contrast coding. To first introduce my problem, have a model to account for species richness which is: model = glmmTMB(richness~ season + scale(year)*soil_type + (1|plot/place), family = "poisson", data = data, ...
In a recent experiment, I made an oversight: I divided my data into training and testing sets and conducted cross-validation for model selection and hyperparameter tuning after having applied Boruta (feature importance with Random Forest) to select features on the entire training set. I want to ensure I fully grasp the...
I have some python code that creates and trains a neural networks model for predicting the column 'Cost'. It takes in a bunch of inputs and predicts the cost. Now, I'm trying to convert the predicted cost into a probability (more specifically, the probability of encountering this error (relative difference between exp...
I'm trying to model the age of inventory at time of sale, where a given sale (say, for \$10,000 worth of a particular product) might be fulfilled with \$5,000 of stock that is 1 month old, \$3,000 worth of stock that is 3 months old and \$2,000 worth of 7 month old stock. I have data for 1,000 or so products with age o...
I have the following question which I cannot seem to find an easy answer to: given that we have two groups (let's call them 1 and 2), is it possible to determine a mixed percentage of the groups by training on only 1 and 2? For example, I did two clusters like this: clusterSize = 1000; % cluster one cluster1 = randn(cl...
Say we measure a variable dependent on a dichotomic class $X|_\text{class}$ where the distributions conditional on that class are $$X|_\text{class =1} \sim N(\mu_1,\sigma^2)$$ $$X|_\text{class =2} \sim N(\mu_2,\sigma^2)$$ With this situation we can apply a logistic model, as explained in: How to prove that LDA has a s...
I build a MLP with numpy to approximate the cosine function, when the loss is Mean error it converge: import numpy as np import pandas as pd from matplotlib import pyplot as plt from sklearn.model_selection import train_test_split np.random.seed(0) X_min = -10 X_max = 10 X = np.linspace(X_min, X_max, 10_000).reshap...
We have a non-standard multivariate probability density function, P(x | q), where x is a vector, and q are the parameters of the density. I get events X' from a noisy experiment, and my goal is to find q so that x ~ P(x|q). Since the experiment is noisy, this does not work well, so we have designed a machine-learning m...
How can I calculate this expectancy: $$ E \left [ \frac{\sum_{t=1}^T{Z_tX_t}}{\sum_{t=1}^T{Z_t^2}} \right ] $$ where $Z_t \sim N(0,1)$ and $X_t \sim N(0,1)$ are independent? Any tricks? Is it possible?
I am trying to figure out the magnitude of influence one variable has over another, and how much it changes if we analyze it in the opposite direction as well. Essentially, I am trying to figure out if variable A is influencing variable B more or the other way around. I ran two simple linear regression models and got t...
I am conducting an omnibus analysis of a CLMM model from the ordinal package. I passed the CLMM model to the function Anova.clmm() from the RVAideMemoire package. The output table includes the model parameters, associated LR chi-squared statistics, and p-values. Is there a way to assess the "effect size" or "strength o...
I have some data (sales of a particular item at a particular grocery store) which exhibits both trend and seasonality. I fit these trend and seasonality components by doing a linear regression of the form $$ y_t = \beta_0 +\beta_1t + \sum_{j=0}^5 \phi_j \cos\left(\frac{(2+j)\pi}{365} t\right) + \psi_j\sin\left(\frac{(...
In a comment thread relative to another question, Nick Cox says: Population pyramids are over-rated. Subtle shifts in the ratio females to males, or its reciprocal, are important and common and expected but very hard to read off pyramids. (Bigger shifts are those you can spot easily.) I then asked him what would be a...
What is a mixed effects model when the within group variance cannot be estimated. For example I have an outcome that is very rare to begin with. Less than 5% of children have this outcome. Then I have different groups across the country who have contributed data for this condition including the covariates. Binary outco...
Let $X$ be an $\mathcal{X}$ valued random variable. We are doing Bayesian statistics. Suppose that $\theta$ is a $\Theta$ valued random variable with known prior distribution $\Pi$ and that the regular conditional probability $P_{X \mid \theta}$ is known. If $\Pi$ is proper (i.e. $\Pi(\Theta)=1$), then we consider $X$ ...
I am searching for experimental studies, by Cleveland or anyone else, that test differences in the accuracy of quantitative judgements (or related aspects of visual perception) based on whether data are presented in a horizontal vs. vertical layout. I am generally aware of Cleveland's work (e.g. Cleveland and McGill 1...
TLDR: Assuming that the current commodity prices are influenced by a variety of factors, including the prices from the previous period. Given this context, should I explore the relationship between current (as dependent variable) and lagged returns (as independent variable) to understand the impact of past price moveme...
Suppose the following classical supervised regression setting, $$y_{i} = f(x_{i}) + \epsilon_{i}, \quad i=1,\cdots,n,$$ where $\epsilon_{i}$ are i.i.d. zero mean Gaussian noise. The above regression problem can be solved by classical non-parametric approaches, e.g. kernel method. However, if I suppose that I have a pre...
In the book "An Introduction to Statistical Learning with Applications in Python, Trevor Hastie et al., Springer", there's the following paragraph: The left-hand panel of Figure 1.2 displays two boxplots of the previous day’s percentage changes in the stock index: one for the 648 days for which the market increased on...
Recently I encountered a situation where each subject has a continuous response variable at 3 time points ($t_0$, $t_1$, $t_2$). There are $3$ treatment groups ($A,B,C$), and some covariates. Consider the follow variables: $y_i$: continuous response at time $t_i$ $x_1$: group (categorical, $A,B,C$) $x2,x3,...$: cova...
The Tobit model defines a likelihood for what amounts to a censored normal distribution - i.e. the tails are clipped - which is meant to be applied to data that has undergone censoring and thus has an expected large probability mass at the censoring points. Assume that there is both left and right censoring at points $...
Suppose one wants to test whether the average sum of tickets in a box is X. Since the z-score is computed by sampling N tickets and then seeing how many SE's away the average is from the expected value. One would then use this z-score to compute a p-value, and based on that they will decide if they can reject the null ...
I want to made a stock clusterization, based on their fundamental features from companies quarter reports. I collected quarter reports from 2018 to 2022. Some companies have reports for all quarters of all years, some publish reports twice a year.. So, before data preprocessing and clustering itself, I need to understa...
I have a specific data matrix with features (mainly categorical). I want to simulate a multivariate bernoulli response, for example bivariate, but with a predefined vector of beta coefficients (most are nonzeros and some have zero values on purpose). Therefore, I will not have two different logistic models so to fit tw...
I have a model in R looking at infectious disease spread on social networks, and I am running into a problem where my data are clearly not normally-distributed when I try to run a linear regression but I'm unsure of how to approach it. My dependent variable/outcomes are maximum prevalence, time of peak infection, lengt...
I would like to ask questions regarding Delta rule for log-cpm of this article, and this section has been asked before and may help for you to answer: this one. (Q1) I would like to know the intuition behind the statement: "suppose that: $\text{var}(r)=\lambda+\phi\lambda^2$." Here, $r$ and $\lambda$ are the number of ...
Be gentle, I'm learning here. I have a fairly simple adaptive lasso regression that I'm trying to test for a minimum sample size. I used cross-validated mean squared error as the "score" of model accuracy. Where I am stuck is how to analyze each group of samples to determine at what point the CV-MSE stops being signifi...
Context: There are two groups of users ('Control' and Test') that are randomly assigned at the beginning. (Let's assume they finished allocation right before week 0 and not accepting new users and allocation process is within minutes) Description: From week 0 to week 6, we do nothing on 'Control' and apply 30% off for ...
I'm trying to run a pooled OLS and fixed effects regression model using panel data but my problem is that my independent variables are measured monthly while my dependent variable is measured annually.
I am currently undertaking a project where I aim to explore the relationship between a single independent variable and a dependent variable. I have five questions that are answered on a 5-Point Likert scale by each respondent, representing a specific concept, i.e. $X$. I also have a corresponding metric for each respon...
There are some online services that we can use to generate synthetic data. On the other hand, we can also use sdv-dev CTGAN from GitHub. Are synthetic data produced by Gretel, YData, MostlyAI, etc. of higher quality than sdv-dev CTGAN?
I have a hierarchical Bayesian model that learns a 5-parameter function for each of the N participants. The priors on each of the 5 parameters are parameterized by a scale parameter, so, it also learns a total of 5 hyper-parameters. $$\theta_i^j \sim \text{HalfNormal}(\sigma_{\theta^j})\;\;\forall i=1,2\ldots N \text{ ...
I am working on an exercise question, and I am a bit stuck unsure on how to proceed. I was given the data below and asked to graphically display the relationship between dose and kill rate. Using R, I created a data frame to represent the values from the table with the following commands, dose <- c("1", "2", "3", "4",...
I am using a model that forecast predictions for DAUs (daily active users). The DAU dataset is seasonal, so I'm trying to figure out the right "error" function for my model. (The model I'm using Prophet https://facebook.github.io/prophet/ ) The green line is the prediction, the black line is the real data raw. I am us...
I have been reading about Hotelling's $T^2$ control charts and I'm unsure on how to deal with the case where the mean observations come from unequal-sized subgroups. Consider $m$ observations $\mathbf{X}_1,\mathbf{X}_2, \ldots,\mathbf{X}_m $ from a multivariate process that has $p$ variables being monitored. Thus, let'...
I have a nominal DV (0 through 3). IVs are all continuous. I'm trying to test the linearity assumption, however I can't run the logistic regression function in SPSS with the LN IV variables because of the DV being more than 2 values. Can someone explain to me how I need to test the assumption in SPSS?
I am struggling to understand the equivalence between cross-entropy loss and maximum likelihood estimation. I'll present the standard derivation of this equivalence for the simple case of binary classification, followed by my concerns. Consider a binary classification problem. Our training data consist of pairs of $(x...
I want to validate an anemometer in a wind tunnel VS gold standard. Thinking in validity, reliability and repeatability. The dependent variable is wind speed. I can test 3 different units of the same model of anemometer if it´s necessary. My question is if it’s possible to do reliability. All that I could read about th...
Suppose we want to estimate the if people agree to suppose additional funds to a project. So, the answer is whether yes (1) or no (0). If the true proportion is $p$, our goal is to estimate the value of $p$. So, we ask random people if they agree to participate in this survey or not. They will accept with the probabili...
I have some paired observations $(x,y)$ which form some type of distribution. In an attempt to simplify things, I'm trying to fit a distribution of $Y=\beta_0 + \beta_1*X + Error$ (linear regression) and fit the parameters by maximum likelihood. My idea is that $P(X)*P(Y|X)=P(Y)*P(X|Y)=P(X,Y)$ where I use generalized...
The following is from Introduction to Statistical Learning Python edition, page 485, from the survival analysis chapter. They make a distinction between the cross-validation process (to choose a penalty lambda) and the use of the fitted model on the withheld test set. I don't really understand why there's a difference....
I am reviewing the theory on hypothesis testing and the book I am reading ("Hypothesis Testing" by Jim Frost) stresses the fact that we do hypothesis testing and inferential statistic when we only have a sample and we want to learn something about a larger population. These statements got me thinking because I am now t...
I am using Integrated Nested Laplace Approximation (INLA) to predict birds population.In my (INLA) models, I've noticed that when I include auto spatial correlations, my predictions are good and make sense. However, when I exclude these auto spatial correlations in my second model, the predictions become poor. Addition...
I am trying to compute an integral that looks like the moments of a Gaussian $\mathcal{N}(\mu, \sigma^2)$, but the main difference is that we only integrate over R+ and not R. I believe we could call this the moments of a Half-Gaussian distribution : $$I_m = \int_0^{\infty}x^m \exp\left(-\frac{1}{2\sigma^2}(x-\mu)^2\ri...
Firstly, I would like to admit that even though it is not the first time I am working with linear mixed models, the mathematical foundations escape me. I am running a linear mixed-effects model using the nlme package, specifically the lme function. Firstly, I'm using this function instead of lme4 because of my previous...
I have the following configuration: Vector $\beta = (\beta_1, \beta_2,...,\beta_m)^T \in \mathbb{R}^m$ Lets rewrite $\beta = \sum_{j=1}^{n}\theta_j\phi_j$ where $\theta = (\theta_1,\theta_2,...,\theta_n)^T \in \mathbb{R}^n$, $\phi_j = (\phi_{j1}, \phi_{j2},...,\phi_{jm})^T \in \mathbb{R}^m$ How do I express $\sum_{j=1}...
I am really curious to understand what motivates the definition $$p_{g(X,Y)} (g(X,Y)=z) = \sum_{(x,y)\in g^{-1}(\{z\})} p_{X,Y} (x,y)$$ where $g$ is a two variable function, and $X,Y$ are random variables. The definition is given in the MIT OCW video on joint PMFs by Pr. J. Tsitsiklis but I am really curious to know if...
I am asking myself wether PCA and tICA mandatorily need: 1) 2) Random data as input, i.e. the values sampled per each feature need to have "no memory" of the other ones; Indeed, I was wondering about this: what if I have a non-stationary process (let it be the progressive decrease of a price before reaching the plateau...
I am looking at how the weight of female individuals is influenced by the two factors A (5 levels) and B (2 levels) using a type III ANOVA as follows: model.weight<-lm(Weight~A*B, data = weight.females) summary(model.weight) Call: lm(formula = Weight ~ A * B, data = weight.females) Residuals: Min 1Q Median ...
Consider following model with normal likelihood at time $t$. \begin{align*} y_t | \mu_t, \sigma_t^2 \sim \mathcal{N}(\mu_t, \sigma_t^2 + P_t) \end{align*} we would like to find some priors $\mathcal{F}(\mu)$ and $\mathcal{G}(\sigma^2)$ (or joint) which are either conjugate or allow mean field variational bayes approach...
I am trying to run a type III ANOVA analysis to look at how the three factors A, B and C affect the continuous variable X. Online I have found two ways of encoding the model which give different results and p-values. The first is this: model1 <- lm(X ~ A*B*C, data = dataset) summary(model1) library(car) Anova(model1, c...
I´m performing a prognostic effect meta-analysis of SMD in the metafor R package. Data includes means and SD for each arm (exposed vs unexposed groups) for several studies that used different scales. I wish to backtranformed the final estimate to the natural scale, multiplying the MD by the pooled SD. Is there a functi...
I recently read the paper entitled "Mendelian randomisation for mediation analysis: current methods and challenges for implementation". https://doi.org/10.1007/s10654-021-00757-1 I am still confused about the selection of SNPs in mutivariable (MVMR) and two-step MR when apply them to mediation analysis. For example, if...
Given two random variables $X_1$ and $X_2$ (same sample space $\mathcal{X}$) that $$\mathbb{E}[X_1]=\int_{\mathcal{X}}xf_1(x)dx > \mathbb{E}[X_2]=\int_{\mathcal{X}}x f_2(x)dx$$ Can we say that $\mathbb{E}[g(X_1)] < \mathbb{E}[g(X_2)]$ given function $g(\cdot)$ is decreasing? I got stuck immediately after the law of unc...
I'm working with a multi-threaded program, which splits a dataset into N chunks, and evaluates some regression model's performance, predicting a score for each item in each chunk. I'm using RMSD as the evaluation metric: https://en.wikipedia.org/wiki/Root-mean-square_deviation My initial approach for calculating overal...
Is it possible to run the Census Bureau's ARIMA X-13 SEATS with, say Sunday-Thursday as working days, or Sunday-Friday, for that matter? I'm running in R with the 'seasonal' package, if that matters.
I have measurements of cells' gene expression at different time points (t0, t1, t2, ...). Cells die when measured and therefore all measurements are from different samples, i.e. I do not observe any sample at two different timepoints. However all cells start from a very similar (not exact) starting point (cell culture)...
In the following lecture slides by Breheny, P. (2016) titled "Adaptive lasso, MCP, and SCAD" from the High Dimensional Data Analysis course at the University of Iowa, slide 2 presents the definition of the bias of the lasso in the orthonormal case. However, Breheny does not provide a derivation, proof, or source for th...
I have a randomized complete block design. I have formulated linear mixed models using R, the package lme4, and the function lmer for all measurements except for one, where I am stuck on the random effects. The design: 96 pLots (plot) with 48 tilled and 48 with no-till (tillage). In each half, there are 6 plant species...
I am designing a case study and will be measuring something at baseline, periodically over time, and at post-testing. I will use the baseline measures to be able to calculate the 'minimum detectable change,' which I understand is heavily based on the ICC of the baseline measurement. How do I decide how many baseline te...
I have a multi-layer network that is a union of 3 networks (field of human biology/ Omics data). The 3 networks have dense connections within each other (local), however sparse connections to each other. I want to perform random walk or node2vec on the multi-layer network in order to predict new edges and increase the ...
Now I want to regress the overall quality of the ideas (DV) on the source interacting with a continuous variable. I was advised to use the lme4 package, but I am unsure how to specify the ResponseID and the idea number. My model currently looks like this: lmer_model_interaction <- lmer(overallquality_1 ~ Source * conti...
Summary: I ran a mixed effects logistic (using glmer) model on binary data (more details below), and I got completely unrealistic estimates. The effect I am interested in (a difference between two experimental conditions, where participants are exposed to both conditions) is very clearly visible to the naked eye, but t...
I always use one-hot encoding to label the classes within the dataset, and I see that there are also people using another way to label, such as "imagen1.jpg": [["dog", 0.93266], ["cat", 0.06734]]. Is this a way of labeling? Or should I switch to one-hot encoding, setting a threshold to determine whether a class is pres...
I'm trying to compare two groups for a serial mediation model. I wrote my code like in this link to make it clearer, here is my code: #singleModel ind4 := b*c; Total_I := b*c + e' model6 <- 'DV ~ f*IV + e*M1 + c*M2 M1 ~ a*IV M2 ~ d*IV + b*M1 ind1 := a*b*c ind2 := a*e ind3 := d*c TotalM := a*b*c + a*e + d*c + f' fitMod...
I am getting very unexpected results of p-value distribution of Mann-Whitney U test under null hypothesis. I am working on a real data, but I was able to replicate the results on artificial data with similar distribution. Data distribution is similar to zero-inflated log-normal distribution. The idea behind my analysis...
Consider a sequence of random variables $\{X_n\}_n$. Given that $$X_n - \sqrt{n} c \to N(0,1)$$ in distribution ($c>0$ is a constant number bounded away from zero). Show that for any constant $t>0$, we have $$\lim_{n\to \infty} P(X_n>t)=1$$ [Update] I use the following proof: $$P(X_n>t)=P(X_n-\sqrt{n} c> t-\sqrt{n})=1-...
Can we get the closed form value of the integral \begin{equation*} \int_{0}^{\infty}e^{-ax}\gamma(x,b)dx, \end{equation*} here, $a$ is a positive real numbers and $b$ is positive integer.
I have one set of $n$ observations which can be described as a single vector sampled from a multivariate normal distribution of the following form: $$ (1-\lambda)\mathbb{I}_n + \lambda \Sigma_{n} $$ where the values of the covariance matrix, $\Sigma_{n}$, are completely known to us and scaled to have 1s along the diago...
Let $\varepsilon \sim \mathcal{N}(0, \mathrm{Id}_k)$ and $\varepsilon_0 \in \mathbb{R}$ with $\varepsilon_0 \neq 0$. For some matrix or vector $A \in \mathbb{R}^{k \times p}$, let $P_A := A (A^T A)^{-1} A^T$ be the projection matrix onto the column space of $A$. Write $1 = (1, \ldots, 1)^T \in \mathbb{R}^{k \times 1}$....
Consider two random variables $Z$ and $W$. Given the variances of $Z$ and $W$, how can we compute the variance of their convolution $Z \circledast W $? As an example, please consider the case of noise ($Z$) in an image being modeled by a Gaussian distribution of zero mean and a given variance $\sigma_Z^2$. Suppose we p...
I am fitting a very simple model where group, time and id are factors: > model <- afex::lmer(depvar ~ group * time + (1 | id), data = df) > model Linear mixed model fit by REML ['lmerModLmerTest'] Formula: depvar ~ group * time + (1 | id) Data: df REML criterion at convergence: 684.9437 Random effects: Groups N...
I work with a dependent variable with values from 0 to 1 and because I have a lot of 0 and 1 in this variable, i'm doing a folded power transformation with the following formular: y = x^0.5 - (1-x)^0.5. In order to be able to describe the effect strength of the DV in a regression later on, I want to back transform the ...
Assume that 3-fold CV is used for comparing performance of logistic regression, SVM, and KNN for a 2-class problem. For each fold, the logistic regression provides the following confusion matrices: Is it common to add confusion matrices together (shown below) in order to determine accuracy?
Assume I have a time series, as the black one below. As shown, the quantile regression for 5%, 25%, 50%, 75%, and 95% quantiles show different slopes (in red). Even if not quite visible, the ratio between upper and lower trends is approximatively 2, which makes a critical difference. I would like to fit an ARMA model....