Questions tagged [hypothesis-testing]

This tag is for questions on hypothesis testing in statistics, including questions about constructing or setting up a test, selecting an appropriate test for a particular application, and computing test statistics.

In statistics, a result is called statistically significant if it is unlikely to have occurred by chance alone, according to a pre-determined threshold probability, the significance level. A statistical hypothesis test is a method of inference using data from a study which is used to determine if a measured result differs from a predicted result in a statistically significant way.

The phrase "test of significance" was coined by statistician Ronald Fisher. These tests are used in determining what outcomes of a study would lead to a rejection of a null hypothesis for a pre-specified level of significance. This can help to decide whether results contain enough information to cast doubt on conventional wisdom, given that conventional wisdom has been used to establish the null hypothesis. The critical region of a hypothesis test is the set of all outcomes which cause the null hypothesis to be rejected in favor of the alternative hypothesis.

Statistical hypothesis testing is sometimes called confirmatory data analysis, in contrast to exploratory data analysis, which may not have pre-specified hypotheses.

1617 questions
1
vote
1 answer

Neyman Pearson Lemma Question

I have the following question about the Neyman Pearson Lemma. It is an example in my lecture notes of testing $H_0:\theta=\theta_0$ against $H_1:\theta=\theta_1$ for the exponential distribution. The likelihoods are given by…
1
vote
0 answers

Do I calculate it right for the hypothesis testing?

Problem: the lifespan of some items follows the normal distribution N$ (\mu, \sigma^2) $, with $\mu $ and $\sigma$ both unknown. Now we have $N=16$ of the items whose lifespans have the mean of $\bar{X}=241.5$ (hours) and the variance of…
1
vote
0 answers

Why do we use the test for a normal mean when variance is unknown, even though we are given the variance?

Take the question: A teacher wants to see the effect of changing how reading is taught to primary school children. The children in Year $4$ take a reading test at the end of the year. In previous years the score has had a mean of $60$ and a variance…
1
vote
1 answer

power of a test

Let $X_1, \dots, X_n$ be iid $\mathcal N(\theta, 1)$ and consider $H_0: \theta=0, H_1: \theta=1$. We are now asked to suppose that the rejection region of a test $\psi$ has the form $R=\{\bar X_n : \bar X_n >c\}$. We further suppose that the test…
manav
  • 253
1
vote
0 answers

Comparing discrete (binned) histograms on how similar they are (hypothesis test)

I have discrete (binned) histograms that I want to compare in order to find a similarity in the range 0 to 1 (or 0% to 100%). I will do a hypothesis test with null hypothesis and things like that. So, for 9 histograms I will use all the combinations…
1
vote
2 answers

Why a condition of a null hypothesis always takes an exact value?

$~ 10 ~$ samples were sampled from the glass partitions. Each value of the following represents a refractive index of it. $$ 1.77,~1.79,~1.78,~1.79,~1.79,~1.76,~1.8,~1.76,~1.79,~1.80 $$ As the standard deviation of refractive indices is less than or…
1
vote
0 answers

Power function for Gamma Distribution

I'm trying to find a power function for a $X_1, ...,X_n$ ~ Exp($\theta$), where $H_0: \theta\geq \theta_0$ vs $H_a: \theta<\theta_0$; where, for test statistic X ~ $\sum X_i$, we would reject the null if $X \geq c$. So far I came up with X being…
trierar
  • 11
1
vote
0 answers

Hypothesis testing for proportions from three populations

I have following problem : 200 people were surveyed asking about their favorite color. 80 of them said red, 85 blue and 35 said yellow. Verify following hypothesis : proportion of people liking red, blue and yellow color is 5:5:2. Use significance…
1
vote
0 answers

Is it normal for $p$ value to be all $1$s in multiple testing

I am performing hypothesis testing on a set of data $X$ with the corresponding response $y$. The null hypothesis is: the set of data $X$ is irrelevant to the response $y$, which means $y = \epsilon$, where $\epsilon$ is some Gaussian noise. The…
FoolBoy
  • 11
1
vote
0 answers

One sample student t test

My teacher solved it this way H0: μ=140 HA: μ different from 140.Significance level 0.05. Test in two sides. alpha/2=0.05/2=0.025. For this alpha and df=8, we get t(tab)=+-2.896. t cal (using the formula) is 5. For df=9-1=8 and t=5 alpha=0.001.…
prishila
  • 163
1
vote
0 answers

How to calculate the critical region in a numerical likelihood ratio test?

Let $N$ be a discrete random variable. Let $H_0$ and $H_1$ be the two hypotheses $$\begin{align}f(n|H_0)=p_n&=\mathbb P(N=n|H_0)\\f(n|H_1)=q_n&=\mathbb P(N=n|H_1)\end{align}$$ where $p_n$ and $q_n$ are known. (In practice, I have two histograms…
renyhp
  • 217
1
vote
1 answer

Hypothesis testing for a small sample

Test I Marks: $$|\ 23\ |\ 20\ |\ 19\ |\ 21\ |\ 18\ |\ 20\ |\ 18\ |\ 17\ |\ 23\ |\ 16\ |\ 19 | $$ Test II Marks: $$|\ 24\ |\ 19\ |\ 22\ |\ 18\ |\ 20\ |\ 22\ |\ 20\ |\ 20\ |\ 23\ |\ 20\ |\ 18\ |$$ Eleven school boys were given a test in mathematics.…
1
vote
1 answer

Hypothesis Testing for the Binomial Distribution

Consider the following problem: $H_0:p=0.2, H_1: p\neq 0.2$ $X\sim B(25,0.2)$ Find the critical region for a hypothesis test using a $5\%$ significance level. I have…
A. Goodier
  • 10,964
1
vote
3 answers

Finding the null and alternative hypothesis for this problem

Question The BEG Company operates service centers in various cities where customers can call to get answers to questions about their bills. Previous studies indicate that the distribution of time required for each call is normally distributed, with…
codez
  • 187
1
vote
1 answer

Hypothesis testing, is sample solution wrong and question strange or am I wrong

Question: Conder the following hypothesis test: $H_0: μ <= 45$ $H_1: μ > 45$ For a sample size of $36$ and a significance level $α = 0.01$, what is your conclusion for the following sample result: a) sample mean = $43$ and $s = 4.6$ Sample solution…