Need help with 410 on Matlab Water samples are collected fro

Need help with 4-10 on Matlab

Water samples are collected from ten different locations along a beach, eight different slides of bacterial cultures are prepared from each water sample, and the number of bacteria on the slides is counted. The following table gives the resulting count data:

105      97        245      163      207      134      218      199

160      196      221      154      228      131      180      178

157      151      175      201      183      153      174      154

190      76        101      142      149      200      186      174

199      115      193      167      171      163      87        176

121      120      181      160      194      184      165      145

160      150      181      168      158      208      133      135

172      171      237      170      180      167      176      158

156      229      158      148      150      118      143      141

110      133      123      146      169      158      135      149

4) Divide the range into N = 10 equal-length segments (hereafter called “bins”), and for each bin, find its bounds (aj, bj) as well as its center cj.

(5) Place each measured bacterial count xi into that bin whose lower bound is less than or equal to xi and whose upper bound is greater than xi; thereafter, for each bin count the number of xi assigned to it (= nj).

(6) Plot a histogram of the measured bacterial counts using N = 10 bars.

            Try the MATLAB functions hist(x,N) and bar(c, n)

(7) Produce a vector Y of measured bacterial counts in which the counts are arranged in ascending order.

(8) Determine the median of measured bacterial counts (at the center of the sorted vector Y) by writing a script that is usable for both odd and even number of samples.

            Try the MATLAB function median(x).

(9) Define a random variable as the bacterial count on a single slide, and estimate (i.e., determine approximately) the probability mass function of this random variable evaluated at the bin centers cj.

(10) Estimate the (cumulative) probability distribution function of the same random variable, evaluated at the same points (i.e. argument values) cj.

Solution

Need help with 4-10 on Matlab Water samples are collected from ten different locations along a beach, eight different slides of bacterial cultures are prepared

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site