Plese use R-Studio to answer this question.
qbinom(p, size, prob) gives the smallest x value so that the probability of being less than or equal to x is at least p. Try the following: pbinom(0:10, size=10, prob=0.5) ; qbinom(0.75, size=10, prob=0.5) What is the value for which 90 percent of the probability is smaller than it, when you flip a fair coin 20 times?
Here, size = 20 , p=0.9 , prob = 0.5
The value for which 90 percent of the probability is smaller than it, when you flip a fair coin 20 times is 13.
Plese use R-Studio to answer this question. qbinom(p, size, prob) gives the smallest x value so...
Solve the following problems in R studio or R. please help with this question in writing codes in R. 1. Suppose you toss a fair coin 10 times, let X denote the number of heads. (a) What is the probability that X=5? (b) What is the probability that X greater or equal than 5? (c) If I want to make sure that the P(X<a) > 0.8, what is the minimum value of a? (a is an integer)
In order to test whether a certain coin is fair, it is tossed ten times and the number of heads (X) is counted. Let p be the "head probability". We wish to test the null hypothesis: p = 0.5 against the alternative hypothesis: p > 0.5 at a significance level of 5%. (a) Suppose we will reject the null hypothesis when X is smaller than h. Find the value of h. (b) What is the probability of committing a type...
Please, I want to solve this question 2· Let 0 < p < 0.5. Assume that there are two biased coins. The 1st coin shows heads with probability p and the second coin shows heads with probability q, where q-1-p. Consider the following two stage experiment. First, select one of the two coins at random, with each coin being selected with probability 1/2, and then flip the selected coin n times. Let X be the number of times heads shows....
In order to test whether a certain coin is fair, it is tossed ten times and the number of heads (X) is counted. Let p be the "head probability". We wish to test the null hypothesis: p = 0.5 against the alternative hypothesis: p > 0.5 at a significance level of 5%. (a) Suppose we will reject the null hypothesis when X is smaller than h. Find the value of h. (b) What is the probability of committing a type...
Question 2 Suppose you have a fair coin (a coin is considered fair if there is an equal probability of being heads or tails after a flip). In other words, each coin flip i follows an independent Bernoulli distribution X Ber(1/2). Define the random variable X, as: i if coin flip i results in heads 10 if coin flip i results in tails a. Suppose you flip the coin n = 10 times. Define the number of heads you observe...
Write only the numerical answer for the questions below. 6 points for each question. 1. Suppose that the probability of a day being rainy in Istanbul is 0.4 independent of the other days. What is the probability that more than 2 days are rainy in a week. 2. Find P(X < x + 4) where X is the mean of a sample with size 4. 3. Suppose, in a statistics class, there are 10 female students with a mean GPA...
R studio #Exercise : Calculate the following probabilities : #1. Probability that a normal random variable with mean 22 and variance 25 #(i)lies between 16.2 and 27.5 #(ii) is greater than 29 #(iii) is less than 17 #(iv)is less than 15 or greater than 25 #2.Probability that in 60 tosses of a fair coin the head comes up #(i) 20,25 or 30 times #(ii) less than 20 times #(iii) between 20 and 30 times #3.A random variable X has Poisson...
You have five coins in your pocket. You know a priori that one coin gives heads with probability 0.4, and the other four coins give heads with probability 0.7 You pull out one of the five coins at random from your pocket (each coin has probability 릊 of being pulled out), and you want to find out which of the two types of coin it is. To that end, you flip the coin 6 times and record the results X1...
6. [R Programming| In order to complete this question, we will need to use a fundamen- tal theorem in probabilty theory known as the (Weak) Law of Large Numbers (WLLN) The WLLN will be covered in greater detail in Chapter 8, however we will use this key result throughout the course to approximate probabilities that are otherwise difficult to calculate theoretically. A simplified version of the theorem goes as follows. Assume we are interested in com- puting the probability of...
2- (10 pts. Choose the correct answer (Write down the correct answer letter AND value at your answer booklet IF YOU CHOOSE "None of the above", WRITE DOWN THE CORRECT ANSWER: a. I have a bag with 3 coins in it. One of them is a fair coin, but the others are biased coins. When flipped, the three coins come up heads with probability 0.5, 0.6, 0.1, respectively. Suppose you pick one of these three coins uniformly at random and...