# This example illustrate how to find the binomial distribution of the Rock-Paper-Scissors examplenumberTrial <-12parameter <-1/3probability <-function(n, x) {factorial(n) /factorial(n-x) /factorial(x)*(parameter)^x*(1-parameter)^(n-x) }# create a dataframe for saving the probability of different number of scissors thrown out of 12 times under the null hypothesisdistvector <-vector('numeric',length =13)for (i in0:12){ distvector[i+1] <-probability(12,i)}dis <-as.data.frame(cbind(seq(0,12),distvector))dis