Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

a) Many people already know how to find the mean (average) of a sample of data b

ID: 3160610 • Letter: A

Question

a) Many people already know how to find the mean (average) of a sample of data by "adding all the numbers and dividing by the number of values in the dataset."  Describe, in your own words, another method of finding the mean by using the sample space (list of possible values) and probabilities (the technique is in the book).  Create a list of seven, 2-digit numbers (with no duplicates) and another set of seven probabilities (with no duplicates).  The probabilities must add to 1.

Open R, and manually enter those numbers and their corresponding probabilities to calculate the mean using only addition and multiplication.

b) Describe in your own words what your calculation is doing and what the answer means.

Explanation / Answer

Here we have to find mean using R.

Describe, in your own words, another method of finding the mean by using the sample space (list of possible values) and probabilities (the technique is in the book). Create a list of seven, 2-digit numbers (with no duplicates) and another set of seven probabilities (with no duplicates). The probabilities must add to 1.

> x<-c(16,15,14,13,12,11,10)
> p<-c(0.142857,0.142857,0.142857,0.142857,0.142857,0.142857,0.142857)
> x=x*p
> x
[1] 2.285712 2.142855 1.999998 1.857141 1.714284 1.571427 1.428570
> a=sum(x)
> a
[1] 12.99999
> b=sum(p)
> b
[1] 0.999999

Here the average is 12.9999.