Question

WRITE R CODE TO SOLVE THIS QUESTION 14)An ichthyologist during her study catches specimens in a large bag seine that she trolls through a lake. She knows from many years of experience that on an average she will catch 2 fish per run. Find the probability of catching: a. No fish on a particular run. b. Fewer than 6 fish on a particular run. c. Between 3 to 6 fish on a particular run.

WRITE R CODE TO SOLVE THIS QUESTION

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Below is the probability for calculation in R. Poisson distribution is calculated using the function ppois().

R Code

# Part a)
# As ,mean occurence lambda = 2 is given poison distribution is calculated.
# For zero or no fish i.e. q = 0
ppois(0, lambda = 2)
# Part b)For fewer than 6 fishses q = 5 is used
ppois(5, lambda = 2)
# Part c) Fishes between 3 and 6, q = 3 is subtracted from q = 3
a <- ppois(5, lambda = 2)
b <- ppois(3, lambda = 2)
a - b

Code screenshot

1 # Parta) # As ,mean occurence lambda-2 is given poison distribution is calculated. 3 # For zero or no fish i.e. q-0 4 ppoisOutput

[1] 0.1353353 1 0.9834364 1 0.1263129

Add a comment
Know the answer?
Add Answer to:
WRITE R CODE TO SOLVE THIS QUESTION WRITE R CODE TO SOLVE THIS QUESTION 14)An ichthyologist...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 2. Write a question for Newton-divided difference interpolation. Then, solve it theoretically. After solving it, write...

    2. Write a question for Newton-divided difference interpolation. Then, solve it theoretically. After solving it, write a MATLAB code for this question which returns either an estimation for a value or the polynomial coefficients of ',x1, x²,..., respectively, Instructions: . You do not need to create built-in function. You may study on a script, • You have already known your table, which is written as a question. Using this table, write a code which returns either an estimation for a...

  • Write a java code to solve the following question using the backtracking algorithm. Given a set...

    Write a java code to solve the following question using the backtracking algorithm. Given a set of distinct integers, return all possible subsets. input: new int[] {1,2,3} output: [], [3], [2], [2,3], [1], [1,3], [1,2], [1,2,3] What to submit: 1. Your source code in a text document (15pts), 2. A screen copy showing you can run the code and the result of running the code (5 pts). 3. What is the performance of your algorithm (5 pts), give the answer,...

  • Please write the R code to solve the question. Problem (2). In an effort to link...

    Please write the R code to solve the question. Problem (2). In an effort to link cold environments with hypertension in humans, a preliminary experiment was conducted to investigate the effect of cold on hypertension in rats. Two random samples of 6 rats each were exposed to different environments. One sample of rats were held in a normal environment at 26°C. The other sample was held in a cold 5°C environment. Blood pressures and heart rates were measured for rats...

  • Question 85 points Solve the formula for the indicated variable. R = nE - nr, for...

    Question 85 points Solve the formula for the indicated variable. R = nE - nr, for n n = R - E + r n = R + nr - E n = n = Signaler cette question Question 95 points Solve the problem. Sophia borrowed $12,109 at 4.5% simple interest for 6 months. How much will the interest amount to? What is the total amount that she will have to pay back at the end of 6 months? Round...

  • 1. [12 marks] In the following parts of this question, write a MATLAB code to solve a linear syst...

    1. [12 marks] In the following parts of this question, write a MATLAB code to solve a linear system A b (A is a square nonsingular matrix) using Jacobi and Gauss-Seidel algorithms. Do not use the built-in Matlab functions for solving linear systems (a) Write a Matlab function called Jacobi that consumes a square n x n matrix A, and an n x 1 vector b, and uses the Jacobi technique to solve the system Ax-b, starting with the zero...

  • Using R code: A researcher collects data on the relationship between the amount of daily exercise...

    Using R code: A researcher collects data on the relationship between the amount of daily exercise a person gets and their percent of body fat. She is trying to see if exercise (X) can predict percentage of body fat (Y). The following data were recorded: Individual 1 2 3 4 5 Daily Exercise (min) (X) 10 18 26 33 44 % Fat  (Y) 30 25 18 17 14 a. Draw a scatterplot that represents this data set with linear and lowess...

  • *** do not solve the question *** i have uploaded the data to matlab, show how do i code to run t...

    *** do not solve the question *** i have uploaded the data to matlab, show how do i code to run ttest for this question (provide exact codes)   THxxxxxxxxxxxxxxxxxxxxxxxxx stion 18 marks In a study concerned with the effects of smoking on blood pressure, the smoking status (Yes- 1, No -0) and systolic blood pressure (mmHg) were recorded for 500 randomly selected people. The purpose of the following analysis is to determine whether the systolic blood pressure of smokers is...

  • Please solve only if you know how to do it. Write the code using C++ (not...

    Please solve only if you know how to do it. Write the code using C++ (not Python or Java). Show and explain everything neatly. COMMENTS (7.5% of programming assignment grade): Your program should have at least ten (10) different detailed comments explaining the different parts of your program. Each individual comment should be, at a minimum, a sentence explaining a particular part of your code. You should make each comment as detailed as necessary to fully explain your code. You...

  • Solve d,e and f please using R code Part I: qqplots This part deals with qqplots...

    Solve d,e and f please using R code Part I: qqplots This part deals with qqplots of all kinds. Let's do some easy expe riments, first. Let's take a sample from a normal distribution with mu-2, sigma 3, and then look at the hist and the qqplot of that data: set.seed(3) n 100 # Sample size x norm(n,2,3) # Sample from N(mu-2, sigma-3) hist(x) # Looks normal. But that depends on breaks. qqnorm(x) # This doesn't depend on binsize, and...

  • Stat 255 Project 3 due Wednesday, April 22 Write R code to solve the following problems, Make sur...

    I am just wanting the first question answered. Stat 255 Project 3 due Wednesday, April 22 Write R code to solve the following problems, Make sure to include descriptions and explanation in your cod Save them in a file named project3-yourname.R and email them to ysarolousi.edu be date. A model for stock prices Let S, be the closing price of a stock at the end of day j, where j model for the evolution of the future daily closing prices:...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT