Questions
6. One hundred draws will be made at random with replacement from the box [1 6...

6. One hundred draws will be made at random with replacement from the box

[1 6 7 9 9 10]

PART I:

a) Find the expected value and the standard error for the sum of 100 draws

b) The sum of 100 draws is between 650 and 750 with a chance of about

            1%       10%     50%     90%     99%

Show work for your answer by drawing the normal curve.

PART II:

a) Find the expected value and the standard error for the percentage of tickets marked by “9” in 100 draws. Make a box model.

a) What is the chance that the percentage of tickets marked by “9” is less than 40% ?

Show work using the normal curve.

In: Statistics and Probability

A Roman numeral represents an integer using letters. Examples are XVII to represent 17, MCMLIII for...

A Roman numeral represents an integer using letters. Examples are XVII to represent 17, MCMLIII for 1953, and MMMCCCIII for 3303. By contrast, ordinary numbers such as 17 or 1953 are called Arabic numerals. The following table shows the Arabic equivalent of all the single-letter Roman numerals:
M 1000 X 10
D 500 V 5
C 100 I 1
L 50
When letters are strung together, the values of the letters are just added up, with the following exception. When a letter of smaller value is followed by a letter of larger value, the smaller value is subtracted from the larger value. For example, IV represents 5 - 1, or 4. And MCMXCV is interpreted as M + CM + XC + V, or 1000 + (1000 - 100) + (100 - 10) + 5, which is 1995. In standard Roman numerals, no more than three consecutive copies of the same letter are used. Following these rules, every number between 1 and 3999 can be represented as a Roman numeral made up of the following one- and two-letter combinations:
M 1000 X 10
CM 900 IX 9
D 500 V 5
CD 400 IV 4
C 100 I 1
XC 90
L 50
XL 40
Write a Python code with a class to represent Roman numerals. The class should have two constructors. One named “toArabic” constructs a Roman numeral from a string like "XVII" to “seventeen” or "MCMXCV" to “one thousand nine hundred ninety-five”. It should throw an exception if the string is not a legal Roman numeral. The other constructor named “toInt” constructs a Roman numeral to an integer such as "XVII" to “17” or "MCMXCV" to “1995”. It should throw an exception if the integer result is outside the range 1 to 3999.

In: Computer Science

1. Create a PHP page with standard HTML tags. Remember to save the file with the...

1. Create a PHP page with standard HTML tags. Remember to save the file with
the .php extension.
Inside the <body> tag, create a PHP section that will show the text "Hello
World!"
2. For this exercise, echo the phrase "Twinkle, Twinkle little star." Create
two variables, one for the word "Twinkle" and one for the word "star". Echo
the statement tothe browser.
3. PHP includes all the standard arithmetic operators. For this PHP
exercise, you will use them along with variables to print equations to the
browser. In your script, create the following variables:
$x=10;
$y=7;
Write code to print out the following:
10 + 7 = 17
10 - 7 = 3
10 * 7 = 70
10 / 7 = 1.4285714285714
10 % 7 = 3
Use numbers only in the above variable assignments, not in the echo
statements. You will need a third variable as well.
Note: this is intended as a simple, beginning exercise, not using arrays or
loops.
4. Arithmetic-assignment operators perform an arithmetic operation on the
variable at the same time as assigning a new value. For this PHP exercise,
write a script to reproduce the output below. Manipulate only one variable
using no simple arithmetic operators to produce the values given in the
statements.
Hint: In the script each statement ends with "Value is now $variable."
Value is now 8.
Add 2. Value is now 10.
Subtract 4. Value is now 6.
Multiply by 5. Value is now 30.
Divide by 3. Value is now 10.
Increment value by one. Value is now 11.
Decrement value by one. Value is now 10.

In: Computer Science

Someone gets more than 8 hours of sleep 50 percent of the time, less than 3...

Someone gets more than 8 hours of sleep 50 percent of the time, less than 3 hours 30 percent of the time, and 3-8 hours (inclusive) 20 percent of the time. when they sleep more than 8 hours, forty percent of the time they score really well. when they get less than 3 hours, 20 percent of the time they score really well. when they get 3-8 hours inclusive they score really well 40 percent of the time. what is their overall probability of scoring really well?

In: Statistics and Probability

Female Health Data Looking at the correlation matrix identify one good and one bad regression pair...

Female Health Data Looking at the correlation matrix identify one good and one bad regression pair and conduct detailed regression analysis with all explanations similar to example from Ch 18 repeated below
Data>Data Analysis ToolBox>Correlation Data>Data Analysis ToolBox> Regression
AGE HT WT WAIST PULSE SYS DIAS CHOL BMI LEG ELBOW WRIST ARM
17 64.3 114.8 67.2 76 104 61 264 19.6 41.6 6 4.6 23.6
32 66.4 149.3 82.5 72 99 64 181 23.8 42.8 6.7 5.5 26.3
25 62.3 107.8 66.7 88 102 65 267 19.6 39 5.7 4.6 26.3
55 62.3 160.1 93 60 114 76 384 29.1 40.2 6.2 5 32.6
27 59.6 127.1 82.6 72 94 58 98 25.2 36.2 5.5 4.8 29.2
29 63.6 123.1 75.4 68 101 66 62 21.4 43.2 6 4.9 26.4
25 59.8 111.7 73.6 80 108 61 126 22 38.7 5.7 5.1 27.9
12 63.3 156.3 81.4 64 104 41 89 27.5 41 6.8 5.5 33
41 67.9 218.8 99.4 68 123 72 531 33.5 43.8 7.8 5.8 38.6
32 61.4 110.2 67.7 68 93 61 130 20.6 37.3 6.3 5 26.5
31 66.7 188.3 100.7 80 89 56 175 29.9 42.3 6.6 5.2 34.4
19 64.8 105.4 72.9 76 112 62 44 17.7 39.1 5.7 4.8 23.7
19 63.1 136.1 85 68 107 48 8 24 40.3 6.6 5.1 28.4
23 66.7 182.4 85.7 72 116 62 112 28.9 48.6 7.2 5.6 34
40 66.8 238.4 126 96 181 102 462 37.7 33.2 7 5.4 35.2
23 64.7 108.8 74.5 72 98 61 62 18.3 43.4 6.2 5.2 24.7
27 65.1 119 74.5 68 100 53 98 19.8 41.5 6.3 5.3 27
45 61.9 161.9 94 72 127 74 447 29.8 40 6.8 5 35
41 64.3 174.1 92.8 64 107 67 125 29.7 38.2 6.8 4.7 33.1
56 63.4 181.2 105.5 80 116 71 318 31.7 38.2 6.9 5.4 39.6
22 60.7 124.3 75.5 64 97 64 325 23.8 38.2 5.9 5 27
57 63.4 255.9 126.5 80 155 85 600 44.9 41 8 5.6 43.8
24 62.6 106.7 70 76 106 59 237 19.2 38.1 6.1 5 23.6
37 60.6 149.9 98 76 110 70 173 28.7 38 7 5.1 34.3
59 63.5 163.1 104.7 76 105 69 309 28.5 36 6.7 5.1 34.4
40 58.6 94.3 67.8 80 118 82 94 19.3 32.1 5.4 4.2 23.3
45 60.2 159.7 99.3 104 133 83 280 31 31.1 6.4 5.2 35.6
52 67.6 162.8 91.1 88 113 75 254 25.1 39.4 7.1 5.3 31.8
31 63.4 130 74.5 60 113 66 123 22.8 40.2 5.9 5.1 27
32 64.1 179.9 95.5 76 107 67 596 30.9 39.2 6.2 5 32.8
23 62.7 147.8 79.5 72 95 59 301 26.5 39 6.3 4.9 31
23 61.3 112.9 69.1 72 108 72 223 21.2 36.6 5.9 4.7 27
47 58.2 195.6 105.5 88 114 79 293 40.6 27 7.5 5.5 41.2
36 63.2 124.2 78.8 80 104 73 146 21.9 38.5 5.6 4.7 25.5
34 60.5 135 85.7 60 125 73 149 26 39.9 6.4 5.2 30.9
37 65 141.4 92.8 72 124 85 149 23.5 37.5 6.1 4.8 27.9
18 61.8 123.9 72.7 88 92 46 920 22.8 39.7 5.8 5 26.5
29 68 135.5 75.9 88 119 81 271 20.7 39 6.3 4.9 27.8
48 67 130.4 68.6 124 93 64 207 20.5 41.6 6 5.3 23
16 57 100.7 68.7 64 106 64 2 21.9 33.8 5.6 4.6 26.4

In: Statistics and Probability

Triple J Construction Firm had put up for sale of some of their heavy equipments for...

Triple J Construction Firm had put up for sale of some of their heavy equipments for construction works. There were two interested buyers submitting their respective bids for the heavy equipments. The bids are as follows: Buyer A offers P10,000,000 payable 20% downpayment, the balance payable P1,000,000 annually for 8 years. Buyer B offers P9,000,000 payable P2,000,000 down payment, the balance payable P500,000 semi-annually for 7 years. How much is the difference between the two bids if money is worth 10% effective?

In: Economics

Use alpha= 0.05 to test the following time series for positive autocorrelation. Period   Sales 1   2...

Use alpha= 0.05 to test the following time series for positive autocorrelation.

Period   Sales
1   2
2   5
3   9
4   6
5   6
6   9
7   10
8   12
9   10
10   13
11   18
12   11
13   13
14   13
15   14

a) Determine the​ Durbin-Watson statistic.

​(Round to two decimal places as​ needed.)

b) Identify the critical values.

dL=

dU=

​(Round to two decimal places as​ needed.)

In: Statistics and Probability

true or false all of them 6. The four components managed by an OS are Main...

true or false all of them

6. The four components managed by an OS are Main Memory, System Bus, Processor (CPU),
and I/O Modules.

7.Every (Unix or Linux) process has its own unique PID (process ID).

8. Two different (Unix or Linux) processes can have the same PID.

9. Two different (Unix or Linux) processes can have the same PPID (parent process ID).

10. Process management code in the kernel is always executed in kernel mode.

In: Computer Science

Consider a transportation problem, shipping a product from two sources to two customers. The following table...

Consider a transportation problem, shipping a product from two sources to two customers. The following table shows the data.

Write a LP model for this problem to minimize the shipping cost (unit in $) while satisfying the demand for each customer and supply for each source. You don’t need to solve your LP model. I just need a LP model only.

Customer1

Customer2

Supply

Source 1

$8/unit

15

15

Source 2

11

7

20

Demand

12

23

In: Operations Management

There are at least 10 errors in the following C program. For each error you can...

There are at least 10 errors in the following C program. For each error you can find you should list the location of the error, describe what the error is, and state how the error can be fixed (write updated code for that line if necessary). Each error you find is worth 1.5 marks. Note that missing brackets, braces, etc count as only one error, even though the missing brackets may occur at two places.

The program is supposed to perform the following task: Read a list of names and heights from a file called “heights.txt”. Each line of the file contains a single name (one word, 50 chars max) and an integer value representing that person’s height in cm. These names and heights should be stored in two arrays, with a maximum size of 1000. Once this is done, the user should be asked to enter a minimum and maximum height (in cm), and the program should display all people whose heights fall between those values (inclusive). If a zero is entered for either criteria, then that criteria is not checked. For example, if the user enters 0 for the maximum height, then there is no maximum value and all people above the minimum height will be listed. If both values are zero then all people will be listed. The names and heights should be displayed one per line, with the name first followed by a colon, then the height in cm. At the end of the program the total number of people matching the search criteria should be displayed as well.

1 #include <stdio.h>
2
3 int main ( void ){
4
5    int heights[1000], i, n = 0, total = 0, min, max ;
6       char names[50][1000] ;   
7 file *fp ;
8
9       fp = fopen ( "heights.txt", "w" ) ;
10       if ( fp == NULL ){
11          printf ( "Cannot open heights.txt for reading\n" ) ;
12          exit ( -1 ) ;
13       }
14       while (n<1000 && scanf("%c %d",names[n],&heights[n])!=EOF){
15          n++ ;   
16       }
17
18       printf ( "Enter minimum height to display: " ) ;
19 scanf ( "%d", &min ) ;
20       printf ( "Enter maximm height to display: " ) ;
21       scanf ( "%d", &max ) ;
22
23 for ( i = 0 , i <= n , i++ ){
24 if ((heights[i]>=min || min==0)|| (heights[i]<=max || max==0)){
25 // display the person and height
26 printf ( "%c: %dcm\n", names[i][50], heights[i] ) ;
27   }
28 }
29 printf ( "Total matches: %d\n", total ) ;
30 return (0);
31 }

In: Computer Science