instruction
stringlengths
9
38.7k
Suppose I have a model $$Y = X\beta + g(Z) + \epsilon, \qquad E[\epsilon|X, Z] = 0$$ where $Y$ is the outcome, $X$ is a binary covariate of interest, and $Z$ is a vector of covariates. The goal is to estimate $\beta$. Why is the moment condition for estimating $\beta$ the following? $$E[(Y - X\beta - g(Z))X] = 0$$ Ques...
If my offset term is a constant value, does this change the outcome of a Poisson GLM regression? I have survey count data that we summarize as a rate (Counts/Area-Surveyed). In this case, transect area is a constant (60m^2). Some brief exploration of my data suggests that estimated coefficients are different between th...
Would appreciate some insight on this. My aim is to compare mortality rates between two treatment groups (treatment A vs treatment B) for a given acute disease. The data goes back some 8 years (retrospective). What would be the right statistical test for this and would propensity score matching be desirable? Thanks in ...
Univariate statistical methods are often used to prescreen variables for possible inclusion in a model. For example, running random forests (RF) with only a single predictor at a time to prescreen variables, and selecting the variables based on a minimum Model Improvement Ratio score (MIR). The prescreened variables ar...
I am trying to determine the best method to obtain a probability distribution that describes the likelihood of flipping only heads for a number of successive coin tosses with a coin that has an unknown probability of landing heads. I have a prior for the probability of the coin landing heads, described by a beta distri...
In a typical linear regression model, we assume that the errors/residuals w.r.t. predictions are i.i.d. and following a normal distribution with a given variance that is the same for all observations. I.e. if we have features/covariates $\mathbf{X}_{m \times n}$, target/response variable $\mathbf{y}_{m}$ and fitted coe...
I am working on a two-part model to predict a continuous target variable $Y$, given a feature set $F$. $Y$ is product of two continuous variables - $A$ and $B$, where $A \epsilon [0, 1]$ and $B \epsilon (0, \infty)$. The use-case is to predict the revenue from an advertisement click. We fit a two-part model (sequential...
Now, I have two assessment methods A and B (both of them are new methods) for assessing diabetes. Moreover, the method C is the gold standard. Firstly, I ask a rater (Raters X) to use Method A and C (gold standard) to assess 50 individuals, respectively. I compute Cohen's Kappa based on the ratings (assuming the rating...
I have been reading about probability distribution and random variables and I came across something: If X is the number of times a coin was actually tossed; is X a Random Variable?
I have a dataset which has a bunch of columns(features). There are around 10 features for each row (data point). Think of each data point as a person and features, some attributes defining that person. Now I want to rank these data points. Basically create a ranking method which looks at their features and comes up wit...
I am working on a binary classification problem. SVD is used for dimensionality reduction and the vector with reduced dimension is used as the feature vector. DNN is used as the classifier. There are two datasets which I am working on. On one of the datasets, I get good accuracies for dimension around 60 (i.e., I am us...
As a novice, I'm finding it difficult to learn statistics, partly because there are often many different words for the same thing. When I'm reading about stats, I don't realize that the thing I'm reading about (A) is actually the same thing that I read about yesterday (B). So I thought I'd ask a question about synonyms...
I recently encountered a problem of overconfidence in Bayesian linear regression. The initial thread can be found here. I recall the basic equations of Bayesian linear regression here for clarification. Data: $D:=\{X, Y\}, X \in \mathbb{R}^{n_d \times n_x}, Y \in \mathbb{R}^{n_d \times 1}, n_d: \text{Number of data poi...
I'm using Differential Evolution to locate the global minimum in a search space with the objective function being the Root Mean Squared Error. I'm using a mathematical model with number of parameters $\vec{V} = [V_0, V_1, .., V_{n}]$ and fitting these parameters to experimental data. The issue is I'm trying to find a w...
I am currently trying to wrap my head around the supervised contrastive loss introduced in the following article : https://arxiv.org/pdf/2004.11362.pdf The loss formula in question is : $$Loss = \sum_{i \in I} \frac{-1}{|P(i)|} \sum_{p \in P(i)} log \frac{exp(z_i . z_p / \tau)}{\sum_{a \in A(i)} exp(z_i . z_a / \tau)} ...
I'm using a Random Forest model in Python (sklearn) to predict categorical y-values using a X,y dataset that is split in training and a testing dataset. The model accuracy is calculated using the classification_report function in sklearn, which shows the accuracy of the model per y-value. Now my question is, can one ge...
just want to get my head around mediator and how to properly interpret its effect on the relationship between predictor and response. From https://journals.lww.com/jnpt/fulltext/2019/04000/mediators_and_moderators,_confounders_and.1.aspx, the authors explained that the mediators "lie on causal pathway" whereas the cova...
I have two sets (S1, S2) of answers to a typical survey question with ordered categorical (discrete) answers (“strongly disagree”, “disagree”, … ,” strongly agree”). I need to test whether I should reject the null-hypothesis that S1 and S2 come from the same distribution. Because the categories are ordered, a chi2 test...
I have a dataset split into training and testing dataset. Then I preprocess the training data using scaling, PCA and LDA. As I recalled, I have to use the centre and standard deviation I get from training data on the testing data. Is it the same too for PCA and LDA? (i.e use the transformation matrix of PCA and LDA fro...
I have a time series that I'd like to perform regression on. It's not linear, or homoscedastic. After applying a square root transformation to the dependent variable, which made the graph linear. I applied the sklearn LinearRegression model, and checked the distribution of the residuals, which are normally distributed....
I'm watching ML course from Stanford on Youtube and on the Bayesian Methods Class, the professor writes the following: $\theta$ ~ Prior $y$ ~ $P(y|x,\theta)$ Posterior distribution: $P(\theta|x,y) = \dfrac{P(y|x,\theta)P(\theta)}{P(y|x)}$ He states $\theta$ and $x$ are independent. I really don't understand how he made...
I have approximated a discrete distribution via Monte Carlo in two different ways, which metric would you use to check the distance between the two distributions? I want to use it to diagnostic whether the two methods actually are approaching the same distribution, I don't have access to the "true" distribution. Edit ...
All, would welcome some advice on how to model this! I've got a natural experiment whereby staff at 2 branches (of around 30) were given a new process around mid-year. So I have x thousand staff, assigned to either 1 of 2 treatment branches, or one of 30 ish control branches. I have measures of my outcome variable per ...
I'm trying to come up with an image statistic that quantifies the criticality of an image. Criticality is a scale that is highest when an image finds itself on a sweet spot between randomness (e.g. white-noise) and pure order (e.g. only one solid surface). This metric could indicate whether an image appears more nature...
I'm planning a two sample proportion test and was asked to calculate what sample size is needed to show a certain effect size at a give level of power and significance. The book I'm using (Statistical Power Analysis for the Behavioral Sciences, Cohen, 1977, p. 180), notes that if we were to calculate effect size as sim...
I have conducted a SEM model in MPlus where X and Y are categorical and M is continuous. So the path from X to Y are log odds, the path from X to M are betas, and the path from M to Y are log odds. I used the "model constraint" command to calculate the indirect effect of X to Y through M which has given me some signifi...
I've been asked to use a likelihood ratio test to test for the significance of a main effect in a linear model. I have done so as follows: anova(model1, model2) Model 2 contains one fewer independent variable than Model 1. The P-value obtained from the ANOVA is exactly the same as the P-value for the dropped term in t...
Let's say we have a case of money laundering detection, and the only identification for customer and business is their bank_account numbers. How can we encode them for the input to neural networks. Onehot encoding can be too sparse. Thanks!
I have created a model using glmer(). The battle_seq_num is the number of sessions, each player_idhas 100 sessions (observations). My goal is to make a prediction for the test sample whether they are going to buy a membership or not. xp is a continuous quantitative variable. m2 <- glmer(is_tier_ten ~ xp + battle_seq_nu...
Dear everyone, I am trying to obtain linear regression details for my linear mixed model (LMM) created with the lme4 package in R. I have a LMM with Yield as response variable and four levels of Treatments (fixed effect) and Year is considered a random effect. model2 <- lmer(Yield ~ Treatment + (1 | mean_yearly_yield),...
Can you refer me a book, a site, or a PDF that can show a step by step guide for forecasting LSTM and Holt's winter Exponential Smoothing in a univariate data?
I am looking for an estimation/iteration process to estimate the value of a specific unobserved parameter of a convex function that fits the observed data of the other variables closely. Specifically, in the following equation b, v, r and n are observed through an experimental procedure and I would like to estimate the...
Consider some data $\{(x_i,y_i)\}^n_{i=1}$ and a differentiable loss function $\mathcal{L}(y,F(x))$ and a multiclass classification problem which should be solved by a gradient boosting algorithm. EDIT: Björn mentioned in the comments that the softmax function is not a loss function. The more appropriate term is softm...
Let's say I'm responsible for checking the length of shoes on a production line. Our production system isn't great, so a shoe that should be 25 cm long might actually be a slightly different length (25.4, 24.8, 26.0, etc.) And I am measuring with a set of rulers that are not great, so I could measure 25.0 cm when the a...
Whenever I encounter articles on supervised learning examples are things like regression, classification, object detection, which are obviously ones following frequentist approach. I've recently studied generative models, which are basically Bayesian approach since it learns whole distribution, not just a parameter, an...
I am attempting to emulate the following paper by Messer et al., using year 2000 decennial Census data in R to create an index known as the Neighborhood Deprivation Index(NDI): https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3261293/#CR73 The Component Extraction and Index Construction section of the paper outlines the st...
It is often said that a AR(1) process can be viewed as a discretized version of the continuous-time Ornstein-Uhlenbeck process. Can we really claim this to be valid considering that the Ornstein-Uhlenbeck process is mean-reverting while AR(1) does not have to be. It seems to me that a discretized Ornstein-Uhlenbeck pro...
Assume I have some data that follow a power law and I would like to estimate the exponent $a$. An obvious way to do so is to bin the data and then fit the power law to the histogram. However I found that the result can be unreliable as it not only depends on the number of free parameters, but also on the binning. For e...
Suppose we have any kind of coin. Why should the relative frequency of getting a heads converge to any value at all? One answer is that this is simply what we empirically observe this to be the case, and I think this is a valid answer. However, my question is, is there some simple set of principles/axioms that apply to...
Suppose I have time series data for two variables, X and Y. Assume that I am already convinced that there is a causal relationship between the two, but that I am unsure of the direction. Also assume that there will be a short time delay between cause and effect (here, short means at least an order of magnitude less tha...
I have a problem where I have a measured data vector $D$ with Gaussian uncertainties (covariance matrix $\Sigma$). I am now trying to model this data with a generative model with parameters $\phi$. The problem is that my model is simulation based. For a given $\phi$, and given random seed s, and given number of particl...
I am confused with period effect, secular change, temporal trends in crossover design. In this article it is stated that The randomization of the treatment sequence helps to account for temporal trends (such as seasonal variation). But for example, in Stephen Senn's book on cross-over trials, he says: Alternatively,...
Recently I have been working on replicating the results from package lmer in R to proc mixed in SAS for mixed modeling. There are multiple model structures that you can specify from lmer as explained under the link: https://cran.r-project.org/web/packages/lme4/vignettes/lmer.pdf, page 7. You can download the pupil_demo...
I am trying to build a GLM model (poisson family) using python statsmodels package on train data. The data I have contains categorical values as exogenous variables and numerical values for my target (endegenous variable). I did standardization for numeric values and one-hot-encoding on categorical values (drop the fir...
I am utilizing gamlss currently because of its flexibility in specifying 'rarer' data families but run into an error when trying to compare 2-by-2 differences in mu effects for my fixed model factors. This is the code: library(gamlss) m3=gamlss(y ~ x1 + x2 + x3 + x1 : x2 + x1 : x3 + x2 : x3, data=dataset, ...
Mutual information between a pair of random variables $X,Y$ having joint distribution $P_{(X,Y)}$ and marginal distributions $P_X,P_Y$ respectively is defined as $$I(X,Y)\equiv D_{\text{KL}}(P_{(X,Y)}\|P_X\otimes P_Y ),$$ where $D_{\text{KL}}$ is the KL divergence. Intuitively, this measures how much "information" is r...
My first post in this community. My knowledge of statistics is limited, and so I am seeking advice on the following problem. (Sorry for the long post, and thank you in advance for your help). I have a group of 15 children with taste disorders (a not so common condition); 8 are girls, and 7 are boys. I do the following ...
In a node classification setting, is it require to normalize/scale graph node attributes before learning node embeddings using graph neural networks? Why?
I am trying to probe the following significant interaction between Condition (categorical, three levels) and time (continuous) using R emmeans package: Original formula for the model was: m.EDA = lmer(EDA_cs ~ Time_sd * Condition+ (1+Time_sd|Subject) + (1+Time_sd|Video), d...
The ANOVA test I ran on my dataset resulted in the rejection of the null. What is the way to tell which treatment is significantly different from the others? Should I do a bunch of paired t-tests or eliminate one treatment a time and run the ANOVA again on a subset of the data?
I have count data with a corresponding time and place of each count, but my research question is about proportions. Is it valid to run a chi-squared test on percentages rather than count data? I'm also asking because I don't understand some of the results. For example, "Whipray" in 2016 (value of 43.75000) is "higher t...
In survival analysis is it possible to have conjugate priors for the likelihood of right-censored data? More precisely, the likelihood of right-censored data is of the form: $$P(X|\theta) = \Pi _{i \in \text{died}} f(x_i) \Pi _{j \in \text{lived}} S(x_j)$$ where $x_i$ are the death times for uncensored individuals and ...
In most CNN papers they try to visualize their feature maps for each layer, for example in : https://ieeexplore.ieee.org/abstract/document/8739137?casa_token=mpQfdl2GJLYAAAAA:bci8BEKNgkjQWckwy9zlCAUAhDQ6ny2eco95lYVosvo31Q5M_D6-5tZPC7ky2yqaPefm30tkxdQ Their visualization looks like this: The two convolutional layers bo...
I see that when talking about estimator, we have "of something", where "something" refers to a fixed parameter. For example, we say that the sample mean is an estimator of the population mean (a fixed parameter), or the sample variance is an estimator of the population variance (of course, a fixed parameter). However, ...
I have a question about finding the fittest model (lmer). What I've learned is to remove the non-significant terms from the full model until none of the terms can be removed. Then consider the high-order interaction again and remove non-significant terms. However, I noticed that when I do this, sometimes the model cha...
My data are a little weird, so I'm going explain them with an example that is analogous to my data. RQ: I want to know if sugary drinks are becoming more popular. Data: I have a list of the 20 most popular drinks every year over the past twenty years, as well as their sugar content. Analysis: I have two ideas on how to...
I have a population made of the following segments: A: 19% B: 52% C: 2% D: 10% E: 17% F: 0.5% My final sample (n=1,272), due to a much higher response rate for group C, is A: 27% B: 15% C: 38% D: 9% E: 7% F: 4% By simply weighting the sample data using the population weights, I would have to "overweight" group B more t...
Could you please tell me what (bad) can happen if I use the same feature as the denominator in the target feature and as the predictor in a boosting regression? I think I should exclude it from the predictor part, but I don't know where this feeling comes from. I appreciate any thoughts, I feel stuck. Thank you!
I am using mobile net v2 for multiclass image classification problem, here is how I am loading the data train_datagen=tf.keras.preprocessing.image.ImageDataGenerator( rescale=1./255, shear_range=0.2, zoom_range=0.2, horizontal_flip=True, validation_split=0.1 ) test_datagen=tf.keras.preprocessi...
I have a simple correlation question: there are three variables, A, B, C. A and B are 99% correlated. C is 95% correlated with A. But it is only 88% correlated with B. Is this unusual? Should C be almost equally correlated with both A and B? If not, what is the maximum difference in correlations that we can expect?
I searched the site for an answer to this question, but the closest I could find was: Gaussian process where the output is constrained to be 0 or greater which doesn't have an answer. So, I have a dataset generated as $$y=f(\phi,x)+\epsilon$$ where $\phi$ is a $d-$dimensional vector of parameters, $x$ is a scalar, and ...
I have a group of texts belonging to two different classes. I would like to extract numerical features that can separate well the two classes. Right now I implemented a classic TF-IDF with a document for each text. This method may be not particularly useful in my opinion since it does not take into account the differen...
This question is about whether we can treat a weighted likelihood as a likelihood inside Bayes' rule. Let $\theta$ be a parameter and let $x$ be some observed random variable. Given a prior over $\theta$ and a likelihood function of observing $x$ under $\theta$ (both satisfying certain regularity), we may evaluate the ...
What does the Energy function in Restricted Boltzmann Machines represent intuitively? I explain what I mean by the following example. If we look at cross-entropy $H(p,q_{\theta})=-\sum_{x}p(x)\log(q_{\theta}(x))$, there is not much to say here (why minus in front of the sum? why $p(x)$, not $\log(p(x))$, etc.). We don'...
The problem is somewhat related to sequential procedures (e.g. Paulson; Gupta and Miescke) I have a hundred engines generating normal random numbers with true (unknown) means $E_1,E_2,E_3...E_{100}$, each having the same variance, of say V. After 50 samples have been collected from each of the engines, there is a force...
I am trying to calculate range for my model predictions after performing optimization and getting values of the optimized parameters. I am aware that we can get a standard error of the optimized parameters (e.g., for a linear model with the inverse of the diagonal elements of the hessian) as shown in here My question i...
I have data where only values at large x should fit to a particular distribution whose parameters I wish to determine. I want to do a goodness-of-fit test to find the value of x where the data fit to the expected distribution. My understanding is that a modified Kolmogorov-Smirnov test (modified so that I am looking at...
I am trying to implement stacking model for a ML problem and having hard time figuring out the cross validation strategy. So far I have used 10-fold cross validation for all my models and would like continue using that stacking as well. Here's what I came up with but not sure if it makes sense, At each iteration of 10...
I recorded XY data from many individual cells responding to a stimulus (Concentration of Molecule A (Y-axis) ~ Time (X-axis)) (see image below for three such cells). How can I extract descriptive information from these XY curves (ideally using R)? For example, I'm looking to determine (i) the amplitude of the response ...
I would like to use a cox proportional hazards model to estimate the effect of percent tree cover on the minimum time interval between the occurrence of two species at a location. The first species I consider at each location is the domestic dog, and the second is the coyote. The arrival of a coyote after a dog, after ...
I have a dataset which has Quantity ordered (along with other variables like product type, product price, customer group etc). Target variable is whether customer churned or not. I am doing this to convert my continuous variable into categorical values like high, med, low based on Qty ordered level However, my question...
We have a variable x for which we have daily data (timeseries). It is observed x(t) is negatively correlated with Average(x(t+1)), Average(x(t+1), x(t+2)) … till Average(x(t+1), x(t+2), .. x(t+21)). Moreover, the magnitude of negatively correlation decreases as we move towards the end of 2nd series. I was curious on: ...
I've set up a multi task Gaussian process problem with the help of coregionalization (more precise: an intrinsic coregionalization model (ICM)). My features space constists of ~20 input dimensions for six outputs. Following this paper the kernel matrix $\mathbf{K}$ corresponding to a dataset $\mathbf{X}$ takes the form...
I am doing a regression on the influence on marketing spending. I have already tested for heteroskedasticity with the Breusch-Pagan Test and found that the test came out positive. Based on the template that I have from a book, one should now also check with the White test whether heteroskedasticity is present. I tried ...
I understand that you cannot fit a glmer(via "lme4") then test using robust SE estimator. Ie model <- glmer(Sepal.Length ~ Species * Sepal.Width + Petal.Length + (1 | grp), data = restricted2, family = poisson(link = "log")) then do coeftest(model, vcov = sandwich) Is there any other packages that allow you to do the...
I'm fairly new to negative binomial regression models, so I hope my question makes sense. So far, I already found this answer to this old question (https://stackoverflow.com/questions/22213315/how-to-calculate-the-predicted-probability-of-negative-binomial-regression-model) in which the person answering showed how upon...
I am wondering about the use of boxplots versus mean with 95% in a figure? A boxplot will give you median and you can add a notch to show the 95 % CI for the median so it is quick and easy to compare different samples and see if the CI overlaps. Mean with 95% CI will give you almost the same, but the data must have a n...
Suppose I conducted an experience sampling study and set up a multi-level regression, in which episodic well-being (LVL-1) is predicted by episodic flow (LVL-1) and episodic loneliness (LVL-1) (measurement occasions nested in participants; both LVL-1 predictors flow and loneliness with random slope). I am interested in...
I have a simple logistic model, and I internally validated it using rms::validate in R. The estimated overoptimism for the intercept is -0.015 and for the slope is 0.05. How do I calculate the corrected predicted values? I know I have to multiply the coefficients by 0.95, but what should I do with the intercept? I gues...
I've learned that a neural network provides a great function approximation. But in some books, it's said that a neural network outputs a "parameter", for example, mean when Gaussian distribution is assumed. I'm confused with these two facts since in the first view a neural network is just a big function while the secon...
I gather that if we have random variables such that $X_1,X_2$ are independent and $Y_1,Y_2$ are independent, then $$X_1=_dY_1,X_2=_dY_2\implies X_1+X_2=_dY_1+Y_2,\quad (1)$$ where $=_d$ denotes equal in distribution; the identity can be shown by characteristic functions. Without the independence assumption, we have an...
Problem statement: I'm working on a multiple regression after running an RCT, to confirm treatment effectiveness and quantify effect size. Initially, when I regressed a dependent variable against some dummy treatment variables, I have significant results, although my Pseudo $R^2$ wasn't that fantastic (0.3%). When I ad...
"The central limit theorem states that if you have a population with mean μ and standard deviation σ and take sufficiently large random samples from the population with replacement, then the distribution of the sample means will be approximately normally distributed." (from sphweb.bumc.bu.edu) Reviewing the underlying ...
I am a little bit confused about equal and unequal variances. I understand the definition and mathematics behind it, yet I don't know, for the purpose of my research, how to appropriately test that. Example: I want to test the effects of Exercise on the psychological Well-Being of two separate Groups. Group 1 ist exer...
I need a counterexample for the problem: if $r>s\geq1$, convergence in $s^{\text{th}}$ mean does not imply convergence in $r^{\text{th}}$ mean. The definition for convergence in mean is as follows: Let $r\geq1$ be a fixed number. A sequence of random variables $X_1, X_2, X_3,...$ converges in the $r^{\text{th}}$ mean t...
I have a dataset of properties for 20,000 samples and 200 of these samples have a categorical label (A, B or C); and I'm trying to assess the relationships between the properties and the labels. I am doing this with Chi2 and Kendal's Tau tests for the discrete and continuous properties respectively. However, there is a...
Suppose we have a probability distribution $f(x)$ with a finite support $[a,b]$. If we take the probability convolution of $\lambda f $ with $(1-\lambda)f,0 <\lambda<1$ recursively for many times, does the resulting distribution converges to the Dirac-delta distribution at the mean of $X$? To be more specific: suppose ...
The val.prob function in the rms R package has similarities to the calibrate function discussed in another question of mine, but a key difference in that val.prob has no notion of a probability model. Indeed, I can run val.prob on random data. library(rms) set.seed(2022) N <- 100 p <- rbeta(N, 1, 1) y <- rbinom(N, 1, p...
We can take a covariance matrix $\Sigma$ and decompose this into a lower and upper triangular matrix $\Sigma = U^T U$ where $U$ is the Cholesky matrix. This matrix can be used to transform uncorrelated standard normal variables $X$ and $Y$ to $W$ and $Z$ such that the covariance of $W$ and $Z$ is $\Sigma$. 1, 2, etc. I...
I've been working on some survey data using the survey package. I read the documentation available on post-stratification and calibration, however I got stuck trying to calibrate the sampling weights on a total known for the population that is not the population total. To make my self clear I prepared an example: Let's...
I need yout help! I have a stochastic process $X_t$ and I know its density function $f(x,t)$, which is defined for $x>t$. I'm looking for a code in R that simulates the paths of the process, so I want to plot $(t,X_t)$. For example, for the Brownian motion we have (page 10 http://www.math.chalmers.se/Stat/Grundutb/CTH/...
I have a dataset that looks like this: COUNTY YEAR PREDICTOR1 PREDICTOR2 DEATHRATE ADAMS 2014 34.3 34.1 4.5 ADAMS 2015 32.1 67.3 5.5 ADAMS 2016 34.2 33.2 6.7 JONES 2014 33.6 47.3 20.3 JONES 2015 33.6 29.3 ...
I need use smartPLS but i also have prediction purpose (coefficients should also act like b-coefficients of regression). How to do this in smartPLS, since all coefficients are standardized?
We sent three different emails to the same set of members (between the second and third emails, members who left the plan were removed and new eligible members were added). I don't have the member-level data. I have the following email open rates. How do I calculate the statistical differences between the email open ra...
I have done an lmer with a random factor and two fixed factors in R, all orthogonal. Levels of factors: fixed.factor.1 = 3 fixed.factor.2 = 2 random.factor = 2 Replicates per group = 3 model <- lmer(response.var~fixed.factor.1*fixed.factor.2+ (1|random.factor),data=df) summary(model) Anova(model,type...
I have asked a related question before (with more stronger requirement): Probability bound of the difference of order statistics for correlated and identical Gaussian random variables. Now, I'm pretty sure that there doesn't exist any such bound or difficult to calculate such bound. However, in this question I'm relaxi...
NOTE: I'm aware that another post covers this from a slightly different angle. But the derivation (of the variance of the weighted mean) in that post does not look the one I give below, and (more importantly) there's a specific step in the derivation below that I'm confused about. My post below asks about that specific...
In a random effects logistic model, I have two variables of interest: Call and Visit. When I run the model, Call and Visit both have a p-value near 0.10. When I add an interaction term between Call and Visit, all three terms are now much larger than p = 0.10 and don't approach conventional significance. Why might t...
Question Does there exist a (non-degenerate) distribution that does NOT belong to any maximum domain of attraction? That is: Does there exist any non-degenerate probability distribution function $F$ such that if $X_1,X_2,\dots \overset{\text{iid}}{\sim} F$, then there do not exist any sequences $(a_n) \subset \mathbb R...
The posterior of $\text{Exp}(x;\lambda)$ with prior $\text{Gamma}(\lambda;\alpha, \beta)$ is $\text{Gamma}(\lambda|\alpha+n, \beta + n\bar x)$ where $n$ is the number of observations and $\bar x$ is the mean of those $n$ observations. Suppose $\alpha=1, \beta=1, n=10, \bar x=3$. Shouldn't the posterior be $\text{Gamma}...