Skip to main content
The table needs to be inputed into R in order to answer the following questions. Thank you



ANSWER

We can easily calculate the expected cell counts Eij using the Minitab command chisq, as shown below.
MTB > read c1-c4
DATA> 12 8 31 41
DATA> 307 246 439 245
DATA> end
2 rows read.
MTB > chisq c1-c4
Expected counts are as below observed counts
C1     C2     C3     C4     Total
1       12    8      31    41        92
22.08   17.58     32.54    19.80
2      307 246 439   245 1237
296.92 236.42 437.46 266.20
Total          319   254 470 286 1329
ChiSq = 4.604 + 5.223 + 0.072 + 22.704 + 0.342 + 0.388 + 0.005 + 1.689 = 35.028
df = 3
MTB > cdf 35.028;
SUBC> chisq 3.
35.0280 1.0000
The p-value is essentially zero, so the evidence of a relationship is very strong. The same computation is shown below in S-PLUS, using the function chisq.test().
> x_c(12,8,31,41,307,246,439,245)
> x_matrix(x,4,2,byrow=T)
> chisq.test(x)
Pearson’s chi-square test without Yates’ continuity correction
data: x
X-squared = 35.0285, df = 3, p-value = 0
Through the X2 test for independence, we have demonstrated beyond a reasonable doubt that a relationship exists between cholesterol and CHD.
It would make sense to estimate the conditional probabilities of CHD within the four cholesterol groups. To do this, we estimate P(Y = i|Z = j).
P(Y = i|Z = j) = P(Y = i, Z = j) / P(Z = j)
[(nij/n++) / (n+j/n++)] = nij / n+j
12/319 = .038
8/254 = .031
31/470 = .066
41/286 = .143
307/319 = .962
246/254 = .969
439/470 = .934
245/286 = .857
The risk of CHD appears to be essentially constant for the 0–199 and 200–219 groups.
a test of independence for the 2 × 2 table
12
8
307
246
yields X 2 = 0.157, p-value = .69.
For an I × J table, the usual X 2 or G 2 test for independence has
(IJ − 1) − (I − 1) − (J − 1) = (I − 1)(J − 1)

Comments

  1. https://www.chegg.com/homework-help/questions-and-answers/2-survey-find-main-causes-lateness-factory-s-work-force-random-sample-200-employees-late-w-q38226745

    ReplyDelete

Post a Comment

Popular posts from this blog

Question: prove by induction 2^2 + 4^2 + 6^2 + ... + (2n)^2 = (2n)(2n+1)(2n+2)/6 ANSWER we will use induction on n base case : n=1 we have, 2^2 = 2*3*4/6 = 4 which is true inductive hypothesis let it be true for n = k i.e.,  2^2 + 4^2 + ... + (2k)^2 =   [(2k)(2k+1)(2k+2)]/6 inductive case let n = k+1 then we have 2^2 + 4^2 + .... + (2k)^2 + (2(k+1))^2 =   [(2k)(2k+1)(2k+2)]/6 + (2k+2)^2 =(2k+2)*[(2k)(2k+1)/6 + (2k+2)] =(2k+2)*[ (4k^2+2k)/6 + (12k + 12)/6 ] =(2k+2)*[ (4k^2+14k+12)/6 ] = =(2k+2)*[(2k)(2k+1)/6 + (2k+2)] =(2k+2)*[ (4k^2+2k)/6 + (12k + 12)/6 ] =(2k+2)*[ (4k^2+14k+12)/6 ] = (2k+2)*[ (4k^2 + 8k + 6k + 12)/6 ] = (2k+2)*[ (4k(k + 2) +6(k+2))/6 ] = (2k+2)*[ (4k+6)(k+2)/6 ] =  (2k+2)*[ 2 (2k+3)(k+2)/6  ] =   (2k+2)*[  (2k+3)*2*(k+2)/6  ] =   (2k+2)*[  (2k+3)(2k+4)/6  ] = [(2*(k+1))(2*(k+1)+1)(2*(k+1)+2)]/6 replacing k+1 by m, we get replacing k+1 by m, we get [(2*m)(2*m+1)(2*m+2)]/6 this completes our proof b...

IT management

FIGURE P1.1 The File Structure for Problems 1-4 1.       How many records does the file contain? How many fields are there per record? 2.       What problem would you encounter if you wanted to produce a listing by city? How would you solve this problem by altering the file structure? 3.       If you wanted to produce a listing of the file contents by last name, area code, city, state, or zip code, how would you alter the file structure? 4.       What data redundancies do you detect? How could those redundancies lead to anomalies? Figure P2.4 The DealCo relational diagram 4. Identify each relationship type and write all of the business rules. 5.       Create the basic Crow’s Foot ERD for DealCo. FIGURE P3.17 The Ch03_TransCo Database Tables     17. For each table, identify the primary key and the for...
Question: Q1 a. Sketch the static characteristics of a diode. (6 marks) b. An AC voltage source V drives a transformer with centre tap second indin gs connected to two rectifiers is shown in the following diagram. The load has constant current Io. Assume that when the diode conducts the forward voltage drop is Ve d V Vmsnot. The turns ratio is N: 1:1. Sketch the current waveform through one of the diodes. (6 marks) c. Write down an equation for efficiency of a power converter in terms of output power and converter losses (2 marks) d. Given the following parameters, calculate the efficiency of the power converter. Va = 310 V ω-2π50 forward voltage drop of the diodes VF = 0.7 V Transformer turns ratio = 10: 1 : 1 load current = 10 A Assume that the transformer has no loss and converter losses come from the diodes only. Also assume the diode voltage drop does not change with current. State your assumption if there is any 6 marks) ANSWER