R PROGRAMMING by using R studio or R software
Let x = Number of people survive
X ~ Binomial (n,p)
since n is fixed and p is constant for each trial
R codes marked in BOLD
# (a) probability at least 10 people survive
a <- pbinom(9, 15, 0.4, lower.tail = FALSE)
print(a)
Ans : 0.0338333
# (b)3 to 8 people survive
b <- pbinom(8, 15, 0.4, lower.tail = TRUE)-
pbinom(2, 15, 0.4, lower.tail = TRUE)
print(b)
Ans 0.8778386
# (c) exactly 5 people survive
c <- dbinom(5, 15, 0.4)
print(c)
Ans : 0.1859378
#(d) plot of the distribution
x <- seq(0,15,by=1)
px <- dbinom(x, 15, 0.4)
plot(x,px,main = "Graph of the distribution ",xlab = "x",ylab =
"P(X=x)","l")
R PROGRAMMING by using R studio or R software 1. The probability that a patient recovers...
IlI. The probability that a patient recovers from a rare blood disease is 0.3. If 20 people are known to have contracted this disease, (a) exactly 3 survive; (b) at least 2 survive, (c) the mean and variance of this process. (20 points)
The probability that a patient recovers from a stomach disease is 0.8 Suppose 20 people are known to have contracted the disease. A. What is the probability that at least 14 but not more than 18 recover? B. what is the expected number to recover? C. What is the variance in the number that recover?
Problem 5: The probability that a patient fully recovers from a severe back pain after a certain type of therapy is 0.85. Suppose 20 people are known to have severe back pain were subjected this type of therapy. (1) Find the probability that exactly 15 fully recover? (2) Find the probability that at least 9 recover? (3) Find the probability that at least 14 but not more than 18 recover? (4) Find the probability that at most 15 recover? (5)...
In a game called heads, a player tosses a coin three times. S/he wins N$300 if 3 heads occur, N$200 if 2 heads occur, and N$100 if 1 head occurs. On the other hand, S/he loses N$1500 if no head occurs. Let Y be a random variable denoting the player's gain (or loss). The coin is biased such that the probability of landing heads up is 2/3. a) Find the probability distribution of Y b) Hence, or otherwise, find the...
1.0000 1.0000 0.2430 0.6035 0.8531 0.9601 0.9918 0.9987 0.9998 1.0000 1.0000 1.0000 1.0000 1.0000 ← -. 2-final 2016 istics 2.jpg 山 Academie Level: Thin Semester Fine 2016/2017 Ceerse Cede & Thle Statisties and Engineering Econony astracter Dr Abdulah El-Far Fieal Esam Time allewed:h Saturday 14Ja 201 STATISTICS AND INTEREST TABLES ARE ONLYALLOMp tions Question No,1115Marks] The percentage of students in four different faculty departments A·B, C and D are 40 30% 20% and 10% respectively. tryou know that tre ss%,...
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...
solve using R or R studio if needed
1. In a study of human memory, Shachs (1967) demonstrated that people recall the meaning of verbal material, but tend to forget the exact word-for-word details. In this study, people read a passage of text. Then the people were shown a test sentence and asked whether or not the identical sentence has appeared in the text. In one condition, the test sentence was phrased differently, but had the same meaning as a...
1. A certain medical test is known to detect 72% of the people who are afflicted with the disease Y. If 10 people with the disease are administered the test, what is the probability that the test will show that: All 10 have the disease, rounded to four decimal places? .0374 At least 8 have the disease, rounded to four decimal places? At most 4 have the disease, rounded to four decimal places? Please show the steps in Microsoft excel...
R
programming question
a) Do in R OR by hand
b) Do using R only. Don’t forget confidence interval.
. The commute time between LPC and Loop campus is X+ Y, where X is the time in minutes to wait for train and Y is the time in minutes for the train travel. Suppose that X has a zero-inflated exponential distribution, i.e., the cumulative probability distribution is: 0, 0.4 1 0.6e-/5 -oo x<0, Fx(x) 0 r oo. Suppose that Y...
I would like the whole Question done on r studio with
the R Code.
1. In this question we will evaluate type I and type II error probabilities for one-sided tests. We will consider normally distributed data, with unit variance and independent obervations. We will use Ho : μ-0 for the null and H1 : μ-1 for the alternative, unless otherwise stated. (a) Suppose we have n-6 observationsx. What is the sampling distribution of the (10 marks) sample mean (that...