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
votes
1 answer

Hypothesis testing with ANOVA in R

I have a dataset of the following form. Rows: 110 Columns: 11 $ ID 1, 2, 3, 4, 5, 6, 7, 8, 9,… $ happy_experimental 546.32, 549.03, 596.21, 46… $ happy_control 504.87, 314.97, 539.73, 43… $…
Aashiq Reza
  • 153
  • 2
  • 13
-1
votes
1 answer

Hypothesis testing for three groups

Based on the data, is the average sale amount statistically the same for the A, B, and C groups? I performed t.test on AB, BC, CA. for CA, p-value>0.05, so I concluded for CA, we can't reject null hypothesis, and average may be same. H1- alternative…
anjali
  • 9
  • 2
-1
votes
1 answer

One sample T-test in python not giving the desired output

I have a dataframe called df_salaire that has age, marital status,...., number of working hours per week,... I want to test if the number of working hours per week is around 40h per week, I used to dataframe.mean() and the output was 40.37 However,…
-1
votes
2 answers

P-values for two tailed binomial test exceed 1

Say I want to test if a coin is fair. An experiment is performed to determine whether a coin flip is fair (50% chance of landing heads or tails) or unfairly biased, either toward heads (> 50% chance of landing heads) or toward tails (< 50% chance of…
Pak Long
  • 75
  • 1
  • 5
-1
votes
1 answer

running multiple but separate hypothesis at the same time

here am using ztest built-in function within statsmodels to do single hypothesis test , however If I want to run many separate hypothesis tests - on many different columns - to test say the difference between two medians or two means , then it…
-1
votes
1 answer

ANOVA test for three means

I am trying use ANOVA test for this question: practice I've created three vectors and I am wondering how to run ANOVA for all 3. If I write first = c(30000, 34000, 36000, 38000, 40000) third = c(30000, 35000, 37000, 38000, 40000) fifth = c(40000,…
user17402153
-1
votes
1 answer

Conduct a Chi-square test to check the values independent or correlated

all could you please help how can I to check if the types of food and the anonymity of entries are independent or correlated by using a Chi-square test? I have to find the correlation between group column and manufacturer. The problem is here is…
Mr_12
  • 23
  • 5
-1
votes
1 answer

What test can I use to calculate significance of optimization lift?

Given the following data for 12 users: username, number of deals for control, revenue from test, revenue from control Here's an example of how the data looks like Can you help me figure out how I can calculate the significance of the hypothesis…
Niv
  • 850
  • 1
  • 7
  • 22
-1
votes
1 answer

What's the correct statistical test/R function for assessing multiple, binary test answers with different lengths?

I have a pool of questions. Each participant will have to answer a same fixed number of random questions from that pool. I then separated the participants into two groups based on another variable. How can I assess which group did better in R?
fattytuna
  • 11
  • 1
-1
votes
2 answers

calculate the z score for each row in the column of a dataframe using scala / spark

I have a dataframe : val DF = {spark.read.option("header", value = true).option("delimiter", ";").csv(path_file)} val cord = DF.select("time","longitude", "latitude","speed") I want to calculate z score (x-mean)/std of each row of speed column.I…
user12646422
-1
votes
1 answer

I have a dataset of 130 variables and I have to check the correlation of all variables, is there any way to check it in once

I have a dataset of 130 variables and I have to check the correlation of all variables, is there any way to check it in once I am new to data science and using pandas, please suggest a way. Do I have to do hypothesis....
-1
votes
1 answer

list index out of range when performing database queries in Hypothesis function

I'm using Python Hypothesis to write random tests for database. After 1-2 loops of insert the given values to the table I get list index out of range and @seed to reproduce. There is nothing that suppose to fail, I'm not asserting anything…
-1
votes
1 answer

Doubts about t.test results

I have a vector with 385 numbers ranging from 2000 to 5200 and I am asked to test whether the mean is greater than 5500. I tried this: t.test(tabla2$`Precio max`, y = NULL, alternative="g", mu=5500,paired = FALSE, conf.level=0.95) and the result…
-1
votes
1 answer

for loop group of numbers

I am trying to create a for loop that inserts a group of numbers, I would like to insert what I have in the '' each time, here, three times. for zz=['1 0 0 0', '0 1 0 0', '0 0 0 1']; H=zz end Any ideas would be appreciated.
user22485
  • 281
  • 1
  • 9
-1
votes
2 answers

Testing the null hypothesis of zero skew

I need to test the null hypothesis that my steady returns have a zero skewness with a confidence level of 95%. Do you have any ideas which formula I can take for this kind of test ? I tried the Agostino test for skewness, but think it's not the best…
Kindou
  • 23
  • 1
  • 6
1 2 3
23
24