
Computer Science Computer Science Forum 
 LinkBack  Thread Tools  Display Modes 
April 21st, 2018, 12:37 PM  #1 
Newbie Joined: Apr 2018 From: Taiwan Posts: 1 Thanks: 0  How to perform Matlab programming for the biased coin toss simulation
Let the bias be the probability of turning up a head and denoted by the parameter q. If we use a coin with the bias specified by q to conduct a coin flipping process d times, the outcome will be a sequence of heads and tails. Then the probability  where nH is the number of heads turned up during d trials. Now using such a simulated coin with q = ½ to conduct the experiments based on a sequence of outcomes generated by the random generator from computer. For example, if the number generated by the random generator is less than 1/2, it assigned to be 0; otherwise, it will be assigned 1. I would like to perform the Matlab programming with certain parameters for the Pattern Recognition (Binomial Distribution) as below  (1) d = 100 and n =100 using a simulated coin with q = ¼ and ½. (2) d = 10 and n =1000 using a simulated coin with q = ¼ and ½. (3) d = 100 and n = 1000 using a simulated coin with q = ¼ and ½. Kindly please provide your opinion and suggestion thus I will be able to improve my computing skills. (The result of the execution from program will be drawn into histogram on the PowerPoint) 

Tags 
biased, coin, matlab, pattern recognition, perform, programming, simulation, toss 
Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
coin toss problem  tlinetrader  Probability and Statistics  3  May 20th, 2015 05:50 AM 
Probability of a coin toss?  Sammy2121  Probability and Statistics  2  January 23rd, 2015 02:36 AM 
Biased Coin Toss  MathsLOL  Algebra  1  March 26th, 2012 05:41 AM 
Coin toss simulation and calculation of pvalues  alexis2  Advanced Statistics  1  November 21st, 2010 12:02 PM 
Coin Toss question  jaybug624  Advanced Statistics  3  October 14th, 2009 06:15 AM 