instruction stringlengths 9 38.7k |
|---|
In the model performance monitoring stage, if you want to measure the change of a distribution of a numerical variable, Population Stability Index can be used. But what metrics can we use for categorical variables? For example, if I have a categorical variable like a country code, since it is not ordinal, so converting... |
I am planning to conduct a study to measure the length of the left and right ear on the same individual. I am stumped on which test should i be using and i would be glad if anyone can set me on the right direction. thanks
|
I am using a modified Hosmer Lemeshaw approach, culminating in all possible combinations model selection, to conduct multiple logistic regression that should distinguish between use (1) and available points (0).
I used univariate models to determine whether predictors should be modelled as linear terms or quadratic ter... |
I trained a logistic regression model with two binary variables $x_1$ and $x_2$ where my target binary variable is $y$:
$$\log\left(\frac{p}{1-p}\right) =\beta_0+\beta_1x_1+\beta_2x_2$$
Looking at p-values, we notice that $x_1$ has statistical significance (p-value < 0.05).
However, the model performance is terrible (p... |
Recently I am working with survival data and trying to fit time-dependent ROC.
And I have difficulty estimating the optimal cutoff for time-dependent ROC.
Here is the process I do.
library(survival)
library(timeROC)
library(survivalROC)
data(pbc)
head(pbc)
pbc<-pbc[!is.na(pbc$trt),]
pbc$status<-as.numeric(pbc$status=... |
Lots of data is real-valued, non-negative, and replete with 0s... for example any time count data are normalized by something: e.g., perhaps it makes sense normalize disease case counts taken over different intervals by time. Then you end up with something that has 0s like count data, but is no longer counts. What are ... |
Considering a $I×J$ contingency table, a Pearson chi-square statistic to test the independence is given by:
$$Χ ^2 = Σ_{ij} \frac{(n_{ij} - \mu_{ij})^2}{\mu_{ij}} $$
And the Pearson residual is:
$$e_i = \frac{(n_i - \mu_i)}{\sqrt\mu_i}$$
Which has a variance $Var(e_i) \leq 1$.
According to S. J. Haberman's paper in 197... |
Our team is working on a regression-like model to predict a continuous value across time. We noticed that the model performance was quite good for part of the period, while deteriorate quite a lot at the later time period. I’m guessing the data might have been drifted but not tested yet, as I’m stuck with the following... |
My statistics knowledge is basic at best but here goes:
4 football/soccer matches with expected goals of 2.6, 2.75, 2.4, 2.85
I'm interested in working out the probability of at least 2 of those games tieing to have the most goals out of the 4.
My thoughts were to use a poisson distribution to work out the chance of ze... |
I am investigating the effects of tax rates on tax-avoidance by multinationals using OLS-regressions.
The idea is that a multinational will try to move more income to the Bahamas if the tax rates in the other countries it is active in are higher. (see example below)
So, income in the Bahamas is positively affected by t... |
Every time I have a binary target variable (like gender for example), and I want to choose the features that are the most informative, I use wilcoxon test, since it is only two groups. I do something like this:
p = apply(gene_expression_matrix,1,FUN=function(x) wilcox.test(x~metadata$Gender)$p.value)
And I can just pi... |
I am modeling a multivariate distribution, where I already have the distributions of the marginals. Let's call the marginals, $f_{i}(x)$ for every $i$ marginal distribution, where $i=1,2,3$. We already know that $f_{1}$ and $f_{2}$ are Gaussian $N(0,
\sigma_{i})$, while $f_{3}(x)$ is unknown, however, for $f_{3}(x)$ we... |
A bit of a naive question.
I understand that OLS is used for a linear regression model (for example, Wikipedia page for OLS: OLS is a type of linear least squares method for choosing the unknown parameters in a linear regression model (with fixed level-one effects of a linear function of a set of explanatory variables... |
I am facing a problem with my PhD Thesis in Archaeology. After analysing the percentages of an animal (variable: Observation) by grouping them by each variable in the following columns (e.g., Median % of Cattle in Urban sites), I am interested in knowing which of these features is more important, rather than simply exp... |
I have a portfolio consisting of N assets with known average historical returns ($r_1$, $r_2$, ...$r_N$) and a known set of weights ($a_1$, $a_2$, ...$a_N$) subject to $\sum_{i=1}^N a_i$ = 1
I am currently running a Monte-Carlo simulation of this portfolio by first aggregating the individual securities to arrive at the... |
I am calibrating parameters of a process model. The runtime of the model is high and the calibration already ran for more than two weeks with many cores on a HPC.
After almost 150k iterations I realize that the uniform prior for one parameter was too narrow. Which means that the sampler is getting very close to the upp... |
Consider the following linear model:
$$Y_i=\beta_0+\beta_1 X_{i1}+\cdots+\beta_k X_{ik}+\varepsilon_i$$
Here, I want to get the estimate with a positive value restriction $\hat{\beta}_1>0$.
That is, the estimate for $\beta_1$ should be positive.
Is it possible to impose the restriction above?
|
In my dataset, each participant has a percentage score (number of correct answers divided by number of valid answers and later multiplied by 100). I would like to see if the mean of that percentage score is significantly different from the reference mean (a value from previous studies). Is it possible to use the one-sa... |
My data and problem:
Data is high-dimensional data with 15474 features (columns) and 375 cases (observations, rows). Data contains 34% zero values.
Output/response is multiple outputs of 2 (continuous values).
Many researchers said that this high-dimensional data is unsuitable with multiple linear regression algorith... |
I have a long tailed distribution with many classes,
and the num of samples per class is
[38K, 12K, 8K, 6k, 4K,4K, 2K, 800, 600, 400,400,300,280,180,180,120, 85, 70, 60, 60, 60, 60, 50]
I tried to train a multiclass classifier and got pretty good results AUC for the 3 largest class, but very poor results for all the o... |
I have survey data that tracks self-reported emotions at the individual-level for observations in two groups before and after a targeted cash distribution program is introduced. The measure of interest is a categorical variable dividing emotions into: positive, neutral, or negative. I am interested in testing whether ... |
Hi everyone,
I am trying to estimate a higher-order model with the mirt package in R.
I have already conducted an analysis using a bi-factor structure.
I have 60 items, the first 30 being measured by the first dimension and the second 30 by a second dimension in my model. I know that these two dimensions are strongly c... |
Let $X_1,X_2,\ldots,X_n$ be independent random variables with normal distribution $N(0,\sigma_i^2),$ $i = 1,2,\ldots,n $. Prove the random vector $Y = (X_1, X_1 + X_2,..,X_1+X_2+...X_n)$ is Gaussian and find its distribution.
I'm trying to write $Y = (X_1, X_1 + X_2,\ldots, X_1+X_2+\cdots+X_n)$ as a product of a Matrix... |
Main question
Assume that one can administer a treatment to patients in two different conditions. What is the proper way to conclude (or reject) that the treatment response behaves differently in the two conditions?
Details
I have a visual representation of the data given by this R code:
library(dplyr)
library(ggplot2... |
I'm a pure math guy, not a stats guy, so please bear with me. I will try to be as clear as I can.
Consider a basic $t$-test for a population mean. In Triola's Elementary Statistics (a freshman-level intro textbook) we are given the following two requirements:
The sample is a simple random sample.
Either or both of ... |
I am trying to do a meta-analysis using studies with single group (in my case- patients undergoing an XYZ surgery). The outcome measures reported are pre-treat functional score(mean with SD) and Post-treat functional score ((mean with SD). Complications are reported as rates.
I am relatively new to meta-analysis, so ca... |
Let two independent normal variables $X\sim N(\mu_1, \sigma_1^2)$ and $Y\sim N(\mu_2, \sigma_2^2).$ Let $Z=e^X+e^Y.$ Then $Z$ is lognormal random variable. Is it possible to calculate $\mathbf E[X\times \log(Z)]?$
|
Scenario 1
Suppose that you work in a lumber yard and are given the following measurements of the weights of various pieces of lumber:
x = [10, 26, 28, 13, 16, 7]
You are asked to assume that $X$ is normally distributed and provide the maximum-likelihood estimate for the mean $\mu$ of $X$. So, you construct the likelih... |
I would like to know the best way to compare and report the percentages from two samples. Last year's sample size had a total of 489 respondents and 74 participants chose item A; this year, the sample size is 503 and 105 participants chose item A.
For e.g., last year %: 74/489x100 = 15.13%
This year %: 105/503x100 = 2... |
If I model glm2.out <- with(D1train, glm(non_def ~ loan_amnt + grade + emp_length_p + term + state_woe, family=binomial("logit"))) Where non_def is a column of values with $1$ if I do not default on a loan, and $0$ if I do default.
The question is, does a higher score indicate a greater association with defaulting or n... |
For my overdispersed and zero-inflated data I have used a zero inflated negative binomial and a hurdle model, for comparison purposes.
I need to validate the model, i.e. see whether certain assumptions are fulfilled to check if the model is adequate for inference. However, I'm not able to find any information on the st... |
In "normal" survival analysis that I'm familiar with (probably because they're very common), such as logistic regression, Cox PH, decision trees, the time to event analysis always includes an indicator of the outcome variable.
How come there is no implementation of interval-censored analysis (at least in R) that takes ... |
I have the following model:
$$\theta \sim N(1, 0.1)$$
$$X \sim N(\beta_1\theta + \alpha_1, \beta_2\theta + \alpha_2)$$
Where I can safely assume that $\beta_2\theta + \alpha_2$ is always positive.
How would I calculate the overall variance of samples from $X$, please?
|
I calculated the predicted probability of membership in group A and not A with binary logistic regression. Then I broke the not A category into two distinct buckets of which it is comprised - B , C. I then used multinomial logistic regression to calculate the predicted probabilities of membership in A, B, C.
These two... |
Let $X_i$ be i.i.d. variables and $\hat{\mu}$, $\hat{\sigma}$ their sample mean and standard deviation.
Is the following true:
$$ \sqrt{n} \left( \frac{\hat{\mu}}{\hat{\sigma}} - \frac{\mu}{\sigma} \right) \to N(0, 1)?$$
I have tried to prove it using continuity/Slutsky/delta style arguments, but I can't seem to figure... |
For context, I am a beginner and this is my first time attempting to implement a machine-learning algorithm. This is for school. I am attempting to predict whether a 100-meter dash athlete wins a medal or not from inputs: weight, height, and age. There are athletes who appear more than once. For example, Usain Bolt app... |
There seem to be at least two different methods to calculate the theoretical quantiles in a Q-Q plot. In the following, the normal distribution is assumed to be the theoretical distribution.
Split the range (0,1) into q-quantiles where q is the number of samples in the sample distribution and then get the correspondin... |
I've been struggling all day to fit a robust HC4 model to my lmer in R (all the examples I've seen were with lm. I simply cannot find a way to do that, so I've started wondering if theoretically it makes sense to do so ? If not, what would be the 'correct' robust estimator for lmers for dealing with heteroscedasticity?... |
I understand that if the dimension of a sufficient statistic exceeds that of the parameter it estimates, then that particular sufficient statistic won't be minimal. Now, in the following case, I define $M$ to be the sample median in the usual form with the order statistics. However, I am trying to determine whether $U ... |
I am aware that we can use the BIC values from different models in order to determine which model predicts the data best. However, I'm a little confused about the criteria used to determine which model is better over another model.
For the BIC, a difference of 2 is considered as positive evidence for one model over the... |
I was trying to understand geometric interpretation of regularization and came across following statement here:
$$\text{Mean Square Error}\; E(y,\hat{y})=\frac{1}{n}\lVert\hat{y}-y\rVert^2$$
$$=\frac{1}{n}(b^TX^TXb-2b^TX^Ty+y^Ty)$$
Since $X^TX$ is positive semidefinite, we know that $b^TX^TXb\geq0$. Furthermore, we kn... |
I am wondering why the standard deviation of the averaging filter of width w is as follows? Where does the 12 in the denominator come from? For context, the paper is am refererring to can be found here: here
|
From Wikipedia I have the compliment of the CDF parameterized for fat-tails distributions.
$$
\Pr[X>x] \sim x^{- \alpha}\text{ as }x \to \infty,\qquad \alpha > 0.\,
$$
Here $\alpha$ is the fatness parameter. According to Taleb. $\alpha \leq 2.5$ is forecastable, but $\alpha > 2.5$ is not.
I would like to fit $\alpha$ ... |
I am looking at the effects of drought events on soil gas fluxes timeseries using R and gam and gamm from the mgcv package since the data is seasonally variable. The data is also missing winter months, so, k = the number of months measured or k = number of years measured. I have also included a factor variable 'moistur... |
In this paper, the authors compare different methods of fitting generalized extreme value distribution (such as the maximum likelihood method). For example, the Gumbel distribution:
$$
F(x)=\exp\left(-\exp\left(-\frac{x-\xi}{\alpha}\right)\right)
$$
The authors design a simulation to compare these estimators. On page 2... |
A total of 498 participants responded to a survey questionnaire. I want to be ascertain that the sample size of 498 reflects the opinions of the true population (say 1,000,000).
I used an online calculator that shows that the margin of error is 4%
population size: 1000,000
confidence level (%): 95
Your sample size: 498... |
Let $d\in\mathbb N$, $I$ be a finite nonempty set, $(x_i)_{i\in I}\subseteq[0,1)^d$, $(w_i)_{i\in I}\subseteq[0,\infty)$ with $\sum_{i\in I}w_i=1$ and $$\sigma:=\sum_{i\in I}w_i\delta_{x_i}.$$
I really got trouble to understand what's meant by the property of the point pattern $(x_i)_{i\in I}$ to "admit blue noise char... |
I'm completely confused about how to calculate R-squared for given lists of predicted and actual values.
As an example, assume that my predicted values are: [3, 8, 10, 17, 24, 27] and my actual values are [2, 8, 10, 13, 18, 20].
According to wikipedia, I do the following:
get the mean of the actual values (y-bar) = 1... |
Would it be possible to fit latent growth curve model on latent variables instead of directly on the observed measures? Each latent variable would represent a latent construct (e.g., intelligence) at each time point (T1-T3) based on questionnaire items (some categorical, some ordinal, some numerical variables), and the... |
Suppose that we have a distribution $X = aY$ where the distribution of $Y$ is Poisson{$\lambda$}, what is the maximum likelihood estimator of $a$?
By the method of moments we can estimate $a$ as $\sigma^2_X /\mu_X $. This is because $\mu_X = a \lambda$ and $\sigma^2_X = a^2 \lambda$.
The log-likelihood function is I th... |
I have a need to calculate statistical power (the chance of making a Type II error) within Excel for a 2 sample proportional Z test.
Here's a example to better explain. Say I have two unequal samples n1 and n2. Within each sample, I have a number of individuals who have performed a specific conversion event. Lets call ... |
The function np.convolve is a 1D convolution (e.g. when both inputs are 1D). It results in a larger output size.
>>> import numpy as np
>>> a = [1,2,3]
>>> b = [4,5,6]
>>> np.convolve(a,b)
array([ 4, 13, 28, 27, 18])
However typically in CNNs, each convolution layer reduces the size of the incoming image. What causes ... |
I have a dataset which consists of test score (responsive variable), location (station), gender, and blood glucose concentration. It has been found that the test score has a positive linear relationship with blood glucose concentration. My aim is to find whether gender can influence the test score, regardless of locati... |
The assignment is to write a simple ML program that trains and predicts on a dataset of our choice. I want to determine the best model for my data. The response is a class (0/1). I wrote code to try different cross-validation methods (validation set, leave-one-out, and k-fold) on multiple models (linear regression, log... |
Hopefully a quick and easy question for somebody on here. I'm a masters student using R to interpret data for my thesis. I want to reference the type of linear regression that I have used in my analysis, e.g. Pearson correlation coefficient detected no significant...etc etc etc. I am using the lm function in R but I ca... |
I have read this page but am a little confused and I think a real example might help solidify the idea in my mind regarding how to use the AIC in model selection.
Equivalence of AIC and p-values in model selection
Say I have two nested models (that differ in 6 parameters) - these are from real data. The simpler model i... |
A test is made of $H_0: M= 77.4$ and $H_a: M<77.4.$ Assume you reject the null, because you did not feel like doing a hypothesis test, and you are pretty sure your alternative is correct anyway. Have you made a Type 1 error, Type 2 error, a correct decision, or a silly decision?
I keep trying to solve this using the ... |
I prepared a research design with the discrete choice method. I have 2 labeled alternatives, 5 attributes for an alternative, and 6 attributes for an alternative. I want to analyze my data with multinomial logit in the R apollo package R. However, I have an error. But I don't know what this error means and how I should... |
I'm having difficulty understanding how to compute Big-O for the upper bound on the regret in Exp3 algorithm.
I think the actual algorithm isn't quite important for my question but since I couldn't find the relevant material to work out so let me shorten the detailed notations.
So, the following is the famous bound on ... |
In a few NLP papers such as Re-evaluating Evaluation in Text Summarization (Bhandari et al., EMNLP 2020), two types of correlation strategies are presented. I had a discussion with colleagues over the rationale behind those correlation types and we were unable to arrive at a consensus.
Setup: For each document $d_i$, $... |
Problem: I have an MCQ language proficiency test completed by 147 participants. 6 questions were never answered correctly by all participants, which left 30% of the test data as NA. I want to assess the reliability of the test using Omega or Cronbach’s Alpha. However, these reliability measures do not include the items... |
I am approaching machine learning and I want to ask you some questions, hoping that they do not sound too trivial.
I have a pretty small dataset with $n \simeq 500$ observations and about $p \simeq 20$ non-ordered categorical features. My aim is to perform binary classification. (I mainly will use the R package caret).... |
For my introductory statistics class, I've been trying to determine the limiting distribution of $Y=(\bar{X})^2$, where $X_i \overset{\mathrm{iid}}{\sim}\textrm{ Unif}(0,1)~\forall ~i \in \{1,\ldots,n\}$.
At first, I've tried to obtain some data by doing experiments with R, just to get an idea of what my result should ... |
I am still quite new to this and I'm unsure how to structure my question.
I have these two mixed models that I am using to generate a linear regression plot
control<- lmer(OUTPUT~ Weeks +(1|ID), data = CONTROL, REML=FALSE)
group1<- lmer(OUTPUT~ Weeks +(1|ID), data = group1, REML=FALSE)
I have plotted these re... |
I am trying to make sense of the diffusion model (one of the videos I watched https://www.youtube.com/watch?v=HoKDTa5jHvg&t=706s). I came across this formula in the model:
This picture clearly explains the components of the formula. My question is the middle term - the mean. Why is the square root? At the very beginni... |
I am new to statistics and I have been struggling to understand the three different versions of (A)DF test. For simplicity I will use the naming conventions from https://en.wikipedia.org/wiki/Dickey%E2%80%93Fuller_test.
My understanding is that we if generate a time series under the null hypothesis, our t-statistics wo... |
I have failure time information of a product in the form of current status data, which looks something like this.
Observed Time($t_i$)
failed ? ($y_i$)
5 hrs
1
6 hrs
0
5 hrs
0
7 hrs
1
Essentially each row represents an observation. In the first column, we have the observation time ($t_i$) of an item a... |
I have many "parallel" time-series (about 100). They have relatively short history. I calculate a covariance matrix between these time-series.
Now, I believe that the observed covariance matrix is very inaccurate / noisy. For example some time-series might look to be very correlated just because of noise / chance / coi... |
I'm working on an ML project to predict wine quality from a wine's physical characteristics. The features of my data are on vastly different scales so I've been experimenting with different normalization/standardization techniques to see how these impact the data.
Originally the features are like so:
After taking the ... |
I'm very new to both Gibbs sampling and LDA. Currently, I'm trying to understand the collapsed Gibbs sampling method in LDA. However, I'm quit confused about the whole method when reviewing the algorithm. Here are my confusions and I badly need some guidance.
For short, let $W$ be the set of all the words in the corpus... |
Can anybody tell me what type of data this is, I am not sure what type of categorical data it is as I need to perform the correct statistical test:
Birth weight of newborn babies: low (<2500g) or high (>2500g)
As there are only two categories I am not sure what type it is (ordinal, nominal or binary). Thank you!
|
How do you compare sex ratio in R?
I have surveyed a population of species and found 12 males and 1 female. I wish to compare the sex ratio in my sample to the expected 2:1 sex ratio of this species and then present the results of my analysis of this data. Then display my conclusions. I have had few lessons in R but am... |
I have a question regarding the problem outlined in the picture. Two bars of different lengths x_1 and x_2 can be located anywhere within their associated intervals (B_1 - B_2) and (A_1 - A_2) (uniform probability). What is the probability that they overlap?
I tried to solve this problem similar to the problem of two p... |
I have a dataset of about 1000 features and 2000 training examples. I use Randomized Search with cross validation to compare Random Forest, Linear SVC, SVC with different non-linear kernels, and Logistic Regression.
I consistently get much worse scores with Linear SVC than with the other models, including Logistic regr... |
In logistic regression, when one omits a relevant regressor, the estimates of the coefficients of the other regressors are affected in that they're shrunk, see Mood 2010
This phenomenon is easily interpreted when looking at logistic regression as a latent factor model where one estimates the logit + logistic distributi... |
I am working on an anomaly detection problem and have come across a paper(https://www.ijcai.org/proceedings/2019/0378.pdf), which shows results where in the ROC AUC value for a dataset is 0.566 and the PR AUC for the same dataset is 0.908. Can someone please explain to me in what case/scenarios this is possible?
|
When fitting an ARIMA model using the statsmodels python implementation I see the following behaviour, python does not seem to correctly provide the values for the differenced lags. I am comparing the results with the ones obtained using the R ARIMA implementation.
Scenario:
Seasonal non-stationary data which requires... |
I'm currently trying to implement the method from a paper (DOI: 10.3389/fnins.2015.00308).
In short, I have $K$ classes which are spread across $N$ segments of EEG data for each channel $c$. For each segment I have projection weights $w_i$ I gained by applying a PCA. To choose which EEG channels to be used for further ... |
I am attempting to employ the synthetic control method (SCM) to analyze the causal impact of a UN peacekeeping operation (PKO) on post-conflict peace. I am operationalizing post-conflict peace as both the number of fatalities produced by terrorist violence and the count of terrorist attacks. In both cases, these outcom... |
Consider a family $S$ of probability density functions on $X$ which is defined as $p:X\to\mathbb{R}$ such that $p(x\geq 0)$ and $\int_{X}p(x)dx=1$.Suppose each element of $S$ may be parameterized using real-valued variable $[\xi^1,\ldots,\xi^n]$ that is
$S=\{p(x;\xi):\xi=[\xi^1,\ldots,\xi^n]\in E\subseteq \mathbb{R^n}\... |
Here's my code :
mammal.pca_no.corr <- prcomp(PCA_mammal_dataset_no.corr, scale = T)
summary(mammal.pca)
mammal_pca_no.corr$rotation
And here's the output:
Importance of components:
PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10
Standard deviation 2.6653 1.4929... |
I want to solve the following optimization problem:
$$ L = n^{-1} \sum^n_{i=1} w_i ( y_i - \tau(x_i))^2 $$
where $w_i \in \mathbb{R}^+$ weights, $y_i \in \mathbb{R}$ outcome data, $x_i$ features/covariates, and $\tau$ an unknown function to be specified or approximated by a machine learning (ML) algorithm.
For exampl... |
I am currently writing my bachelor thesis ans I've recently gotten into ML and logistic regression and I'm a little confused as to the assumption that the observations are independent. I found this post: https://towardsdatascience.com/assumptions-of-logistic-regression-clearly-explained-44d85a22b290.
It describes how t... |
In competing risk settings, the Cox model gives correct HR's if we censor at other event types (i.e. the Cause Specific Model):
https://statisticalhorizons.com/for-causal-analysis-of-competing-risks/
Is it valid to use this censoring approach in a sampled nested case control dataset, on which we subsequently fit a cond... |
I am working with a large dataset and applying multichannel sequence analysis to two life course domains. I would like to adapt a solution suggested in the post below to multichannel sequences, but I cannot find a way to adapt TraMineR seqdist() so that it works with multichannel sequences. I am looking for a way to ca... |
My question here is related to the following question I posted here:
Joint posterior distribution of differences
With respect to that last question, what I want to discuss is how to appropriately sample from the posterior predictive distribution of the differences, i.e., the distribution $p(x^*-y^*, x^*-z^*,y^*-z^*|x,y... |
I think I know in general how to derive the maximum likelihood estimation for a parameter given a distribution. But I can't wrap my head around this one!
We have the observations: $(y_1, x_1),...,(y_n, x_n)$ from a random sample where: $Y_i \sim N(\beta x_i, 1)$ for $i = 1,2,...,n$. We are interested in the expected va... |
A coin was flipped 10 times and landed on head 9 times. We want to test $$H_0: p = \frac{1}{2} \ vs \ H_1: p > \frac{1}{2}, p = \mathbb{P}(head)$$ with a confidence level of $\alpha = 0.05$. The question specifically ask for:
The test statistic
Distribution under $H_0$
The conclusion of the test and the $p$-value.
My... |
I've constructed a GAMM on some environmental variables (water temp., salinity, etc..) to see if there are significant differences between the months in which we collect data. Values obviously change by month and year (time of day and location too), but I'd still like to test each month in a pairwise comparison later (... |
I'm running an A/B test to determine if a change/treatment we're proposing for our website has an impact on users opting into a specific (niche) category of notifications.
To do so, I'm performing a one-tailed z test of two independent proportions (treatment vs control). However, I'm concerned with the results of my te... |
If there are four variables each with five observations:
X1 X2 X3 X4
5 3 0 2
0 9 -9 0
3 1 0 2
7 3 0 4
5 2 0 3
Why can't you regress a dependent variable Y on X1, X2, X3, and X4? I have a feeling it is because of collinearity and it violates full rank assumption, but could someone explain why in grea... |
Here: What do the residuals in a logistic regression mean? is a description of the different ways how one can generate residuals from a logistic regression.
My question concerns not the logistic regression specifically, but any regression with a binary outcome, apart from OLS and the generalized linear model for binary... |
My data contains three parameters, i.e., Treatment, Time, and Temperatures. I am looking into the effects of these three parameters and their interactions as I measure neuronal activity. The activity measures are neuronal phase (a relative timing of neuron's activity in a cycle period) and cycle frequency.
So far, I ha... |
I've recently conducted an experiment where 24 participants performed a set of four tasks twice - using two different virtual reality interaction methods. The tasks consisted of a game similar to whac-a-mole, repeating hand gestures, pointing at targets and building a tower. Completing each task resulted in a score bas... |
I'm using lmer to look at the interaction between continuous variable baseline and grouping factor condition (8 levels) on continuous variable outcome post. There's a significant interaction between baseline and condition.
Some of the slopes, e.g., ConditionR concha 25:Baseline, are significantly different from the ref... |
Consider I have a linear model fitted in R as:
model<-lm(y~x*fac)
where x is a continuous variable and fac a sum contrast coded two level factor (-1,1).
now I can check the coefficients of my model and do t-tests to check if:
the main effect /slope of x (averaged over the two factor levels) is significantly different... |
For simplicity, let's assume that we have the true DGP
$$y_i= \beta_0 + \beta_1x_i + \epsilon_i$$ where $\epsilon_i \sim N(0, \sigma^2)$ $(i = 1,2,...,n)$
Assume that these following usual assumptions meet (for the classical linear regression model)
$y_i= \beta_0 + \beta_1x_i + \epsilon_i$ (linearity)
$x_i$ is determi... |
According to pg 2 of the pdf http://www-stat.wharton.upenn.edu/~rosenbap/BehStatSen.pdf, "however, this alternative method takes account of sampling variability and is applicable to any kind
of response; see, for instance, [25, 26, 29], and Section 4 of [28] for detailed discussion. Alternative methods of sensitivity a... |
I am trying to compare two models:
Costs = Income + Education1 + ... + Education10 and Costs = Income
From the ANOVA table using anova() in conjunction with the corresponding lm() objects, I get that the p-value is < 2.2e-16. However, I was wondering if there was any way that the numerous factor levels in Education cou... |
The Wikipedia page states this in the decompositions section, and it is also stated in an older paper
I have never been able to understand these explanations, and I wonder what I am missing and if there is an easy way to understand this...
How does one get from this...
$$
BS = \frac{1}{N}\sum\limits _{t=1}^{N}\sum\limi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.