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

If computed the relative rejection frequency, how to measure if significantly different from significance levels? (Normality tests in R)

professionals and students, I have significance levels 10%,5% & 1% and I have computed the relative rejection frequency thanks to an answer on my previous question. replicate_sw10 =…
0
votes
1 answer

One sample & Two Sample t-tests in Python

I have a doubt here on how to work this. New to the world of Stats and Python. A student is trying to decide between two Processing Units. He want to use the Processing Unit for his research to run high performance algorithms, so the only thing he…
NottyHead
  • 181
  • 4
  • 18
0
votes
0 answers

Test if intercepts in ancova model are significantly different in R

I ran a model explaining the weight of some plant as a function of time and trying to incorporate the treatment effect. mod <- lm(weight ~time + treatment) The model looks like this: with model summary being: Call: lm(formula = weight ~ time +…
Stevestingray
  • 399
  • 2
  • 12
0
votes
1 answer

Wald Test for Multinomial Reg. in R

I asked this question before but never got an answer, so I am trying again and providing a sample data set so someone can tell me why I'm getting the errors I'm getting when I try implementing the Wald Test from aod and lmtest packages. Sample…
Michael
  • 111
  • 9
0
votes
0 answers

Understanding of Hypothesis testing and further actions

I have few basic doubts regarding Hypothesis testing, I know Hypothesis Testing is a statistical test, for a sample of data stands true for the entire population or not. That is, if a random sample's mean is same as that of the population mean.…
Vin
  • 89
  • 5
0
votes
0 answers

One sided proportion test for significantly high values

I have a dataset where I know how many units of each product I have in starting inventory. Then I know how many units of a given product were sold. I also know how many units of all other products were sold. The question I'm trying to answer is…
user3476463
  • 3,967
  • 22
  • 57
  • 117
0
votes
0 answers

Getting error while doing the variance test

I'm trying to get two different datasets from the user and let the user select two variables from both datasets and perform the variance test. When I try to execute the variance test in the R shiny app, it throws the error: undefined columns…
0
votes
1 answer

Wald test on a list of multiple linear regressions

Using the newly created list of 69 models using lm shown here: Looping through many multiple regressions I am trying to run a Wald test but it does not seem to work on the 69 models at the same time. It only works when I specify doing a Wald test…
0
votes
1 answer

Test if group means are statistically significantly different in R

*(I asked this question earlier, but it got migrated to stackexchange and was labeled 'unclear' and I couldn't edit it, so I'm going to try to clean up the question and make it more clear). I have the following data frame and need to determine if…
Bjorno
  • 119
  • 7
0
votes
0 answers

Hypothesis Testing and calculating p-value for Pandas dataset

I want to study the relationship between car accidents and weather temperature. So, I have a dataset for car accidents that have different attributes related to accidents and weather temperature for when the accidents occurred as follow: To study…
Jan
  • 747
  • 1
  • 10
  • 29
0
votes
1 answer

hypothesis test population and sample averages

I have a population that has an average weight of 5 lbs. I've taken sample of 5879 observations from the population. The sample has a total weight of 410522 lbs. I'm trying to figure out if the sample has a significantly higher average weight…
user3476463
  • 3,967
  • 22
  • 57
  • 117
0
votes
0 answers

Hypothesis testing of 2 categorical variables

I am trying to make a hypothesis test of two categorical variables. If I summarize the data it looks like this: target 0 1 airbag 0 11129 669 1 13907 511 target: 0 means that the person is alive…
0
votes
1 answer

apply proportion z-test to each record in dataframe

I have the code below, where I'm trying to apply a one sample proportion ztest to values in each row in my data. I have example data below from my dataframe df. I'm trying to compare each proportion in value to the proportion gotten from the value…
user3476463
  • 3,967
  • 22
  • 57
  • 117
0
votes
2 answers

Kolmogorov-Smirnov (ks_2samp) p-value not as expected - Wrong test or understanding?

Context I am using scipy's ks_samp in order to apply the Kolmogorov-Smirnov-test. The data I use is twofold: I have a dataset d1 which is an evaluation-metric applied on the forecast of a machine-learning model m1 (namely the MASE - Mean Average…
Markus
  • 2,265
  • 5
  • 28
  • 54
0
votes
1 answer

Convert dummy variable from numeric to factor for chi-square test in R

I want to perform chi-square test in R using the following datasets. After perform dummy variable creation. The p-value i get from chi-square test is 1, which is incorrect. I suspect it is because of after dummy variable creation, the data structure…
Shawn Teh
  • 39
  • 10