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
1
vote
0 answers

What is the best way to analyze the correlation between price and number of mentions?

I have a dataset that contains historical prices of a stock and number of mentions of the stock in the news. I want to know what is the best statistical way of deducting the relation (if any) between the two variables. And how to formulate this…
1
vote
0 answers

Is there an equivalent R-package to 'rwolf' command in Stata?

I am looking for an equivalent R-package for 'rwolf' in Stata for multiple hypothesis correction. So far I have found boot_stepdown in the multitestr package which is based on Westfall & Young and should be equivalent to wyoung in Stata. However, I…
Mara
  • 61
  • 1
1
vote
0 answers

st.ttest_ind in scipy returning a p-value of 0.0

I am trying to conduct a hypothesis test but I am getting a p-value of 0. I can understand if it is really small but a 0.0 is leading me to believe that there is an error. Here is my code: results = st.ttest_ind( …
1
vote
0 answers

T Test 2 tail in python

My question is: How t-statistic and p value are calculated in formula stats.ttest_1samp() python ? There is a gap between formula results and my manual calculation which cause to opposite answers. example: A claim, coin isn't fair.…
1
vote
0 answers

Why I am getting different P values if using different packages

I am trying to compare categorical data from 2 groups. Yes No GrpA: [152, 220] GrpB: [187, 350] However, I am getting different P value results when using different methods: count = [152, 220] nobs = [187, 350] import statsmodels import…
rnso
  • 23,686
  • 25
  • 112
  • 234
1
vote
0 answers

Issues running a GLHT following a GLM in R due to 1 missing interaction

I am quite new to the R world and have been battling through some issues with my Generalized Linear Model (GLM) output data in an attempt to run a General Linear Hypothesis Test (GLHT) for different levels of interactions. My main question is: Is…
Alix1193
  • 11
  • 2
1
vote
1 answer

How to use OLSResults.f_test with experimental groups in python

I'm trying to do an F-test of equality of coefficient for the three experimental groups I have in my data. I've run a regression to evaluate the results of a random control trial that included four groups, G1, G2, G3 and control. Now I need to…
Jameson
  • 167
  • 2
  • 11
1
vote
0 answers

Alteryx for Statisticians- to use or not to use?

Is anyone a statistician and using alteryx? I’m wondering if anyone has experience with this or anything to say regarding statisticians using alteryx versus SAS or R. Also, If so, is there a way to conduct statistical tests writhing alteryx.
Chris B
  • 11
  • 1
1
vote
1 answer

Get p-value with two variables and multiple row names

I wandered if you can help me in measuring the p-value from this simple data.frame. My data frame is called (my_data). By viewing it, you can see similar values I have that I am comparing: my_data <- read.csv("densityleftOK.csv", stringsAsFactors =…
Dave91
  • 15
  • 4
1
vote
2 answers

How to extract the dataset from an "htest" object when using formula in r

The question is how to extract the dataset from an "htest" object when using formula. For example, library(gginference) t_test <- t.test(formula = pulse~ gender, data=questionnaire) t_test$data.name returns [1] "pulse by gender" Is…
akis
  • 154
  • 1
  • 8
1
vote
1 answer

Performing multiple t-tests on the same response variable across many groups

I have looked at many similar questions (like this one), but in my case the treatment groups are not saved as separate vectors, and I haven't had any success substituting my variable names into any other code I've seen on this topic. I want to…
AJK
  • 15
  • 4
1
vote
2 answers

How to perform field significance of a test in R

I run a hypothesis test for 168 points to see if the values of the observations during A phase are significantly different than phase B and concluded that 30% of these points show a significant difference between two phases. How can I test the…
Lily Nature
  • 613
  • 7
  • 18
1
vote
1 answer

Plotting both within and between groups differences

I am using ggpubr currently to plot my values. Thanks to the facets I managed to create subplots according to some factor. Finally, using the function stat_compare_means() I managed to plot only the differences between groups. The minimal code to…
Luisda
  • 190
  • 13
1
vote
0 answers

java double sided Welch's t test

I have to implement the Welch's t test myself. To test my code I took the samples from Wikipedia as well as comparing custom examples with two different online calculators: https://en.wikipedia.org/wiki/Welch%27s_t-test…
Flova
  • 65
  • 6
1
vote
0 answers

SciPy - Non Parametric Hypothesis Test Results

I guess this is more of a statistical question. I'm using scipy to conduct a non parametric hypothesis test. Distribution below. My question is I got a p-value of almost 0.8. The distributions look almost equal though. The test I'm using is…
user10939484
  • 167
  • 2
  • 13