5 5A Using the chimpanzee data, combine all of the trials made without a partner. Count…
Jump to turn (7)
- 15 5A Using the chimpanzee data, combine all of the trials made without a partner
- 2This line that you have generated is not readable can you write it in normal eng
- 3Still not readable
- 45C Output $lower [1] 0.3898559 $upper [1] 0.5339915 Answer 5D accordingly
- 56 Using the same data as in the previous problem, do the following. 6A State hyp
- 6$zscore [1] 0.3651484 $pvalue [1] 0.7150007 Answer 6C accordingly
- 77 Use functions from the file ggprob.R to visualize the calculation of the p-val
- User
5
5A
Using the chimpanzee data, combine all of the trials made without a partner. Count the number of pro-social and selfish choices made.
{r}# insert code here5B
Write a model for the number of pro-social choices.
Let X be the number of pro-social choices out of n trials without a partner. Assuming X follows a binomial distribution, we can model it as X∼Binomial(n,p), where p is the probability of making a pro-social choice.
5C
Use the Agresti-Coull method to construct a 95% confidence interval for the probability that a chimpanzee makes the pro-social choice in experimental conditions when there is no partner present.
{r}# insert code here5D
Interpret this confidence interval in the context of the experimental setting.
REPLACE THIS TEXT WITH YOUR RESPONSE
CSV FILE DATA actor partner prosocial selfish prosocial_color selfish_color A I 22 8 green purple A G 16 14 yellow black A H 22 8 blue red A none 16 14 pink gray B H 18 12 black yellow B C 23 7 purple green