Question

In: Statistics and Probability

roblem 1) Try creating 100 normally disributed random numbers with an average of 10 and standard...

roblem 1) Try creating 100 normally disributed random numbers with an average of 10 and standard deviation of 1. How close is the average to 10? How close is the standard deviation to 1?

Problem 2) Try creating 100 normally disributed random numbers with a true average of 10 and true standard deviation of 1. What is the confidence interval for the measured average? Is it higher or lower than the confidence interval for 20 samples?

Solutions

Expert Solution

1.
TRADITIONAL METHOD
given that,
sample mean, x =20
standard deviation, s =1
sample size, n =100
I.
standard error = sd/ sqrt(n)
where,
sd = standard deviation
n = sample size
standard error = ( 1/ sqrt ( 100) )
= 0.1
II.
margin of error = t α/2 * (standard error)
where,
ta/2 = t-table value
level of significance, α = 0.05
from standard normal table, two tailed value of |t α/2| with n-1 = 99 d.f is 1.984
margin of error = 1.984 * 0.1
= 0.198
III.
CI = x ± margin of error
confidence interval = [ 20 ± 0.198 ]
= [ 19.802 , 20.198 ]
-----------------------------------------------------------------------------------------------
DIRECT METHOD
given that,
sample mean, x =20
standard deviation, s =1
sample size, n =100
level of significance, α = 0.05
from standard normal table, two tailed value of |t α/2| with n-1 = 99 d.f is 1.984
we use CI = x ± t a/2 * (sd/ Sqrt(n))
where,
x = mean
sd = standard deviation
a = 1 - (confidence level/100)
ta/2 = t-table value
CI = confidence interval
confidence interval = [ 20 ± Z a/2 ( 1/ Sqrt ( 100) ]
= [ 20-(1.984 * 0.1) , 20+(1.984 * 0.1) ]
= [ 19.802 , 20.198 ]
-----------------------------------------------------------------------------------------------
interpretations:
1) we are 95% sure that the interval [ 19.802 , 20.198 ] contains the true population mean
2) If a large number of samples are collected, and a confidence interval is created
for each sample, 95% of these intervals will contains the true population mean

2.
TRADITIONAL METHOD
given that,
sample mean, x =20
standard deviation, s =1
sample size, n =20
I.
standard error = sd/ sqrt(n)
where,
sd = standard deviation
n = sample size
standard error = ( 1/ sqrt ( 20) )
= 0.224
II.
margin of error = t α/2 * (standard error)
where,
ta/2 = t-table value
level of significance, α = 0.05
from standard normal table, two tailed value of |t α/2| with n-1 = 19 d.f is 2.093
margin of error = 2.093 * 0.224
= 0.468
III.
CI = x ± margin of error
confidence interval = [ 20 ± 0.468 ]
= [ 19.532 , 20.468 ]
-----------------------------------------------------------------------------------------------
DIRECT METHOD
given that,
sample mean, x =20
standard deviation, s =1
sample size, n =20
level of significance, α = 0.05
from standard normal table, two tailed value of |t α/2| with n-1 = 19 d.f is 2.093
we use CI = x ± t a/2 * (sd/ Sqrt(n))
where,
x = mean
sd = standard deviation
a = 1 - (confidence level/100)
ta/2 = t-table value
CI = confidence interval
confidence interval = [ 20 ± Z a/2 ( 1/ Sqrt ( 20) ]
= [ 20-(2.093 * 0.224) , 20+(2.093 * 0.224) ]
= [ 19.532 , 20.468 ]
-----------------------------------------------------------------------------------------------
interpretations:
1) we are 95% sure that the interval [ 19.532 , 20.468 ] contains the true population mean
2) If a large number of samples are collected, and a confidence interval is created
for each sample, 95% of these intervals will contains the true population mean

conclusion :
1.
we are 95% sure that the interval [ 19.802 , 20.198 ]
2.
we are 95% sure that the interval [ 19.532 , 20.468 ]
In the second one sample size is 20 so that lower interval is lower than first one but upper interval
is higher than the first one .


