d) A random sample of size 36 was taken from a population distributed as Nμ,3.92.The value of the sample x was 15.6. i. Find a 90% confidence interval for μ. (5mks)
It is believed that value of μ is 17. Use your confidence interval to comment on this belief.(2mks)
x=33.2 , x2=131.67, y=30.78 , y2=116.52, xy=119.8 , and n=10
Q1.2: Explain the different methods for random media access control? (5 marks)
b). Seven students went on a diet in an attempt to lose weight, with two of them losing weight while all the others added weight. Is the diet is an effective way to losing weight α=1% (5mks)
c) Two judges in a beauty contest rank the ten competitors in the following order.
x 6 4 3 9 2 7 1 5 10 8
y 4 1 6 7 5 8 2 3 9 10
Do the two judges appear to agree in their standards? (6mks)
Differentiate among flow control mechanisms by taking suitable examples.
Develop a python application that will simulate a simple dice game by rolling two dice for the player as his bet followed by another roll of the two dice for the computer.
The mechanics as is follows:
1. If after the roll of the two dice, resulted to same number, then the sum will be doubled.
2. If the value of each dice is different, then just get the sum of the values of each dice.
Who gets the highest value wins the game.
I need the code to have an output stated above.
Develop a python application that will randomly select n integers from 1 to 9 and will count the number of occurrence of the numbers without using the Counter from collections library.
Sample Output 1:
How many numbers?: 5
[4, 6, 8, 3, 3]
1-4
1-6
2-3
I need the code to have an output stated above.
What do you think are the factors that affects the concept of beauty and self esteem of people nowadays?
Create a program that will String input. Based on the number of inputs, the user will decide what shape it is. (1 input – circle, 2 inputs – square or rectangle, 3 inputs - triangle). The program will then display the shape type, details, perimeter and area.
Justines-MacBook-Pro:classes Justine$ java-jar Shape.jar15
Type:Circle
Radius:15
Perimeter:94.2
Area:706.5
Justines-MacBook-Pro:classes Justine$ java-jar Shape.jar15
Type:Rectagle
Length:24
Width:12
Perimeter:72.0
Area:288.0
Justines-MacBook-Pro:classes Justine$ java-jar Shape.jar15
Type:Square
Side:12
Perimeter:48.0
Area:144.0
Justines-MacBook-Pro:classes Justine$ java-jar Shape.jar 9 15 12
Type:Triangle
Sides:9, 15, 12
Perimeter:36.0
Area:54.0
Justines-MacBook-Pro:classes Justine$ java-jar Shape.jar 9 15 12 8
Invalid input
Suppose a population is composed of only 3 measures: 1, 2, and 3. The possible samples of size 2 can be draw from this population. List all the possible sample size 2 when repetition is allowed or with replacement.
Using the numbers 2, 5, 7, 8, and 9 as the elements of the population, do the following:
Find the mean of the samples of size 2 (n=2)
Construct the sampling distribution of the sample means (SDSM).
Create a graph of the histogram of the SDSM.
Compute the Mean, Variance, and Standard Deviation of the SDSM.