Questions tagged [p-value]

In statistical significance testing the p-value is the probability of obtaining a test statistic at least as extreme as the one that was actually observed.

The p-value is a key concept in the approach of Ronald Fisher, where he uses it to measure the weight of the data against a specified hypothesis, and as a guideline to ignore data that does not reach a specified significance level. Fisher's approach does not involve any alternative hypothesis, which is instead the Neyman–Pearson approach. The p-value should not be confused with the Type I error rate (false positive rate) α in the Neyman–Pearson approach – though α is also called a "significance level" and is often 0.05, these terms have different meanings, these are incompatible approaches, and the numbers p and α cannot meaningfully be compared.

791 questions
-2
votes
1 answer

extract verbatim p-value from cor.test

I ran a correlation analysis between two vectors and I need to plot the -log10(pvalue)...when the correlation runs, I have the following results: data <- read.table("test-data.txt") a <- data[,1] b <- data[,2] test <- cor.test(a, b) test …
TriRook
  • 147
  • 1
  • 3
  • 18
-3
votes
2 answers

Z Score to P Value in Delphi - one-tailed to two-tailed

Good morning I found a ready-made p-value calculator from the z value in the network (it's kinda hard for Delphi;). Unfortunately, it only gives the value for left-tailed, and I need it to give a value for two-tailed. Can anyone tell me how to…
kwadratens
  • 187
  • 15
-3
votes
3 answers

how to decide two variables are correlated

Running the below command in R: cor.test(loandata$Age,loandata$Losses.in.Thousands) loandata is the name of the dataset Age is the independent Variable Losses.in.Thousands is the dependent variable Below is the result in R: Pearson's…
Bala
  • 23
  • 8
-3
votes
1 answer

What does the p value represent in the scipy.stats chisquare function?

I am using the scipy.stats.chisquare function, as explained on https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chisquare.html I understand that, in general, the p-value demonstrates how well the data supports the null hypothesis. A…
PiccolMan
  • 4,854
  • 12
  • 35
  • 53
-3
votes
1 answer

Python p value from t-statistic giving nan

I have some t-values and degrees of freedom and want to find the p-values from them (it's two-tailed). In the real world I would use a t-test table in the back of a Statistics textbook; however, I am using stdtr or stats.t.sf function in python.…
novieq
  • 88
  • 1
  • 2
  • 14
-3
votes
1 answer

Using R to find several fisher's exact test p value in sequence

I have over 5000 data sets that i want to find p values for using fishers exact test in R. They are saved in a csv file and look something like this; 100 5000 400 500 250 400 600 400 ... ... ... ... where each row represents a contingency table.…
user3796053
  • 11
  • 1
  • 4
-4
votes
2 answers

Distribution empirical in R

I have a vector of observations and would like to obtain an empirical p value of each obervation with R. I don't know the underlying distribution, and what I currently do is just runif(100,0,1000)->ay quantile(ay) However, that does not really…
Wertw
  • 1
  • 1
  • 2
-7
votes
1 answer

P value of R t.test() function

I understand that, the function t.test provides several statistical values, along with a p-value. However, I am not sure if this is a one sided, or two sided p-value. Could someone tell me which p-value does it give as output?
Shamim Hafiz - MSFT
  • 21,454
  • 43
  • 116
  • 176
1 2 3
52
53