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
5
votes
2 answers

Kruskal - Wallis p-value matrix for data subsets with R

Consider a dataset Data which has several factor and several numerical continuous variables. Some of these variables, let's say slice_by_1 (with classes "Male", "Female") and slice_by_2 (with classes "Sad", "Neutral", "Happy"), are used to 'slice'…
GegznaV
  • 4,938
  • 4
  • 23
  • 43
5
votes
1 answer

How can I add p-value to my concordance index plot in R?

In my survival analysis task, I have used cox proportional model to calculate concordance index (c-index) value in different groups of my dataset. I was wondering how can I add p-value to my c-index plot to compare different groups to look like this…
user3576287
  • 932
  • 3
  • 16
  • 30
5
votes
2 answers

How can I calculate a p-value for a hypergeometric distribution in Go?

In R, I can calculate a p-value for a hypergeometric distribution by using the phyper() function, of which the first value in the returned array is the p-value. I was wondering whether there is any package in Go / Golang, that lets me do this…
Samuel Lampa
  • 4,336
  • 5
  • 42
  • 63
5
votes
2 answers

format color and legend in ggplot geom_tile of p-values

I am currently trying to make a 'heat map' using ggplot2 to display a series of p-values, but can't figure out how to tailor the actual color assignments and legend. sampledata.m <- melt(sampledata) sampledata.m$var2 <-…
diaferiaj
  • 315
  • 1
  • 5
  • 13
4
votes
1 answer

Issues with {ggpval} package in R

I am currently working in R to create bar charts. I was asked to add p-values on each bar charts. I found how to do it with the package {ggpval}. My issue now is that I cannot change the font size of it. The function used is add_pval(), which has an…
Robin.N.
  • 99
  • 8
4
votes
2 answers

R corrplot: how to modify the number of displayed digits for the p-value?

I am using the corrplot() function in R to create a correlation heatmap. I want to display the p-values for the correlations. corrplot(as.matrix(M2), method="color", p.mat = as.matrix(p_mat2), sig.level=0.05, tl.cex=font_size, insig="p-value") I…
aldorado
  • 4,394
  • 10
  • 35
  • 46
4
votes
2 answers

Error using t.test() in R - not enough 'x' observations

I try to conduct a t.test, but it gives me such a mistake. Error using t.test() in R not enough 'x' observations The data has only numerical values, no NA. The ratio of groups is 10 to 35. How can this be circumvented? Thanks in advance for the…
Diana Bugrimova
  • 71
  • 1
  • 1
  • 5
4
votes
1 answer

How SciPy calculates the p-value in pearsonr() function?

I have searched a lot but there is no explanation on how SciPy calculates the p-value for the correlation coefficient and why it is unreliable (started by SciPy on the function page) for data sets smaller than 500.
4
votes
1 answer

Very low p-values in Python Kolmogorov-Smirnov Goodness of Fit Test

I have a set of data and fit the corresponding histogram by a lognormal distribution. I first calculate the optimal parameters for the lognormal function, and then plot the histogram and the lognormal function. This gives quite good results: import…
4
votes
1 answer

Chi-squared goodness of fit test in Python: way too low p-values, but the fitting function is correct

Despite having searched for two day in related questions, I have not really found an answer to this Problem yet... In the following code, I generate n normally distributed random variables, which are then represented in a histogram: import numpy…
Charles M.
  • 83
  • 1
  • 4
4
votes
1 answer

Computing p.values in spatial econometric models: why are there inconsistencies between summary() and texreg()?

I am estimating some spatial econometric models that contain both a spatial autoregressive term rho and a spatial error term lambda. In attempting to communicate my results I was using the texreg package, which accepts the sacsarlm models I am…
gfgm
  • 3,627
  • 14
  • 34
4
votes
4 answers

Tensorflow Linear Regression: Getting values for Adjusted R Square, Coefficients, P-value

There are few key parameters associated with Linear Regression e.g. Adjusted R Square, Coefficients, P-value, R square, Multiple R etc. While using google Tensorflow API to implement Linear Regression how are these parameter mapped? Is there any…
4
votes
1 answer

How do I get T-Stat and P-Value from OLSMultipleLinearRegression

With the following code taken from examples... How do I get the p-value and t-stat that you would find in output such as Excel? OLSMultipleLinearRegression regression2 = new OLSMultipleLinearRegression(); double[] y = { 4, 8, 13, 18}; …
Mike Samaras
  • 376
  • 2
  • 13
4
votes
1 answer

Indicating the statistically significant difference in bar graph base R

This has been asked before in this post: Indicating the statistically significant difference in bar graph USING R. However, they wanted to know how to do this using ggplot2. I was wondering how you do this using just the base package or function…
user3919708
  • 141
  • 1
  • 1
  • 9
4
votes
2 answers

What do the p=0 mean in a correlation matrix using rcorr?

I've been using the rcorr function from the Hmisc package in R. I figured out how it works, I can extract the results, put them in a nice table. I looked at this post: p-values of correlation coefficients. But... Just one remaining thing is bugging…
1 2
3
52 53