Complete the following chi square test:
Show All Work.
Example Chi Sq.
40% of Americans say that their favorite pastime is sports, 40% say that it’s time with their family, and 20% name something else. A survey of your neighborhood finds that 10 people report a preference for sports, 15 for being with their families, and 5 something else. Do your neighbors differ from Americans overall?
| Activity | Observed | Expected | EF | O-E | (O-E)2 | (O-E)2/E |
|
Sport |
10 |
.4 | 12 | -2 | 4 | .33 |
| Family | 15 | .4 | 12 | 3 | 9 | .75 |
| Other | 5 | .2 | 6 | -1 | 1 | .17 |
| 30 |
2 = ∑ (O-E)2/E = 1.25 |
Is Paris, Chicago, or NY the most romantic city?
| City | Observed | Expected | EF |
O-E |
(O-E)2 | (O-E)2/E |
| Chicago | 2 | .33 | ||||
| New York | 40 | .33 | ||||
| Paris | 58 | .33 | ||||
| 100 | 2 = ∑ (O-E)2/E = |
Please show all steps.
In: Statistics and Probability
1. Kevin Stefanski wanted to see if there is a relationship between the number of penalties the Cleveland Browns players receive a year and the number of presents they receive for the holidays. He takes a random sample of nine players. The data is presented in the table below.
|
Number of Penalties (X) |
X2 |
Number of Presents (Y) |
Y2 |
XY |
|
0 |
0 |
15 |
225 |
0 |
|
4 |
16 |
2 |
4 |
8 |
|
5 |
25 |
5 |
25 |
25 |
|
0 |
0 |
13 |
169 |
0 |
|
16 |
256 |
1 |
1 |
16 |
|
8 |
64 |
3 |
9 |
24 |
|
42 |
1,764 |
2 |
4 |
84 |
|
1 |
1 |
80 |
6,400 |
80 |
|
10 |
100 |
37 |
1,369 |
370 |
|
ΣX = 86 |
ΣX2 = 2,226 |
ΣY = 158 |
ΣY2 = 8,206 |
ΣXY = 607 |
1A. Conduct a hypothesis test using the following steps. Set alpha = 0.05, two-tailed.
Step 1: State the hypotheses in symbols (including both H0and H1).
Step 2: Set up the criteria for making the decision. That is, find the critical value.
Step 3: Summarize the data into the appropriate test-statistic. That is, compute the correlation.
Step 4: Evaluate the Null Hypothesis (Reject or Fail to Reject?).
Step 5: State your conclusion (in words).
1B. What proportion of variability of number of presents received can be explained by the variability of number of penalties?
In: Statistics and Probability
answer in basic JAVA im in and INTRO JAVA CLASS
Problem 2: Point of Sale System
The McDowell Restaurant chain has asked you to write a menu program
for their new Fast-food
service machines. Your program already prints the following menu
like this:
**********************************************************************
McDowell’s Restaurant
**********************************************************************
Make your selection from the menu below:
1. Regular Hamburger $1.50
2. Regular Cheeseburger $1.75
3. Fish Sandwich $2.50
4. Half-pounder with cheese $2.75
5. French Fries $0.99
6. Large Soft Drink $1.25
***********************************************************************
Select 1, 2, 3, 4, 5, or 6 ----- >
Your program must now read the customer’s selection and compute the
total price of their
purchase, including 6.5% sales tax.
Input
The first line of input represents N, the number of test cases. The
additional lines consists of a
sequence of integers scoped between 1 to 6. Each number should
indicate a selection from the
above menu to be purchased.
Output
The program should print the sum of the orders plus tax as “Please
pay $<dollars>”, where
<dollar> is the total amount of the purchase then conclude
with “Thank you for eating at
McDowell’s”.
Sample Input Sample Output
1
1 4 4 5 3 1 Please pay $12.77
Thank you for eating at McDowell’s!
In: Computer Science
Dr. Lee now wants to generate a random sample of size 10,000 from the F distribution with df1 = 1 and df2 = 4 degrees of freedom. But he doesn’t remember the probability density function (pdf) of the F distribution at all. Fortunately, he knows the relationship between t distribution and F distribution. He knows that if X follows the t distribution with ν = 4 degrees of freedom, then X2 follows the F distribution with df1 = 1 and df2 = 4 degrees of freedom. 1. First use the Metropolis algorithm to generate a random sample of size 10,000 from the t distribution with ν = 4 degrees of freedom and then use the generated sample together with Dr. Lee’s knowledge to obtain the random sample following F distribution (df1 = 1, df2 = 4). 1 2. To verify Dr. Lee’s knowledge, compute the sample percentiles and compare with the F distribution (df1 = 1, df2 = 4) percentiles. (Hint: Use qf(p, df1, df2) to find F distribution percentiles.)
In: Statistics and Probability
To study the effect of overfishing in the Indian ocean researchers compared fishing areas in north that had never been overfished (Group 1) with similar areas nearby that had been overfished 1 year earlier (Group 2) and 8 years earlier (Group 3). Assume plots are randomly selected. The variable “Fishes” is the count of fish in an area. Using the data below perform a post hoc analysis and discuss conclusion
1 29
1 21
1 19
1 33
1 16
1 20
1 24
1 27
1 28
1 19
2 12
2 12
2 15
2 9
2 20
2 18
2 17
2 14
2 14
2 2
2 17
2 19
3 18
3 4
3 22
3 15
3 18
3 19
3 22
3 12
3 12
In: Statistics and Probability
Use any C program without using PTHREADS calculate time taken to execute program.
please I need the c code..
|
critical section |
|||
|
mutex solution |
|||
|
semaphore functions |
|||
|
Barriers |
|||
|
Read-Write Locks |
Run program using 1, 2, 4, and 8 threads Comparison study (1.5 marks)
|
Number of threads |
||||
|
Implementation |
1 |
2 |
4 |
8 |
|
critical section |
||||
|
mutex solution |
||||
|
semaphore functions |
||||
|
Barriers |
||||
|
Read-Write Locks |
||||
In: Computer Science
Consider the casual CT systems with transfer functions:
H1(s)= (s+1)/(s+2)(s^2+s+16)
H2(s)= s/(s+10)(s+1)
H3(s)= 1/(s-1)(s+1)
H4(s)= s/(s+1)(s^2+s+16)
1) Write magnitude and phase expression for their Bode Plots and Sketch their asymptotes. Verify Using Matlab.
2) Compute their steady-state response to cos(5t) u(t) + 3u(t) + cos(10t) e^-t u(t).
***Please show slope computations and conversions for the graphs. This is where I am unable to move forward.
In: Electrical Engineering
______________________________
Sleep deprived Well Rested
3 5 2 3 7 3 1 2 2 1
6 1 9 2 11 1 2 3 3 5
10 3 3 5 4 2 3 1 3 2
In: Statistics and Probability
by python
Question #1 Consider a 5-point quiz system. A score can be any number between 0 and 5. Using mathematical interval notation, the score is in the interval [0,5][0,5]. The interval notation (4,5](4,5] means that number 4 is not in the interval. Hence the numbers included in this interval are all real values ?x such that 4<?≤54
The score is graded according to the following scale:
| Score | Grade |
|---|---|
| (4, 5] | A |
| (3, 4] | B |
| (2, 3] | C |
| (1, 2] | D |
| [0, 1] | F |
Write a program that reads a quiz score and then prints out the corresponding grade.
Note that your program should
The following are two sample runs of the program:
Sample Run 1:
Please enter score: -1
Invalid score. Try again.
Please enter score: 5.5
Invalid score. Try again.
Please enter score: 3.5
Your grade is B
In: Computer Science
The following code must be written using matlab and must be using a for-loop. NOTE!
Write a computer program that assigns random integers for each entry and generates a row vector. Different random integers should be drawn from different intervals for position 1, position 2, position3 and position 4 of the array. After these first 4 positions are drawn. The whole thing should start over where position5 drawn from same interval as positions 1, position6 drawn from same interval as positions 2, position7 drawn from same interval as positions 3, position8 drawn from same interval as positions 4, And then this should be repeated for these chunks of 4 along the whole length of the sequence. The length should be able to with multiples of 4 and should be given as a constant in the top of the script. Thanks
These intervals should be able to set by the user in the top of the script. Th
In: Computer Science