[SOLVED] MATH255: Mathematics for Computing Assignment 2

80.00 $

Category: Tags: , , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Assignment2-geqr1z.zip (76.8 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
5/5 - (2 votes)

This assignment is to be completed individually, with different randomly generated data sets for each student. You may hand-write or type your answers, but the Moodle submission link will accept a .pdf file only, plus a .txt file for R code. Whether your working out is done by hand, in R or both, it must be handed in. Unless otherwise stated, three significant digits is enough for all your answers, so for example a probability of 0.4386 can be given as 0.439. The assignment is due Friday Week 12 at 11:30pm.

  1. Generate 10 random points (xi,yi) restricted by xi ∈ [βˆ’2,2] and yi ∈ [0,4], rounded to one decimal point. Save your data set; you will need to submit it along with the rest of your work. Here is an example:
x βˆ’1.1 βˆ’0.9 1.3 1.7 βˆ’0.6 βˆ’0.5 βˆ’0.9 0.7 βˆ’1.2 βˆ’0.6
y 1.0 1.8 1.0 2.1 0.1 3.0 3.4 1.5 2.4 3.6
  • Load your data into R and make a scatterplot with x on the horizontal axis. Put the best-fit line on the graph.
  • Calculate the correlation coefficient and find the equation of the best-fit line.
  • Do you believe your variables are significantly correlated? Explain. Is this what you would expect, given the manner in which the data set was created?
  1. You run an experiment in which you roll a fair die repeatedly until you roll a 6 and observe how many rolls were required. You play this game 100 times and record the 100 observations.
    • What type of distribution does this data set have? Using the particular number for probability of success in this case, write the pdf and cdf formulas.
    • What is the probability that it takes you between 5 and 8 trials to roll a 6?
  2. A dispenser in a shopping centre releases on average 25 grams of jelly beans for a dollar. The weight released is normally distributed with variance 2 grams. If the machine is used 250 times in a week, about how many of those times will it release less than 23 grams?
  3. It is observed that an average of 7 out of every 10 diners at a restaurant order dessert after their meal. 20 diners are selected at random and polled.
    • Calculate the probability that 12 of them had dessert.
    • Calculate the probability that fewer than 17 of them had dessert.
  4. Construct a linear continuous pdf = 0 and demonstrate that it is a pdf, i.e. show that f(x) β‰₯ 0 for all x ∈ domf and = 1. Draw the graph of the

function and indicate its domain. Calculate the IQR of your function.

 

  • Assignment2-geqr1z.zip