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

Using .Call for C_pKolmogorov2x in R package submitted to CRAN

I'm preparing the package in R language for the CRAN submission. However, I've to calculate the p-value for the one-sample Kolmogorov-Smirnow test using the external call to the function C_pKolmogorov2x from the stats package, i.e. 1-…
errenay
  • 1
  • 1
-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

Why is statmotsmodels.Logit P > |z| different from scipy.stats pearsonr? They both are p_values, but they are giving me different values

Here's my pandas dataframe with my data: c0 c1 c10 c11 c12 c13 c14 c15 c16 c3 c4 c5 c6 c7 c8 c9 index 0 1 49 2.0 0 2 2 0 1 6797.761892 130 269.0 0 1 …
Al777
  • 9
  • 3
-1
votes
1 answer

P-value from a chi-square test

I have a value of chi-square = 23.426, df=3, alpha=0.05 (alpha is significance level) how can I calculate the p-value of this in r?
Shell
  • 1
-1
votes
1 answer

increasing the resolution of the p value on a Tukey test in R

I performed a Tukey HSD test in R, and I want to see the p-value of one of the comparisons. When I run the Tukey test, my p values are so small that on the table they just read as "0.0000000". I need to know what the actual value is, even if it is…
Emily
  • 59
  • 1
  • 4
-1
votes
1 answer

P-value in nnet: multinom() . P-value Wald test extracted, but ¿how i extract it by LIkehood ratio?

I got a multinomial model, which goes like this: I got a bunch of observations (patients) that have 1 of 5 classes: Control, A_severe, A_low, B_severe, and B_low. So I tried to fit a multinom model with the package nnet, and I extracted the Wald…
Galpaccru
  • 57
  • 12
-1
votes
1 answer

Performing rowwise t.test on a dataframe with unequal replicates for different observations

Say for example, I have a dataframe that has eleven columns (example screenshot attached). The first column lists all the genes and the next ten columns are measurements for control (C1-C5) and treated (T1-T5) samples. The measurements are not…
sou
  • 1
  • 1
-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

How to put F-statistic and P-value into a table?

How do I simplify these codes into a for-loop and create a table to display the F-statistics and P-value of the features. print(scipystats.f_oneway(df_data.loc[df_data["SaleCondition"] == 'Normal'].SalePrice, …
takahashi
  • 21
  • 1
  • 7
-1
votes
1 answer

T-Test For Genes using Apply Function in Dataframe

I’m trying to run a t.test on two data frames. The dataframes (which I carved out from a data.frame) has the data I need to rows 1:143. I’ve already created sub-variables as I needed to calculate rowMeans. > c.mRNA<-rowMeans(c007[1:143,(4:9)]) >…
Oars
  • 21
  • 9
-1
votes
1 answer

Bootstrap p-value for correlation coefficient (resampling methods)

I have this large datset (N = 300.000) and with a power analysis I came to the conclusion that I need only 250 observations to find a correlation if it's present. So, I want to use a bootstrap to pick 1000 samples of size n = 250 to find the range…
SHW
  • 461
  • 7
  • 26
-1
votes
2 answers

How to get a collection of p-values for linear regression?

I have a data of 131 columns. The first column is my Y. I have 130 Xs. I want to have 130 linear regressions which are lm(y ~ x1), lm(y ~ x2), lm(y ~ x3 ) ....lm(y ~x130). Then get the p-value of every of these fit. How can I make it faster? for…
ay__ya
  • 423
  • 1
  • 5
  • 12
-1
votes
1 answer

Comparing two data with chi-square test in python

I have two spectra which have (wavelength, flux, error) columns. Two spectra are similar to each other except that one has a small shift in wavelength as compared to the other. I have measured the shift by cross-correlating the two spectra. Now, my…
vivek m
  • 3
  • 2
-1
votes
1 answer

Finding the p-value for a Wilcoxon Signed-Rank Test Difference of Paired Samples in R

So, I am making my own Wilcoxon Signed-Rank Test function in R and am currently working finding the p-value. I have worked through how to find the test statistic and I was just wondering if there was an easy function that could find the p-value. Any…
Casey
  • 11
-1
votes
1 answer

How to interpret coefficients and p-values in multiple linear regression with two categorical variables and interaction

I need help with interpreting the output of a multiple linear regression with two categorical predictor variables and an interaction term. I did the following linear regression: lm(H1A1c ~ Vowel * Speaker, data=data) Vowel and Speaker are both…