Questions tagged [statistical-test]

A statistical test provides a mechanism for making quantitative decisions about a process or processes.

Statistical Tests

A statistical test provides a mechanism for making quantitative decisions about a process or processes. The intent is to determine whether there is enough evidence to reject a conjecture or hypothesis about the process. The conjecture is called the null hypothesis. Not rejecting may be a good result if we want to continue to act as if we believe the null hypothesis is true. Or it may be a disappointing result, possibly indicating we may not yet have enough data to prove something by rejecting the null hypothesis.

264 questions
3
votes
2 answers

Run Smirnov test in Java

I'm trying to run a Smirnov test in Java, to see if two sets of data come from the same distribution. However, I am getting a "cannot find symbol" error. How to do I "construct" a Smirnov Test so as not get this error? import java.io.*; import…
kjm
  • 113
  • 2
  • 2
  • 10
2
votes
1 answer

Spearman-Brown coefficient code producing N/A

How to make this Spearman-Brown coefficient code work? It gives me an output NA spearman_brown(df[,1], df[,2], short_icc, type = "ICC1", lmer = FALSE) Data structure(list(var1 = c("5", "2", "5", "2", "3", "1", "6", "1", "4", "5", "5", "2", "2",…
Gato
  • 389
  • 2
  • 12
2
votes
1 answer

TypeError: '<' not supported between instances of 'int' and 'str' when performing Wilcoxon Rank-Sum test on two pandas dataframes

I am trying to perform a Wilcoxon rank-sum test between two data frames kirc and normal. I would like to perform the test between the columns. My code raised TypeError: '<' not supported between instances of 'int' and 'str'. from scipy.stats import…
melolilili
  • 239
  • 1
  • 8
2
votes
1 answer

regression lm on R qualitative and quantitative variables

I am trying to do a linear regression on R, with qualitative and quantitative variables. Here is the structure of dataset : trip X year A 10 500 2019 B 11 …
2
votes
1 answer

how to interpret log fold change (log2FC) on two cases

just quick bioinformatic question if possible. I did read few papers and could not understand what this log fold change means. to make it simple I have a log2 fold change(log2FC) value 2 between condition A and B. Does it mean A is two times higher…
adR
  • 305
  • 4
  • 14
2
votes
1 answer

Different P-values between wilcox_test() & wilcox.test() in R

While I was trying to perform a paired Wilcoxon test for the variable "Metabolite", I noticed different p-values between wilcox_test() & wilcox.test() when I tested the following variable: structure(list(Visit = structure(c(1L, 1L, 1L, 1L, 1L, 1L,…
Geli
  • 75
  • 5
2
votes
1 answer

Simulation to find random sequences

With R I can try to find the probability that the Age vector below resulted from random sampling. I used the runs test (from randtests package) with resulted in p-value = 0.2892. Other colleagues used the rle functune (run length encoding in R) or…
2
votes
1 answer

Transform a list of t-tests results into a data frame

I have some results from a perm.t.test that I would like to transform into a data frame. This is a reduced version of my dataset: treat = c("C","C","C","C","C","C","C","C","C","C","C","C","C", …
Valen78
  • 115
  • 6
2
votes
1 answer

Trying to output multiple most frequent letters in an array

I'm trying to get some statistics from a string of text such as the number of words and sentences, etc. Among those statistics is the most frequent letters used in the string. I'm currently using these functions below to get most of the statistics…
gann
  • 49
  • 9
2
votes
1 answer

How to perform the Friedman test and post-hoc test in Python?

I know that Python's SciPy library has the function for the Friedman test But, it is not enough as I need more information for posthoc test. So, how I do Friedman test and posthoc test (e.g. Nemenyi or Bonferroni-Dunn test) and draw a critical…
Aqee
  • 153
  • 1
  • 9
2
votes
2 answers

p value of 1 for Mann-Whitney U - artifact?

I'm using the rstatix library in R 3.6.3 through RStudio 1.2.5042 and am getting the impossible p-value of 1 when running a two-sample Wilcoxon aka Mann-Whitney U Test. My first instinct says this is a floating point precision issue and the actual…
myfatson
  • 354
  • 2
  • 14
2
votes
1 answer

any way to select univariate features based on wilcoxon test in R?

I intend to use care::sbf to do univariate feature selection, wheres my input is dataframe with mulitple variables (a.k.a, its columns), list of candidate features, and label (a.k.a, categorical variables). After I read caret package documentation,…
2
votes
0 answers

Anderson Darling C++ implementation

I try to implement plenty of time already (haha) Anderson-Darling normality test into C++. Here is my code. I know there is similar topic here but unfortunatelly it did not solve my problem. Variance is calculated properly, uniform standartized…
vlad
  • 193
  • 2
  • 10
2
votes
1 answer

How to define a function in dplyr? - Adding the results of a chi-squared test

I am trying to write a function to give me a pivot table for two variables. Expanding my question here, I would like to include the p-value of a chi-square test for the relationship between the predictor and the target as well. How should I change…
Hamideh
  • 665
  • 2
  • 8
  • 20
2
votes
1 answer

Exact Cochran's Q test in R

I need to run a Cochran's test with small sample sizes. I read that "If your sample size is inadequate, the asymptotic p-value may not be accurate, but you can run an "exact" version of Cochran's Q test that will generate a more accurate exact…
user11538509
1
2
3
17 18