instruction stringlengths 9 38.7k |
|---|
I have a dataset with both categorical and numerical values. First I encoded the categorical data using one-hot encoding. Then the next step is to feature scaling. For that, I am going to use standardizing. But I have a doubt did I want to scale the encoded values also? Or did I want to encode only the numerical value?... |
Consider a sample $X_1,X_2,...X_n\overset{\text{iid}}{\sim}F$. Let $T_n=F_n^{-1}(1/2)$ be the sample median where, $F^{-1}(x)=\inf\{t:F(t)\ge x\}$ and $F_n(y)=\frac{1}{n}\sum_{i=1}^n\mathbb{I}(X_i\le y)$. Assume that $N=2m-1$. Then, $T_n=X_{(m)}$.
Now, let $X^*_1,...X_n^*$ be an iid sample from $F_n$. Then, $$P_*(X_{(m... |
I'm reading a study where two groups receive two different psychotherapeutical treatments. The authors calculated Cohens D:
'In addition, we report estimates for Cohen’s d effect sizes as the adjusted mean difference of the outcome (between the groups) divided by the sample SD of the outcome at baseline.'
Why did they ... |
Let's say I have repeated measurements of some (approximately normally distributed) variable spaced 7 days apart. Is there some way to use the information in these week-to-week correlations to estimate what the correlation is would be expected to be 3 days away (for example).
My first thought was investigating how the ... |
Here are some notes about copula functions,
Copula is a probability model that represents a multivariate uniform distribution, which examines the association or dependence between many variables. Put differently, a copula helps isolate the joint or marginal probabilities of a pair of variables that are enmeshed in a m... |
I have some data, belonging to paired groups $A,B$. From each group I get a non-negative statistic $d^A,d^B$ which is averaged on all samples in group. My interest is in the ratio $\frac{d^A}{d^B}$, i.e. how far are these statistics from each other (straight subtraction makes no sense). My equivalence hypotheses (inspi... |
I have run a robust linear mixed effects model to determine the standard deviation within subjects for a repeatability study on a new imaging device. The SDw was derived from the square root of the residual mean square. I have done this from over 100k observations and Grouped through the measurement range from 40 to 90... |
I'm looking for ways to estimate the sample size for a within-subject repeated measures design with continuous moderators. There are two conditions with 5 stimuli per condition, and each participant sees all of them. Analytic strategy will be a linear mixed model (using the lme4 package in R).
First I need a simple met... |
I know the question of how to compare two datasets has been asked multiple times and I have read a lot about the different tests available but I'm a little lost on what exactly the tests show and what I need to do.
I have two datasets, both contain TCP communication of a system which gets aggregated into flow statistic... |
I have a table of contingency which is 6X2 and in my case, it is not an option to "convert" it in a 2X2 table. Also, I need to be able to use the hypothesis of "less than" and "greater than" (I mean, I cannot be restricted to the "two sided"). The Fisher test in R (fisher.test) allows for all three hypothesis only when... |
So I have a not normal data (I did saphiro test and the result said it's not normal)
Then, I did data transform with log. So the data went normal.
Does the log data can work for my pca?
Or should I use my non normal data?
|
I run an exhaustive model selection for Cox proportional hazard in R using "glmulti" package. I used the best model for creating multivariable Cox regression. In the multivariable Cox hazard, some variables had a p value > 0.05. Isn't this indicating a problem with model selection? by the way, I tried stepwise selectio... |
My textbook makes the following proof:
But I cannot understand how it arrives.
The variance of $y_{ij} = \sigma^2 + \sigma_t^2$ by assumption
this leads to:
$MS_e = \sigma^2$
$MS_{treatments} = \sigma^2 + n\sigma_t^2$
But it seems like we're instead simply finding:
$Var(\bar{y}) = \frac{Var(SS_{total})}{a^2n^2}$ based... |
I'm performing a survival analysis. I did the univariant Cox regression model for all my variables (about 40). I even performed the univariant analysis in all those variables that had missing values for some patients at random (about 8 variables, which includes for example the BMI, the CRP or the microbial growth in cu... |
I am trying to create an AMOS SEM model between Childhood Traumas (CT) and Borderline Personality Disorder (BDL), and the Behavioral İnhibition System (BİS) will be moderating this relationship. It will be a full structural model, so I will add CT as a latent variable predicting its 6 subscales (trauma types) and BDL a... |
I am relatively new to R, and I cannot figure out an acceptable statistical test to determine whether the number of dead aphids in a population depends on the starting number of aphids and the time. I have four columns representing the number of dead aphids in a population of aphids in separate Petri dishes.
How do I d... |
I was solving a question and I realized after splitting the tree on every attribute.
I reached a point where if my final attribute value is "No" then all the classes have equal frequency. if my final attribute value is "Yes" then I have no data points left.
I am confused about what to do in this situation. I couldn't f... |
Given two rather small but unordered multidimensional vectors/datasets (e.g sets of a handful of 3D coordinates), what is a simple method for pairwise alignment/ordering?
I've though about using clustering algorithms such as KMeans, but I am unsure how to constrain to the pairwise aspect of the problem.
|
I have a linear model with a bunch of variables a number of linear constraints on these variables. I am currently using quadratic programming to solve this constrained least squares problem.
However, I now want to impose an additional constraint: Either the coefficient of the first regressor or the coefficient of the s... |
I have the following time-varying survival data:
ID
Start
Stop
Group
Z
event
1
0
8
1
0
false
2
0
5
0
0
false
2
5
8
0
1
true
3
0
3
1
0
false
3
3
12
1
1
true
I want to calculate the Jackknife pseudo-values by the following formula:
$$J_i(t)=n\hat{S}(t)-(n-1)\hat{S}^{-i}(t)$$
where $\hat{S}(t)$ is the a... |
Per Wikipedia, Ridge Regression is equivalent to transforming the singular values $\sigma_i$ of the design matrix to $\frac{\sigma_i^2 + \alpha^2}{\sigma_i}$, where $\alpha$ is (in Wikipedia's notation) the Ridge Regression parameter. The interesting thing is that the transformation $f(\sigma) = \frac{\sigma^2 + \alpha... |
Fisher transformation, or hyperbolic arctangent, is recommend before performing arithmetic on correlation coefficients (e.g., estimating confidence intervals), because it makes their distribution normal. I have a strong intuition that the same is true for coherence coefficients, given the similarity of Pearson correlat... |
I am working on a project wherein we are comparing two methods used for modeling gene expression: one method is using elastic net and other is using lasso regression.
In one method: we see that majority of genes are showing improvement in correlation between predicted and residual expression in comparison to other meth... |
I did a Dirichlet Regression to assess the effect of independent variables on a compositional dependent variable. However, as I have 3 predictors, I do get interaction.
I have a hard time understanding the results with an interaction mindset. Since in a regression, there is one reference level, I'm confused with the co... |
I am almost finished reading The Goal, which emphasizes the importance of managing bottlenecks in production. I'm more into service networks than production, but there is a lot to carry over from one to the other. One the lessons is that meeting capacity with demand on average is not enough due to a combination of unco... |
I have data on the number of donors each year as well as the size of the total population each year and the number of deaths each year as well as the number of patients that have died on a intensive care unit.
To be considered as a donor the patient has to die on a intensive care unit.
Im considering calculating a crud... |
The situation is as follows (physics based): I have an array (7) of pixel sensors (imagine phone cameras) and a ton (millions) of particles crossing them (very large N). Each particle crossing a sensor will produce a specific kind of "event" (a cluster of pixels that responds to the passage of particles), based on the ... |
How do you calculate the variance of a Multimodal Generalized von Mises (MGvM) distribution? Given its complexity with multiple modes and asymmetry, I'm looking for:
Any formula or method to calculate its variance considering concentration parameters, weights, and mode positions.
definition:
Appreciate any guidance or... |
I'm very new to data analysis. I'm trying to find the causal effect of seating row and laptop use on grades at a specific university. I have data from 15 introductory economics lecture sessions delivered by 5 different lecturers (who had three weekly sessions each). Each student was randomly assigned at the beginning o... |
I've come across this statement whilst reading about HMMs:
Given $\alpha_{n}(j) = P(Y_{0}^{n}, X_{n} = j)$ and $\beta_{n}(j) = P(Y_{n+1}^{N} | X_{n} = j)$, then
$$P(Y_{0}^{N}) = \sum_{j} \alpha_{n}(j)\beta_{n}(j)$$
This doesn't come with any explanation though.
My question is, why is this the case?
I know that $P(Y)=∑_... |
I have relatively uniformly colored images and I extracted colors using k-means. k means 1 showed the best results for my modeling purposes, k means 2 not so much, and with k-means 3 there ceased to be differences between some channels of samples.
Is this a reasonable approach and is it technically different from calcu... |
I'm working with panel data using the plm package in R to estimate a fixed effects model that includes interaction terms. I'm currently able to get my model results using plm and display them with stargazer, but I'm looking for a more refined way to present these results, specifically focusing on the interaction terms.... |
When should a pre-test for normality only without a pre-test for equality of variances be performed before location tests like this paper did ((Rochon, J., Gondan, M. & Kieser, M. To test or not to test: Preliminary assessment of normality when comparing two independent samples. BMC Med Res Methodol 12, 81 (2012). http... |
I have a set of observations of a variable Z (shown as the colormap) as a function of two other variables A and B. I want to study how Z varies with respect to A, B, and both A and B (eg. if A increases, does Z increase or decrease? Same with respect to B?)
The only problem is that my observations of Z are highly biase... |
I am writing a paper about electoral periods and its effect in the exchange rate. I estimated a VAR model where the electoral period dummy its included in the var. I am trying to measure the impulse response effect of that dummy over all the model variables, and I am getting good results, but I dont think its a statist... |
I have created a partial dependence plot and converted a probability on the y axis. I am systematically going over my variables with the highest importance and see if there are some clear trends in predictor variables and the class. Since I am new to this, I would like to get some feedback from the scientific community... |
I'm definitely a beginner and trying to get a handle on things so I apologise in advance for possible slowness of understanding :)
Recently, I came across a problem where given some sequence of categories $X=(x_1, x_2, \cdots, x_n)$ you had to predict another sequence of categories $y=(y_1, y_2, \cdots, y_n)$. Now, the... |
I am trying to build an XGBoost model in pycharm and I have a general method question even though it relates to my model of choice (XGBoost). Any kind of general comments on the proper statistical method are appreciated too. My data is very unbalanced: 12,114 ones and 1,732,081 zeros (which I then split and use 60% for... |
I'm working with two groups - patients and controls - and we've collected data on 36 continuous measures (biological indexes) for each individual at 4 different time points. My primary focus is on identifying any differences in the means of these indexes between the two groups at each time point.
Initially, I was think... |
I'm trying to calculate the partial correlation between continuous variables $X$ and $Y$ while controlling for $Z$ (a categorical variable with three possible categories).
Tutorials and answered questions all state that it's possible by using dummy values. But they all assume only two categories, so I'm not sure if mor... |
Given $X_1,X_2,...X_n\overset{\text{iid}}{\sim}F$, find the distribution of the sample inter quartile range, $F_n^{-1}(3/4)-F_n^{-1}(1/4)$ in terms of $F$ where, $F_n$ is the emperical distribution function defined as $F_n(x)=\frac{1}{n}\sum_i^n\mathbb{I}[X_i\le x]$ and $F^{-1}(t):=\inf\{x:F(x)\ge t\}$.
Theorem. For a... |
Background
I'm working on an insurance dataset that has 4,000 rows, and 30 columns. The target variable is the loss incurred by the customer for the given row.
The target variable's distribution looks like this:
All the models I build on this distribution predict far too high for most rows and I think the outliers are... |
64 cows, subjectivelly tested for chute score response in 2021, by one observer; from score 1 (calm response) to score 4 (nervous response). The same test in 2022, same observer, same animals. Test-retest reliability was found to be poor, ICC=.35, p<0.00019, 95%CI, .067 to 0.57. So, the test is not consistent over tim... |
I am working on a project employing a panel data set with a large N but a fairly small T (5 time periods). MSMs seem like a good strategy, but I am wary of the incorporation of lagged values since this will omit the first time period, which has major costs for my project given the small T.
If I do not include lagged va... |
I have two classifiers, trained on the same dataset, each predicting a different variable. let's call these X1 and X2. They have their respective precision and recall measures X1-p,r, and X2-p,r.
I now have consumers asking for a "composite prediction" Y = f(X1, X2). Say f is as simple as X1 = 'x1' OR X2 = 'x2'.
Questi... |
I'm a medical student performing my final degree thesis, so sorry in advance for my little knowledge in stats.
I'm performing a retrospective study on the surgical field where I want to evaluate the development of a anal fistula after the debridement of an anal abscess. At first, I thought about doing a survival analys... |
I'm interested in adding a new factor to my data set (to model against my response), but I need help thinking through if doing so would introduce pseudo-replication, or other problems as well.
The way the data was collected entailed throwing 3 nets per location/site and aggregating all catches to a single count per sit... |
When doing a contrast test (see R code below) or it's rather unusual regression style equivalent, both of which are basically a t-test, what assumptions have to be met? Just the assumptions of a standard t-test?
library(multcomp)
# Specifying a contrast comparing the mean to zero
contrast_matrix <- matrix(1, 1, 1)
co... |
I am working on a model with 4 variables, and these variables are integrated I(0) and I(1), but one variable is integrated I(2). What is the model suitable for this data?
|
In my plot below I am going to compare the pdf of my sample in log scale to the normpdf in log scale . From the plot I can see that the sample pdf roughly follows a standardized normal distribution. my question what is the advantage of comparing pdf in log scales? wouldn't it be the same thing to compare via a histogr... |
At each iteration $t$ of the Gradient Boosting algorithm, we're basically trying to add the weak learner $f_t$ that minimizes:
$$
\mathcal{L}_t = \sum\limits_{i=1}^{n} l(y_i, \hat{y}_i^{(t-1)} + f_t(\mathbf{x}_i))
$$
where $l$ is arbitrary differentiable loss function and $\hat{y}_i^{(t-1)}$ prediction from the previou... |
I'm using packages included in this R/rStudio tutorial to set up some linear regression models comparing a continuous dependent variable (eccentricity) to three categorical variables (year, bird tissue type, and their interaction). The endgame is to rank these by AIC. Everything (including the models) runs fine in R. H... |
I wish to know how many seals are in an area. Seals have been counted in a portion of the area, once each month over multiple years. Separately, several seals in the area have been fitted with GPS tracking devices and the proportion of time they were available to be counted in the surveyed portion of the area has been ... |
I have data that follows bimodal distribution and looks as follows:
# Install and load the ggplot2 package
install.packages("ggplot2")
library(ggplot2)
# Example data
distribution1 <- c(1, 2, 3, 4, 5, 15, 16, 17, 18, 19)
distribution2 <- c(10, 11, 12, 13, 14, 20, 21, 22, 23, 24)
# Combine data into a data frame
data... |
I have applied two different models. One OLS model with independent variables X1, X2, X3 and one ridge model with independent variables X1, X2, X3, X4 and X5 through glmnet package in R. So let’s say for OLS model we receive the following Y = a1 + b1*X1 + c1*X2 + d1*X3 and from ridge model for different lambda we recei... |
Given a set of $m$ strictly positive real numbers $W = \{ w_{1}, \dots, w_{m} \}$, I want to find subsets of $W$ whose sum is less than or equal to a maximum value $N$ using Gibbs sampling. To do this, we define a binary random variable $X_{i}$ for each $w_{i} \in W$, where $X_{i} = 1$ implies $w_{i}$ is included in a ... |
Let $C$, $B$, and $A$ be events in the same probability space, such that $A$ and $B$ are independent and
$P(A \cap C) > 0$, $P(B \cap C) > 0$.
Prove or disprove:
$P(A \cap B|C) = P(A|C)P(B|C).$
|
I have calculated the scores of all the columns in my dataframe, which has 312 columns and 650 rows, using PCA. I used the following code:
all_pca=PCA(random_state=4)
all_pca.fit(tt)
all_pca2=all_pca.transform(tt)
plt.plot(np.cumsum(all_pca.explained_variance_ratio_) * 100)
plt.xlabel('Number of components')
plt.grid... |
In linear regression the OLS solution is given by:
$$
\hat{\beta} = (X^TX)^{-1}X^TY
$$
I want to show that if you scale the $i$th predictor variable by a constant, then the corresponding $i$th coefficient scales down.
In matrix notation I want to show:
If we scale the $i$th column
$$
X^{*}_{(i)} = a \cdot X_{(i)}
$$
w... |
There are a number of variational autoencoder(VAE) methods that have nonlinear encoders and linear decoders. The concept of using the linear decoder is to improve the interpretability (which features does the latent variable contribute to) of the VAE. The weights in the decoder will inform us of which features are more... |
My research question - how does the inbreeding level change in different age (life stages)? I have data of about 12000 observation done in different year (2007 to 2014) and 10 different islands (different islands also differ so island should be random effect).
My response variable (FROH) is continuous and lies in the c... |
I am working on the survey logistic regression. More than ten predictor variables are identified based on a P-value of < 0.25 on bivariate analysis. However, when I try multivariate analysis the model significance test fits only with a few variables (<5). If we add more variables, the model significance level deteriora... |
Accelerated failure time models are usually defined as a model for $X>0$ with (constants) covariates $Z\in \mathbb{R}^p$ such that
\begin{equation}
\log(X) = \mu + \beta^*Z + \sigma W,
\end{equation}
where $W$ is a random variable. The usual AFT models are Weibull, Loglogistic and Lognormal*. I am trying to implement G... |
The cointegration test between two time series variable is generally relevant from my understanding when you are performing a regression model. In terms of ARIMA model the approach is straightforward to use the Box-Jenkins methodology to build the ARIMA model.
https://davegiles.blogspot.com/2016/07/the-forecasting-per... |
I am currently trying to figure out whether to use LMM or SEM (or something else?) for my longitudinal mediation study (3 time points). I want to investigate the effects mentioned below, and I am wondering whether this would be possible with LMM, especially because the DV at previous time influences MED at next time po... |
Suppose I am using KM curve to estimate S(t) parametrically (say assuming it follows lognormal). Now this t is in (say) months, and I want to get estimates of the lognormal curve where t is in weeks, how would I go about it, I am of the belief that the curve will be the same as what we would obtain if we put 0.25*t in ... |
I have a dataset, let's call it data1(x,y), where the data y is measured at 16 values of x. I use this dataset to fit to a 3-parameter model. I can obtain estimates for the three model coefficents together with their standard errors, and can compute the usual 95% confidence and prediction intervals across the data spac... |
I have created several Partial Dependence Plots (PDP) for some of the top variables in my RF model. Overall, the plots seem to make sense; however, for the 'Bog" class, the probability for all variables analyzed goes up to around 0.9 probability, while for the other variables, the probability is significantly less (e.g... |
Problem: I want to create distance-based clusters of customers where each cluster, in sum, yields the same revenue potential.
Explanation:
I'm looking at thousands of customers spread throughout a country
Each customer is tagged with a postal code and a revenue potential (how much will we make through this customer?)
... |
I'm reading a journal article which applies Poisson distribution in determining how many factors can be regarded as beyond the poverty threshold.
My question is: why applying Poisson distribution and comparing the model with actual distribution can do the job? And, any test of significance can be applied to confirm the... |
I have the following data over time:
that means data collected for a single variable like CPU usage in lowest, highest, and average mode over time every 5 mins (data granularity = 5mins) like the following data frame:
| | timestamp | min cpu | max cpu | avg cpu |
|---:|:--------------------|----... |
The data generating process I am interested in is the following:
$$y_i=\beta_g x_i+\epsilon_t+\epsilon_i$$
$$S(i)=s, G(s)=g$$
What this means is that that the $i$th observation, which is made of subject $s$, which belongs to latent group $g$ is a linear function of covariate $x$ and some randomness associated with time... |
So the task iam working on is supervised video summarization where the model tries to predict if a video frame is important or no using its features and the labels as annotations of frame scores.
following related work people usually don't use these annotations directly as labels but transform them from a key-frame-sco... |
If I roll a dice 5 times, what is the probability to get 3 or more ones?
That is, to roll a one three or more times?
Because I think it's near 0.05:
$ \binom{5}{3} \left(\frac{1}{6}\right)^3 = 0.046 $
But this guy sustains it is near 0.03.
|
I understand that the Beta Distribution is a 'natural conjugate' of the Binomial distribution, in sense that the Posterior Distribution is proportional to the multiplication of both.
$$ Posterior(\theta | X) \propto Likelihood(X|\theta) \cdot Prior(\theta) $$
$$ \pi(\theta | X) \propto P(X=x | \theta) \cdot \pi(\theta)... |
we have a 'problem' when analysing data. It's a psychological experiment where participants could choose the upcoming condition, let's call them A, B, C, D. We are interested in analysing whether we find predictors about which condition they choose depending on the error rates in the previous block.
Just as an example,... |
In my Bayesian decision theory research within a Gaussian Mixture Model (GMM) framework, I've come across the need to visualize the integrated risk function, especially in the context of two components. The risk function is defined as follows:
$$
c(x) = \sum_{z \in \mathcal{Z}} P_{Z|X}(z|x) \sum_{s \in \mathcal{S}} P_{... |
I am developping the algorithm to optimize the fault diagnosis sequence using probability and cost.
For exemple, I have 3 diagnosis actions possibles :
option 1 : probability which can detect the root cause 20%, diagnosis cost 10
option 2 : probability which can detect the root cause 50%, diagnosis cost 50
option 3 : p... |
I am investigating the relationship between correlation between features and its impact on their feature importances using sklearn's DecisionTreeClassifier algorithm.
I manipulated the correlation of variables using the following function. This takes an existing feature from the dataset (Feature A), and creates a corre... |
Assume a linear regression model $y = X \theta^{*} + \epsilon$, where $X$ represents a feature matrix and $\theta$ represents a parameter vector.
Here we assume heteroskedasticity where $\epsilon \sim N(0, \Sigma^{*})$.
I also assume that $\Sigma^{*}$ is diagonal.
So far I got that the log-likelihood function can be si... |
Are there any R packages with multivariate (multiple response variable) generalized linear mixed effects model capabilities? Specifically, are there any using a frequentist framework (I am aware of Bayesian options like brms/MCMCglmm). SabreR appears to be broken and removed from CRAN due to issues with Fortran array b... |
I have a dataset composed of an urbanization index (continuous variable) for multiple host species (random effect). I want to determine if there is a relationship between urbanization and disease prevalence. I have been asked to provide sensitivity analysis evaluating different cut-off values. We currently use a 60% cu... |
Question
What notation should I use for a normal distribution on a subspace $U \subset \mathbb{R}^n$?
Motivation
I have a geometric intuition for Bessel's correction which goes something like this:
A random sample $x_1, x_2, x_3, \dots x_n$ of real numbers which are all drawn independently from $\mathcal{N}(\mu, \sigm... |
Background
The 2023 article "Remarks on some misconceptions about unequal probability sampling without replacement" by Tillé suggests the sample function in R is misleading, when sampling without replacement and with unequal probabilities because the inputted vector of probability weights does not agree with the inclus... |
I want to do my ANCOVA as a robust regression as assumptions are hurt. I have a categorial predictor with 5 groups but I also want to check pairwaise for all groups if they differ in their effect on the dependant variable. How am I supposed to do this? Can I just do 5 regressions where I choose a different reference gr... |
I've been trying to understand the backpropagation algorithm to a level where I can program a neural network and its learning procedures from scratch just like programming anything else. What I struggle with, mainly, are the shapes of the matrices in the calculations. The moment they start transposing the matrices here... |
I'm trying to understand the use of regression using a response variable (y) with a Singh-Maddala distribution.
To make a regression with many variables I'm using this code:
median_y = median(datos[,y])
Formula = as.formula(paste0(y," ~ ",paste(variables,collapse=" + ")))
fit2 <- vglm(Formula, sinmad(lss = FALSE, isca... |
those are my ACF and PACF plots for my time series after two differentiating. I watched a couple of tutorials but I cannot figure out what method I am supposed to use. Also, an interpretation of the plots would be nice.
Using diff() is the only approach not working out for me. I also used decompose(), and tslm(). I am ... |
I am currently working on a control-case study where patients and controls are assessed at five different time intervals. The aim of the study is to assess possible differences in the response variable between Healthy and Patients at each phase of the experiment. I have implemented a linear mixed model using the lme4 p... |
I am currently working on characterizing the noise sources of a Global Navigation Satellite System (GNSS) sensor using an Allan Variance plot, which is commonly employed to analyze frequency stability in atomic clocks, but has since been extended to other applications such as Inertial Measurement Units (IMUs) and senso... |
Correlation or collinearity between features can impact the results of random forest. So can having unbalanced data. However, I have not found a clear answer on whether having related samples can affect the outcome of a classification analysis.
For example, if my data has biological replicates, which are individuals be... |
I need to perform an a priori power analysis for a logistic regression. My dependent variable is binary and I have two independent variables (between subjects), one variable with 3 levels (group) and the other with 2 levels (posture). I did not perform any pilot study, but from the literature, I know the ANOVA effect s... |
I am studying the relationship between X and Y using linear models. Both are composed of a left and right scalar value, and I'm interested in the relationship between both the totals and ratios for each one. My first thought is to create two linear models:
yratio = yright/yleft
ytotal = yright+yleft
xratio = xright/xle... |
I'm generating simulated data from a multivariate normal distribution with a variance-covariance matrix and then fitting it by either
A) finding the maximum likelihood parameter estimates for the multivariate normal, or
B) fitting a linear regression on the data of the form $y=m x+b$.
The linear regression gives a much... |
Suppose you have a Poisson distributed random variable $N$ with expectation $\mu$. You then take a conditionally binomially distributed random variable $X$ where $X \sim \textrm{Bin}(N,p)$ for some $0<p<1$. It is well known that $X$'s marginal distribution is Poisson with expectation $\mu p$ and $N-X$ is also Poisso... |
Reviewing "Tests of fit for the asymmetric Laplace distribution" under "Maximum Likelihood Estimation", the proposed method of determining the $\hat{\theta}$ seems problematic from a processing time perspective. Without any shortcuts - assuming an approximately mean-zero distribution with a static set of size $N$, it w... |
I'm working on a problem involving two linear unbiased estimators $T$ and $T'$ of a parameter $\theta$, defined from a sample $\{X_1, \dots, X_n\}$ with mean $\theta$ and finite variance. I aim to prove that $\text{Cov}_\theta(T, T') = \text{Var}_\theta(T)$, given that:
$T = \sum_{i=1}^{n} \alpha_i X_i$ and $T'$ is an... |
I'd like a closed form solution for $E(X1 | X2 > X3)$ where $(X1, X2, X3)$ is multivariate normal with possibly arbitrary mean vector and covariance matrix.
The conditional distribution $f(X1 | X2, X3)$ is easy to get in closed form, but I am not sure if there is a closed-form solution to handling conditioning on the e... |
If I have two risk ratios (calculated from Poisson regression) and 95% confidence intervals for each ratio, can I make the claim that the risk ratios are significantly different if there is no overlap between the confidence intervals?
Moreover, if I can make that claim, is there a citation that proves that that is a le... |
We define the sum of squares of the treatments in Anova this way:
$SS(T)=\sum\limits_{i=1}^{a}\sum\limits_{j=1}^{n_i} (\bar{X}_{i.}-\bar{X}_{..})^2$
And the Mean-square(T) (MST) is simply equal to:
$\frac{SS(T)}{a - 1}$, where $a$ = number of treatments
However, the $\mathbb{E}[MS(T)] = \sigma^2 + \frac{n \sum_{i=1}^a ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.