Question

In: Statistics and Probability

Using, for example, the command “=IF(RAND()<0,4;1;0)” in Excel, simulate 40 different realizations with n = 60...

Using, for example, the command “=IF(RAND()<0,4;1;0)” in Excel, simulate 40 different realizations with n = 60 and the true supporting rate to be 40%. In order to “freeze” the output generated by Excel, select the cells with all 0s and 1s values that have been randomly generated using the above mentioned command, copy them and paste them (using the paste special option) as values back on top of the cells. Then in each of the 40 different simulated “datasets” calculate Y, i.e. total number of 1s (voters). Finally create a histogram of your 40 values of Y .Calculate the mean,median,standart deviation and the mode....construct as well the frequency and discuss your findings.

Solutions

Expert Solution

SOLUTION:

Using the command "=IF(RAND()<0.4,1,0)", simulated 40 different realization each of n=60. Data consist of either 1 or 0.

Y is obtained by summing each column (i.e, 40 different realizations) which gives the total number of 1's in each column.

Y
25
23
20
30
13
24
28
19
28
28
25
26
19
21
27
27
30
22
28
29
21
26
27
33
22
22
17
18
23
17
21
23
26
24
28
25
29
25
27
18

Histogram

Steps of obtaining Histogram in Excel

1) Click on "Data". Then Click on " Data Analysis". Then Click " Histogram".

2) In the input range select "Y" data. In the Bin range select bin that you want. Bin is the interval in which you want your datapoint to be expressed in consecutive intervals such as 0-5,6-10, 11-15, etc.

BIN
15
20
25
30

3) Tick on "labels" if you included titles in the range and output range.

4) Select " Chart output". Then click "OK".

Output

BIN Frequency
15 1
20 7
25 15
30 16
More 1

Descriptive Statistics

Steps to obtain descriptive statistics in Excel

1) Click on "Data". Then Click on " Data Analysis". Then Click " Descriptive Statistics".

2) In the input range select "Y" data. Click on "Labels".

3) Click on "Summary Statistics".

Output

Y
Mean 24.1
Standard Error 0.685752
Median 25
Mode 28
Standard Deviation 4.337079
Sample Variance 18.81026
Kurtosis -0.17363
Skewness -0.40499
Range 20
Minimum 13
Maximum 33
Sum 964
Count 40

Frequency

How to construct a frequency plot

1) Define Bin and interval in which you want your data "Y".

2)First, select one column. Then at the first cell of the selected column, {=FREQUENCY(A2:A41,B2:B6)} where A2:A41 is the column in which we have "Y" and B2:B6 we have BIN values. Then press, CTRL + SHIFT + ENTER.

3) We will get the frequency as follows

BIN INTERVAL FREQUENCY
15 Under 15 1
20 16-20 7
25 21-25 15
30 26-30 16
35 Over 30 1
40

Frequency plot

Plot the frequency using Column Chart. Select the data Frequency and Interval.

Discussion

Frequency and Histogram look similar. The mean of the Y is 24.1 which gives the true supporting rate of 40 percent. If we calculate by hand in each realization to get a true supporting rate of 40 percent we want 24 1's out of 60. The mean, median and mode are different which imply data is not symmetry. From the histogram, also we can see the data is not symmetrical. It is negatively skewed. And Descriptive statistics gives skewness equal to -0.40499. The Standard Deviation is 4.337079.


Related Solutions

