Skip to content
Learn Plant Science

Learn Plant Science

Explore the the green world with us

  • Home
  • Statistics – Experimental Design & Data Analysis Using R
  • Sign Test
online, web, statistics-3539409.jpg

Sign Test

Posted on January 30, 2023March 21, 2023 By Janith Piumal No Comments on Sign Test
Statistics – Experimental Design & Data Analysis Using R

The sign test is used for hypothesis testing by concerning the value of the median for one population, and comparing the median differences for two variables for two dependent samples.

Assumptions of the sign test.

  • Random sampling
  • Independent measurements
  • Data should be measurement, counts or scores.

Sign test for one population in Excel

Step 1: Put your two example data sets into a table to prepare for the test, set the null and alternative hypothesis

Step 2: Prepare a sign column calculated the sign values

Step 3: calculated the number of positive signs and number of negative signs

Step 4: Calculate the number of positive signs and number of negative signs

Step 5: Calculate the smaller sign value

Step 6: Then calculated the P-value (probability value)

Step 7: According to the P-value, check whether the null hypothesis is rejected or not.

Figure1: Sign test for one sample
sign-test-for-one-sample – excel sheetDownload

Sign test for two paired samples in Excel

Step 1: Calculated the sign value

Step 2: Calculate the abs value

Step 3: Calculate the sign rank value

Step 4: Calculate the positive and negative sum values

Step 5: Calculate the test-statistics (calculated value) – lowest sum value is taken as the test statistics

Step 6: find the critical value from the critical value table for given significant value

Step 7: If critical value is greater than the calculated value null hypothesis will rejected.

Figure1: Sign test for two paired sample
Sign-test-for-two-paired-samples-excel-sheetDownload

Sign Test in R

#FOR ONE SAMPLE SIGN TEST
install.packages("BSDA")
library(BSDA)
SIGN.test(data, md, conf.level, alternative)

#FOR TWO PAIRED SAMPLES
data = read.csv(‘‘data_file.csv’’, header = TRUE)
SIGN.test (data$A, data$B, alternative, conf.level)

Post navigation

❮ Previous Post: Nonparametric Statistics.
Next Post: Mann Whitney U Test ❯

You may also like

graph, growth, progress-3078545.jpg
Statistics – Experimental Design & Data Analysis Using R
Spearman Correlation
January 30, 2023
analytics, marketing, business-7168479.jpg
Statistics – Experimental Design & Data Analysis Using R
Nonparametric Statistics.
January 30, 2023
big data, database, analysis-3338320.jpg
Statistics – Experimental Design & Data Analysis Using R
Principal component analysis (PCA) in R studio
March 18, 2023
accountant, counting, calculation-1794122.jpg
Statistics – Experimental Design & Data Analysis Using R
Experimental Design Models
March 4, 2023

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Blog
  • Environment science
  • Horticulture
  • Microbiology
  • Molecular Biology
  • Phylogenetic
  • Plant Breeding
  • Statistics – Experimental Design & Data Analysis Using R
  • Uncategorized

Recent Posts

  • R for Phylogenetic
  • Character based approach of phylogenetic analysis
  • Distance based approach of phylogenetic analysis
  • Phylogenetic Analysis data
  • Applications of the phylogenetic Analysis.

Services

  • Study nature
  • Nature is a gift
  • A second spring
  • Smiles of nature
  • Just let it rain

Contact

Proin gravida nibh auctor aliquet amet anean sollicitudin, lorem quis.

  • 12 Avenue, New York, NY 10160
  • +1 910-626-85255
  • contact@nature.com
  • Home
  • Statistics
  • Phylogenetics
  • Microbiology
  • Plant Breeding
  • Horticulture
  • Molecular Biology
  • Environment science

Copyright © 2026 Learn Plant Science.

Theme: Oceanly Green by ScriptsTown