Related Solutions

Problem 1) Try creating 100 normally disributed random numbers with an average of 10 and standard...
Problem 1) Try creating 100 normally disributed random numbers with an average of 10 and standard deviation of 1. How close is the average to 10? How close is the standard deviation to 1? Problem 2) Try creating 100 normally disributed random numbers with a true average of 10 and true standard deviation of 1. What is the confidence interval for the measured average? Is it higher or lower than the confidence interval for 20 samples?
1.) Generate an array of 10 random numbers between 1 - 100 2.) Copy the array...
1.) Generate an array of 10 random numbers between 1 - 100 2.) Copy the array to a temp array 3.) Call each of the methods to sort (bubble, selection, insertion, quick, merge), passing it the array 4.) In-between the calls, you are going to refresh the array to the original numbers. 5.) Inside of each sorting method, you are going to obtain the nanoseconds time, before and after the method Subtract the before time from the after time to...
To generate 100 random numbers between 1-100 in a randomData.txt file To read the 100 random...
To generate 100 random numbers between 1-100 in a randomData.txt file To read the 100 random numbers from randomData.txt and store them in an array Print the data in the array Find the smallest and the largest of the random numbers and their array position Insert an element of value100 in the 51th position of the array Delete all the elements of the array having values between 50-80 and print the residual array Sort the data in the final array(residual)...
1. Lets start by creating a traditional random password composed of numbers, letters, and a few...
1. Lets start by creating a traditional random password composed of numbers, letters, and a few special characters. letters = "abcdefghijklmnopqrstuvwxyz" caps = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" numbers = "1234567890" # Make an 8 letter password by combining characters from the three strings 2. Next you follow the XKCD model of selecting four random words and concatenating them together to for our password. nouns = ['tissue', 'processor', 'headquarters', 'favorite', 'cure', 'ideology', 'funeral', 'engine', 'isolation', 'perception', 'hat', 'mountain', 'session', 'case', 'legislature', 'consent', 'spread', 'shot',...
Suppose that IQ is normally distributed with mean of 100 and standard deviation of 10. Compute...
Suppose that IQ is normally distributed with mean of 100 and standard deviation of 10. Compute the following: What is the probability that a randomly selected individual has IQ greater than 115? (2 pts) What is the probability that a randomly selected individual has IQ between 90 and 100? (3 pts)
Reaction times are normally distributed with mean 100 seconds and standard deviation of 10 seconds.   a)...
Reaction times are normally distributed with mean 100 seconds and standard deviation of 10 seconds.   a) What is the probability that a randomly chosen individual has reaction time of more than 45 seconds? b) In a random sample of 36 individuals from the above population of reaction times, what is the probability that the sample mean reaction time is more than 45 seconds
Generate 1000 random numbers from ??3? starting with standard normal random numbers in R.
Generate 1000 random numbers from ??3? starting with standard normal random numbers in R.
Score (X) on a 100-point test is normally distributed with mean 89 and standard deviation 10.                           
Score (X) on a 100-point test is normally distributed with mean 89 and standard deviation 10.                                                          What is the following probability: P(85 < X < 95) You took a sample of 25 students from the population in I. What is the following probability:                P(85 < Xbar < 95)
Generate 1000 random numbers from ??2, 5? starting with standard normal random numbers in R.
Generate 1000 random numbers from ??2, 5? starting with standard normal random numbers in R.
Write a Java program that creates an array with 20 random numbers between 1 and 100,...
Write a Java program that creates an array with 20 random numbers between 1 and 100, and passes the array to functions in order to print the array, print the array in reverse order, find the maximum element of the array, and find the minimum element of the array. The prototype of the methods: public static void printArray(int arr[]) public static void printArrayReverse(int arr[]) public static int searchMax(int arr[]) public static int searchMin(int arr[]) Sample output: Random Array: [17 67...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT