Question

In: Statistics and Probability

In order to map whether the salmon in a cage in a farm is approaching the...

In order to map whether the salmon in a cage in a farm is approaching the harvesting mode, a random sample has been made where we have weighed 10 randomly selected salmon in the cage. The result (in kg) was:
3.3 3.6 3.7 3.9 1.6 3.4 3.8 3.8 4.1 3.9
a) Enter the numbers in a data vector in R, and then calculate the mean, median, sample variance
and sample standard deviations of the data.
b) Create a box plot and histogram of the data.
It turned out that one salmon that was much smaller than the others was sick. Therefore, it is chosen to remove this from the data so that the data becomes representative of healthy salmon in the cage.
c) Calculate the mean, median, sample variance and sample standard deviation of the data without the least value.
Comment on differences and similarities between the results you get now and the results you got in point a).

Solutions

Expert Solution

Ans:Here I have given the R output also I have attached the code at the last.

 > x=c(3.3,3.6,3.7,3.9,1.6,3.4,3.8,3.8,4.1,3.9) #Given sample of salmon in the cage > length(x) [1] 10
 

a)

 > m=mean(x) > m #mean of the sample [1] 3.51 > md=median(x) > md #median of the sample [1] 3.75 > v=var(x) > v #sample varience of the sample [1] 0.5076667 > sd=sd(x) > sd #standard deviation of the sample [1] 0.7125073

b)

 > boxplot(x) #it gives the boxplot of the given data

 > hist(x) #it gives the histogram of the given data

Here note that minimum value is seems to be outlier in the data.

c)

now we have to remove the least value by considering it as a sick(outlier)

 > a=min(x) > a #remove this value [1] 1.6 > x1=c(3.3,3.6,3.7,3.9,3.4,3.8,3.8,4.1,3.9) > length(x1) [1] 9 > m1=mean(x1) > m1 #it gives the mean by removing least value [1] 3.722222
 > md1=median(x1) > md1 #it gives the median by removing the least value [1] 3.8 > v1=var(x1) > v1 #it gives the varience by removing least value [1] 0.06444444 > sd1=sd(x1) > sd1 #it gives the standard deviation by removing least value [1] 0.2538591 > #we can tabulte the our result as: > statistics=c("mean","median","varience","standard deviation") > output.all=c(m,md,v,sd) #statistic with all value > output.noleast=c(m1,md1,v1,sd1) #statistic without least value > d=data.frame(statistics,output.all,output.noleast) > d  statistics output.all output.noleast 1 mean 3.5100000 3.72222222 2 median 3.7500000 3.80000000 3 varience 0.5076667 0.06444444 4 standard deviation 0.7125073 0.25385910

Here note that mean , median are seems to be increased by removing the least observation from the data. The least observation is seems to be outlier. Hence after removing it varience and standard deviation is decreased significantly.

###########################################################

R code:

x=c(3.3,3.6,3.7,3.9,1.6,3.4,3.8,3.8,4.1,3.9) #Given sample of salmon in the cage
length(x)
#a)
m=mean(x)
m             #mean of the sample
md=median(x)
md            #median of the sample
v=var(x)
v             #sample varience of the sample
sd=sd(x)
sd           #standard deviation of the sample

#b)
boxplot(x) #it gives the boxplot of the given data

hist(x)     #it gives the histogram of the given data
#here note that minimum value is seems to be outlier in the data.
#now we have to remove the least value by considering it as a sick(outlier)
a=min(x)
a   #remove this value
x1=c(3.3,3.6,3.7,3.9,3.4,3.8,3.8,4.1,3.9)
length(x1)
m1=mean(x1)
m1   #it gives the mean by removing least value

md1=median(x1)
md1 #it gives the median by removing the least value

v1=var(x1)
v1   #it gives the varience by removing least value

sd1=sd(x1)
sd1 #it gives the standard deviation by removing least value

#we can tabulte the our result as:
statistics=c("mean","median","varience","standard deviation")
output.all=c(m,md,v,sd)
output.noleast=c(m1,md1,v1,sd1)
d=data.frame(statistics,output.all,output.noleast)
d


Related Solutions

You are performing a three-point test cross in order to map the order and distance between...
You are performing a three-point test cross in order to map the order and distance between three genes, designated X, Y, and Z, and you obtain the following results: Phenotypes      Number Observed + Y +                          1 + + Z                          72 X + Z                           2 X Y +                           70 X + +                          3 + Y Z                         2 X Y Z                           0 + + +                          0 Which gene is in the middle? a) X b) Y c) Z d)...
The MacDonalds are at the bank in order to negotiate a loan to buy a farm...
The MacDonalds are at the bank in order to negotiate a loan to buy a farm where they can raise cows, horses, chickens sheep and plant spaghetti trees. They have managed to save $400,000 over the last 10 years that they can use as a down payment. The MacDonalds would like to finance their purchase over 25 years making monthly payments. According to their financial planning schedule, they will clear $7,500 a month and would like their mortgage payments to...
Deletions can be used to map genes along a chromosome. In order to do this a...
Deletions can be used to map genes along a chromosome. In order to do this a series of crosses in which one parent is homozygous for a mutant allele is crossed with the other parent that is homozygous for a partial deletion of the region. The progeny are scored to determine whether they have the mutant phenotype ("m") or the wild-type phenotype ("+"). If a mutation falls within the deletion it will have the "m" phenotype, if it falls outside...
Genes A, B, and C are located on the same chromosome with following order. Linkage map...
Genes A, B, and C are located on the same chromosome with following order. Linkage map distances among them are 11cM between A and B and 34cM between B and C. 1. When two parental genotypes were ABC/abc and abc/abc and there were 500 offspring, what would be the possible/expected genotypes and their numbers among the offspring? Assume there was no interference.
Genes A, B, and C are located on the same chromosome with following order. Linkage map...
Genes A, B, and C are located on the same chromosome with following order. Linkage map distances among them are 11cM between A and B and 34cM between B and C. 1. When two parental genotypes were ABC/abc and abc/abc and there were 500 offspring, what would be the possible/expected genotypes and their numbers among the offspring? Assume there was no interference. 1. When I=35%, what would be the numbers of recombinant phenotypes and parental phenotypes among progenies from the...
Jim Mead is a veterinarian who visits a Vermont farm to examine prize bulls. In order...
Jim Mead is a veterinarian who visits a Vermont farm to examine prize bulls. In order to examine a bull, Jim first gives the animal a tranquilizer shot. The effect of the shot is supposed to last an average of 65 minutes, and it usually does. However, Jim sometimes gets chased out of the pasture by a bull that recovers too soon, and other times he becomes worried about prize bulls that take too long to recover. By reading journals,...
Jim Mead is a veterinarian who visits a Vermont farm to examine prize bulls. In order...
Jim Mead is a veterinarian who visits a Vermont farm to examine prize bulls. In order to examine a bull, Jim first gives the animal a tranquilizer shot. The effect of the shot is supposed to last an average of 65 minutes, and it usually does. However, Jim sometimes gets chased out of the pasture by a bull that recovers too soon, and other times he becomes worried about prize bulls that take too long to recover. By reading journals,...
Jim Mead is a veterinarian who visits a Vermont farm to examine prize bulls. In order...
Jim Mead is a veterinarian who visits a Vermont farm to examine prize bulls. In order to examine a bull, Jim first gives the animal a tranquilizer shot. The effect of the shot is supposed to last an average of 65 minutes, and it usually does. However, Jim sometimes gets chased out of the pasture by a bull that recovers too soon, and other times he becomes worried about prize bulls that take too long to recover. By reading journals,...
Jim Mead is a veterinarian who visits a Vermont farm to examine prize bulls. In order...
Jim Mead is a veterinarian who visits a Vermont farm to examine prize bulls. In order to examine a bull, Jim first gives the animal a tranquilizer shot. The effect of the shot is supposed to last an average of 65 minutes, and it usually does. However, Jim sometimes gets chased out of the pasture by a bull that recovers too soon, and other times he becomes worried about prize bulls that take too long to recover. By reading journals,...
Jim Mead is a veterinarian who visits a Vermont farm to examine prize bulls. In order...
Jim Mead is a veterinarian who visits a Vermont farm to examine prize bulls. In order to examine a bull, Jim first gives the animal a tranquilizer shot. The effect of the shot is supposed to last an average of 65 minutes, and it usually does. However, Jim sometimes gets chased out of the pasture by a bull that recovers too soon, and other times he becomes worried about prize bulls that take too long to recover. By reading journals,...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT