x=sample(c("H","T"),500,replace=TRUE,prob=c(0.5,0.5)) count=0 for (i in 1:500){ if(x[i]=="H") count=count+1 } count
I have solved the problem using R
Number of heads obatained is 258
here is the R code,
> x=sample(c("H","T"),500,replace=TRUE,prob=c(0.5,0.5))
> count=0
> for (i in 1:500){
+ if(x[i]=="H") count=count+1
+ }
> count
[1] 258
>
first step is to generte sample
in second step we count number of heads.
since it is done by random number that is it is a random sample.
you may obatain different results.
02 RA-2. E Question Help Use the accompanying Political Poll Appleto explore the compresents a voler...
Using the book, write another paragraph or two: write 170
words:
Q: Compare the assumptions of physician-centered and
collaborative communication. How is the caregiver’s role different
in each model? How is the patient’s role different?
Answer: Physical-centered communication involves the specialists
taking control of the conversation. They decide on the topics of
discussion and when to end the process. The patient responds to the
issues raised by the caregiver and acts accordingly. On the other
hand, Collaborative communication involves a...