Using, for example, the command “=IF(RAND()<0,4;1;0)” in Excel, simulate 40 different realizations with n = 60...
Using, for example, the command “=IF(RAND()<0,4;1;0)” in Excel, simulate 40 different realizations with n = 60 and the true supporting rate to be 40%. In order to “freeze” the output generated by Excel, select the cells with all 0s and 1s values that have been randomly generated using the above mentioned command, copy them and paste them (using the paste special option) as values back on top of the cells. Then in each of the 40 different simulated “datasets” calculate...
3. Only using the runif function with default settings, generate: (a) n = 1e4 iid realizations...
3. Only using the runif function with default settings, generate: (a) n = 1e4 iid realizations from a Bernoulli distribution with probability of success parameter, θ = 0.7. (b) n = 1e4 iid realizations from a Binomial distribution with probability of success parameter, θ = 0.7 and number of trials= 20. (c) n = 1e4 iid realizations from an Exponential distribution with mean µ = 7 (hint: if X ~ Exp(µ) then Var(X) = µ2 ). For each case comment...
a. A mixture of 60 mol % n-proplycyclohexane and 40 mol % n-propylbenzene is distilled through...
a. A mixture of 60 mol % n-proplycyclohexane and 40 mol % n-propylbenzene is distilled through a simple distillation apparatus; assume that no fractionation occurs during the distillation. The boiling temperature is found to be 157 °C (760 torr) as the first small amount of distillate is collected. The standard vapor pressures of n-propylcyclohexane and n-propylbenzene are known to be 769 torr and 725 torr, respectively, at 157.3 °C. Calculate the percentage of each of the two components in the...
• Develop an "Echo" command that returns the parameters on different lines. Example: For input "$...
• Develop an "Echo" command that returns the parameters on different lines. Example: For input "$ Java Echo Hello world!" The answer will be: "Hello world ! ” using java programming language
A distillation column receives a feed that is 40 mole % n-pentane and 60 mole %...
A distillation column receives a feed that is 40 mole % n-pentane and 60 mole % n-hexane. The feed is saturated liquid at 2,500 lbmol/hr. The column is at 1 atm. A distillate that is 97 mole % n-pentane is desired. A total condenser is used. The reflux is a saturated liquid. The external reflux ratio is L0/D = 3. The bottoms from the partial reboiler is 2 mole % n-pentane. Determine the intersection (xq, yq) of the q-line with...
100 moles/min of a mixture of 40 mol% n-pentane and 60 mol% n-heptane are fed through...
100 moles/min of a mixture of 40 mol% n-pentane and 60 mol% n-heptane are fed through a valve into a flash tank. The flash tank operates at 600 mmHg. A T-xy diagram is provided on the next page. (a) Determine the bubble point and dew point of the feed mixture at 600 mmHg. (b) If the flash tank is operating at 60 0C determine; a. the compositions of the streams leaving the flash tank b. the flow rate in liters/min...
You will be finding probabilities using excel. Use the Excel instructions for Binomial Distribution (=BINOMDIST(x, n,...
You will be finding probabilities using excel. Use the Excel instructions for Binomial Distribution (=BINOMDIST(x, n, p, true or false)) False is equivalent to binompdf. True is equivalent to binomcdf. Show in excel! a.) P(x ≤ 6), n = 20, p = .8 b.) P(x < 4), n = 20, p = .15 c.) P(x ≥ 14), n = 30, p = .35 d.) State which part is unusual.
Using the data set below: Score Frequency 20-30 5 30-40 8 40-50 13 50-60 12 60-70...
Using the data set below: Score Frequency 20-30 5 30-40 8 40-50 13 50-60 12 60-70 5 Draw a Histogram Draw a polygon After listening to YouTube “histogram and polygon,” explain how histogram is different and similar to polygon.
Exercise 1: The example exercise is to work through a loan amortization example using Excel. Open...
Exercise 1: The example exercise is to work through a loan amortization example using Excel. Open Activity 3-Workbook. Go to Exercise 1 worksheet. The example loan conditions are (enter these values under Loan Terms):                                                             Loan amount borrowed (principal or pv) $100,000                                                             Loan interest (rate) is 7.5%                                                             Loan term (number of payments or nper) is 9 years                                                             Annual payments of principal and interest       Calculate the annual loan payment in cell C7 using the PMT function in...
Firm A purchases $150,000 in inventory using 40% cash and 60% Accounts Payable. Which of the...
Firm A purchases $150,000 in inventory using 40% cash and 60% Accounts Payable. Which of the following statements is false? Firm A's shareholder equity was unaffected Firm A's current assets decreased by $60,000 Firm A's inventory increased by $150,000 Firm A's liabilities increased by $90,000 2. A client purchases $200,000 worth of goods and pays 25% cash. Which of the following statements is true? Current assets increase by $200,000 Liabilities increase by $150,000 Shareholder’s equity increases by $50,000 Account receivable...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT