Question

In: Math

Your company has been testing two flavors of coffee using free samples, let's call them Flavor...

Your company has been testing two flavors of coffee using free samples, let's call them Flavor A and Flavor B. You are planning to only offer one flavor for sale and are interested in whether your customers prefer Flavor A or Flavor B.

You use a taste testing survey of 60 randomly selected people, and find that 36 people prefer Flavor B.

Using greta and assuming a generative model with Bernoulli data (X) and a Beta prior (θ):

X∼Bernoulli(θ)

Θ∼Beta(2,2)

determine what your updated probability is that Flavor B is preferred to Flavor A. In other words, what percentage of your posterior draws have a theta that is above 0.5?

(Enter answer as a decimal - i.e. 12% would be entered as 0.120. Round to the nearest thousandths place)

Please show me how something like this would be solved using R.

Solutions

Expert Solution


Related Solutions

A geneticist is studying the inheritance of two traits, let's just call them G and H....
A geneticist is studying the inheritance of two traits, let's just call them G and H. Each has two alleles and displays simple dominant/recessive phenotypes. They think that the two traits are independently assorting. The possible phenotypes of the offspring are dominant for G and H, dominant for G and recessive for H, recessive for G and dominant for H, and recessive for both G and H. 1. What is the predicted ratio of phenotypes of the offspring if these...
You work for a bubble gum company testing new flavors to bring to market. Your marketing...
You work for a bubble gum company testing new flavors to bring to market. Your marketing department claims in an add they made that 8 out of 10 people prefer the new flavor "Crazy-Tasks". You conducted a poll and found that 28 out of 60 people prefer the new flavor "Crazy-Tasks". Test the claim by using a confidence interval at a 95% confidence level. Would this claim involve a mean or a proportion and why? What would be your point-estimator?...
1. A taste-testing experiment has been designed so that four brands of Colombian coffee are to...
1. A taste-testing experiment has been designed so that four brands of Colombian coffee are to be rated by nine experts. To avoid any carryover effects, the tasting sequence for the four brews is randomly determined for each of the nine expert tasters until a rating on a 7-point scale (1=extremely unpleasing, 7=extremely pleasing) is given for each of the following four characteristics: taste, aroma, richness, and acidity. The following table displays the summated ratings-accumulated over all four characteristics. BRAND...
Hypothesis Testing (Two samples – means) Using the 5 step process: After four weeks in the...
Hypothesis Testing (Two samples – means) Using the 5 step process: After four weeks in the program, Weight Watchers wants to know if there is a difference between the weight loss in men as opposed to the weight loss in women. After four weeks, a sample of 40 men revealed a mean weight loss of 17.6 pounds while a sample of 55 women revealed a mean weight loss of 13.8 pounds. The standard deviation of weight loss in men and...
You’ve been examining two enzymes (let’s call them Enzyme A and Enzyme B) . For enzyme...
You’ve been examining two enzymes (let’s call them Enzyme A and Enzyme B) . For enzyme A the Km=1000mM and Vmax = 1000 mmol/min. For Enzyme B, Km= 10mM and Vmax= 100 mmol/min. Showing your work, and explain your reasoning, determine which enzyme works faster at substrate concentrations of 5mM, 100mM, and 2000mM.
12. An agricultural research company has developed two new types of soy bean seeds, call them...
12. An agricultural research company has developed two new types of soy bean seeds, call them "seed A" and "seed B". A study is conducted to determine which will produce a higher mean yield. To test the two types of seed, 20 similar plots of land were randomly placed into one of two groups. One group of ten plots was planted with "seed A", while the other ten plots were planted with "seed B". The yield of each field, in...
A testing laboratory has been hired by a company called “Drug Company Q” to analyze a...
A testing laboratory has been hired by a company called “Drug Company Q” to analyze a series of over-the-counter drugs that the company produces. In these over-the-counter drugs, the active ingredient is called “Active Ingredient M.” The laboratory technician collected the following data from samples with known concentrations of the Active Ingredient M. That data is shown below in Table 2. Convert %T to absorbance (A=2-log(%T)) and prepare a Beer’s law plot using this data. Table 2. Known Concentration of...
Two sound waves (call them X and Y) travel through the air. Wave X has a...
Two sound waves (call them X and Y) travel through the air. Wave X has a wavelength of 0.1 m and a pressure amplitude of 0.04 Pa. Wave Y has a frequency of 3430 Hz and a pressure amplitude of 4 Pa. Fill in the following: The intensity of Y is greater than  that of X by ............... times. Soundwave Y is ................. dB louder than soundwave X.
This summer, you receive a call at work that your teen has been arrested for shoplifting,...
This summer, you receive a call at work that your teen has been arrested for shoplifting, while at the mall with friends. You gave permission for this excursion this morning. How do you respond after retrieving your child from the police station? What future concerns do you have for your child? And how will these concerns influence your response?
ONLY E AND F PLEASE Sharp Discounts Wholesale Club has two service desks (call them A...
ONLY E AND F PLEASE Sharp Discounts Wholesale Club has two service desks (call them A and B) with one server at each desk. There is one desk at each entrance of the store. Customers arrive at each service desk at an average of one every six minutes following a Poisson distribution. The average service time at each service desk is 4 minutes per customer following the exponential service distribution. a) How many customers, on average, are at service desk...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT