Questions tagged [hypothesis-test]

Functions used to choose between competing hypotheses about one or more probability distributions. For statistical questions, please use stats.stackexchange.com.

Common hypothesis tests include the one-sample and paired t-test for means, the z-test, which approximates the t-test for large samples, F-test for differences in variance, and Chi-square test for independence, and Fisher's exact test for differences in proportion.

Please note that this tag is totally different from , which refers to software testing.

349 questions
0
votes
1 answer

Two Tailed and One Tailed T Test in R

Histogram Dataset Boxplot Above is the data and some overview of how it looks. I want to use a t test to find if the mean width between 2 samples from the same population are different (2 Tailed). More specifically, I am interested if the mean width…
Boss Boyd
  • 53
  • 2
  • 6
0
votes
1 answer

What is the most conclusive way to evaluate an n-way split test where n > 2?

I have plenty of experience designing, running and evaluating two-way split tests (A/B Tests). Those are by far the most common in digital marketing, where I do most of my work. However, I'm wondering if anything about the methodology needs to…
Ryan Keeler
  • 41
  • 1
  • 5
0
votes
0 answers

Using CAR Package for hypothesis test with interaction type null

I am trying to test the following: H0: Beta2+Beta3*.16 = 0 & Ha: Beta1 + Beta2*.5 does not = 0 using the car package iv <- ivreg(lnwage ~ educ + exper + expersq100 + disadv + city + city10 + region10_2 + region10_3 + region10_4 + region10_5 +…
L W
  • 1
0
votes
2 answers

P-Value to test hypothesis shows NaN

I am getting NaN for p.value when trying to test the null hypothesis that the mean of the revenue for the phone plan surf is the same as that of the ultimate plan. I don't understand what I am doing wrong. I'm assuming that it may have to do with my…
lm.bertrand
  • 21
  • 1
  • 3
0
votes
3 answers

2 proportions hypothesis testing in R

I am trying to do a hypothesis test to see if one proportion is significantly different from another proportion. Is there a function in R for this specific situation? How should I get the z-score, Zc, p hat etc. ? many thanks
Emmy W
  • 21
  • 4
0
votes
1 answer

Hypothesis testing for | H0: B1=0 HA: B1=/=0 | in R

I want to test the hypothesis H0: B1 = 0 HA: B1 =/= 0 with a 5% significance. Is there a function for this kind of hypothesis testing? What i currently got is: Y X 1 1890 2075 2 …
JRaanaas
  • 29
  • 3
0
votes
2 answers

How to compute the significant difference in two dataset in R?

I have two numeric vectors each shows the days we need to do different tasks: a using new technology versus in b using a old technology a <- c(10, 59, 30, 5) b<- c(19, 70, 50, 25) I need to know is there a significant difference between a and b?…
0
votes
1 answer

Comparing significance level to p-value in a two sided test

I had a p-value of 0.608. For a two-sided test scenario, If I take 95% confidence i.e. 5% significance or alpha = 0.05, In that case, should we say, the answer to task be: "0.608 > 0.025, therefore, we cannot reject null hypothesis.??" OR, we should…
0
votes
0 answers

How can one show independence of target from features?

Given some number of features and target, how can i show that features are independent of target? I found that without any features my model perform well, but with them score is very poor. My hypothesis is that features have no impact (i.e their…
friendlyuser
  • 111
  • 5
0
votes
1 answer

ANOVA test on time series data

In below post of Analytics Vidya, ANOVA test has been performed on COVID data, to check whether the difference in posotive cases of denser region is statistically significant. I believe ANOVA test can’t be performed on this COVID time series data,…
0
votes
1 answer

Levene test of 1 quantitative variables and 2 qualitative variables

I am trying to run a levene test and also a t test of 1 numerical variable (LungCap) and 2 qualitative variables (Smoke and Gender). Smoke and Gender each have their own column. Can I just paste a new column combining the gender and the smoking…
Noob in R
  • 21
  • 5
0
votes
1 answer

T.test for multiple datasets in R

I want to run a t.test for 4 datasets but i was wondering if there is a method that automatically run the t.test for all the combinations of the groups of my datasets.Thank you
pipts
  • 87
  • 7
0
votes
4 answers

How to do simulation without loop?

I am writing a simulation function to calculate the power of t test in R. However, it is not efficient to write loops in R, is there any other way that I can achieve my goal without a loop? #Define a simulation function simulation <-…
Dianafreedom
  • 391
  • 1
  • 13
0
votes
1 answer

One-Tailed Two Sample T-Test

I have a two sample with the size of 15 data points. Samples are blood pressures before and after the medication. I want to hypothesis testing for my data. before = np.array([12, 11, 10, 7 , 9, 9.5, 10, 12, 15, 10, 11, 11, 12, 13, 10]) after =…
rkd
  • 59
  • 1
  • 5
0
votes
0 answers

What does the p-value in ggscatter refers to ? [R language]

I graphed my data of x and y using ggscatter in R. I have a result of R = 0.4 and p < 2.2e-16. I know R means that the correlation value between x and y is 0.4. However, what does the p value refer to ? I know that in hypothesis testing, we can…
RofyRafy
  • 73
  • 1
  • 7