FINAL EXAM - FALL 2023 Review Sheet- SOLUTION

pdf

School

Brooklyn College, CUNY *

*We aren’t endorsed by this school

Course

150

Subject

Mathematics

Date

Jan 9, 2024

Type

pdf

Pages

10

Uploaded by apaul81

Report
FINAL EXAM REVIEW - SOLUTION MAT 150.5 Z-test t-test (one-sample) _ M oy = standard error of the mean sy = estimated standard error p. 198-9 p. 211-2 2 = yari _ s s = Remember: s =variance §,, = ; M \/; Independent t-test Independent-measures or between-subject design Null hypothesis Ho: By - M2 =0 (or py= py) Alternative hypothesis Hiipy - #0 (orp #H, or Py<p, or py>py) =g t-test: double elements of single t-test formula Sm S my—my) Compare mean difference (top) with difference expected by chance (bottom)
Standard error of the difference between the means 2-sample standard error Each sample has own population mean and error When = n’s, add standard errors of the means together 2 2 % S S _ . . 1, 22 Sy =q|l— ——* (M,-M,) n n,G n, Equation assumes equal sample size When n, # n,, need to calculate pooled variance Let SPSS do it! (Ml_Mz) Calculations ‘=, (my—m,) Calculate bottom: Calculate t: Calculate top: (M, -M,) > S(a,-My) =\/ f— (Ml _Mz) S(ml_mZ) Calculate df = (n, 1)+(n,-1) Look up critical t* Does t value exceed critical value?
1. Mean, Variance, and Expectation From past experience, a company has found that in carton of transistors, 92% contain no defective transistors, 3% contain one defective transistor, 3% contain two defective transistors, and 2% contain three defective transistors. a. Construct a probability distribution below. b. Calculate the mean, variance, and standard deviation for the defective transistors. a. X p(x) x(px) X-U (x-u)* | ((x-u)?) (p(x)) 0 0.92 0 -0.15 | 0.0225 0.0207 1 0.03 0.03 0.85 | 0.7225 0.021675 2 0.03 0.06 1.85 | 3.4225 0.102675 3 0.02 0.06 2.85 | 8.1225 0.16245 0.15 0.3075 b. n = 0.15 2 = 0.3075 o = 0.55 2. The number of suits sold per day at Suit World is shown in the probability distribution below. X 19 20 21 22 23 P(X) 02 02 03 02 O01 a. Find the mean, variance, and standard deviation of the distribution.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Ans: X p(x) X(px) X-u (x-u)? ((x-u)?) (p(x)) 19 0.2 3.8 -1.8 3.24 0.648 20 0.2 4 -0.8 0.64 0.128 21 0.3 6.3 0.2 0.04 0.012 22 0.2 4.4 1.2 1.44 0.288 23 0.1 23 2.2 4.84 0.484 20.8 1.56 w = 208 o= 1.56 g = 125 b. If the manager of Suit World wants to make sure that he has enough suits for the next five days, how many should he buy to stock the store? Ans: 115 suits 3 The Bank of America VP feels that each savings account customer has, on average, three credit cards. The following distribution represents the number of credit cards people own. X 0 1 " 3 4 P(X) 0.18 044 0.27 0.08 0.03 a. Find the mean, variance, and standard deviation. X p(x) x(px) X-u (x-u)* ((x-u)?) (p(x)) 0 0.18 0 -1.34 | 1.7956 0.323208 1 0.44 0.44 034 | 0.1156 0.050864 2 0.27 0.54 0.66 0.4356 0.117612
Q Q= 3 0.08 0.24 1.66 2.7556 0.220448 4 0.03 0.12 2.66 7.0756 0.212268 1.34 0.9244 = 134 = 0.924 = 0.96 4. Flower World determines the probabilities for the number of flower arrangements they deliver each day. X 6 7 8 9 10 P(X) 02 02 03 02 01 a. Find the mean, variance, and standard deviation. X p(x) X(px) X-u (xu)? | ((x-u)?) (p(x)) 6 0.2 1.2 -1.8 3.24 0.648 7 0.2 14 -0.8 0.64 0.128 8 0.3 2.4 0.2 0.04 0.012 9 0.2 1.8 e 1.44 0.288 10 0.1 1 2.2 4.84 0.484 7.8 1.56 n=1=78 o= 1586 o= 125
o —— Testing of Hypothesis .- rN} - | Proporti fiAbb ations Used | [ ey [ ton Mean S dard Devitation p : probability of Sample Proportion P : Probability of Population Proportion Q:1-P £, %) = (g pz) : TG o [ yny ny ny + ny ~ 2+ degrees of freedom Critical Regions In hypothesis testing, critical region is represented by set of values, where null hypothesis is rejected. So it is also know as region of rejection. It takes different boundary values for different level of significance. Below info graphics shows the region of rejection that is critical region and region of acceptance with respect to the level of significance 1%. ) Critical Regions in Two Tailed Test . . -2.58, +2.58 -1.96, +1.96 -0.645, +0.645 HYpOthQSls TeStlng Right Tailed Test +2.33 +1.645 +1.28 Left Tailed Test -2.33 -1.645 -1.28 Region of Rejection Region of Rejection Region of Rejection Acceptance Region Acceptance Region Acceptance Region . . 1] -2.58 *2 Two Tailed Test With Level of Significance = 1% .58 -2.33 Right Tailed Test Left Tailed Test Note: (Numbers will change for other LoS values but representation and Idea of Two tailed, Left tailed and Right Tailed test will be same) www.ashutoshtripathi.com | Data Science Duniya Critical regions in Hypothesis Testing
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Question 1 A Telecom service provider claims that individual customers pay on an average 400 rs. per month with standard deviation of 25 rs. A random sample of 50 customers bills during a given month is taken with a mean of 250 and standard deviation of 15. What to say with respect to the claim made by the service provider? Solution: First thing first, Note down what is given in the question: Hy (Null Hypothesis) : p = 400 H; (Alternate Hypothesis): p # 400 (Not equal means either p > 400 or p < 400 Hence it will be validated with two tailed test ) o = 25 (Population Standard Deviation) LoS (x) = 5% (Take 5% if not given in question) n = 50 (Sample size) xbar x~ = 250 (Sample mean) s = 15 (sample Standard deviation) n > = 30 hence will go with z-test Step 1: Calculate z using z-test formula as below: z = (x~ = n)/ (o/Vn) z = (250 - 400) / (25/V50) z = -42 .42 Step 2: get z critical value from z table for a = 5% z critical values = (-1.96, +1.96) to accept the claim (significantly), calculated z should be in between -1,96 < 2 +1.96 but calculated z (-42.42) < -1.96 which mean reject the null hypothesis
. 2 Region of Rejection Region of Rejection Acceptance Region A +1.96 Two Tailed Test x = 5% z-test example 1 Question 2 From the data available, it is observed that 400 out of 850 customers purchased the groceries online. Can we say that most of the customers are moving towards online shopping even for groceries? Solution: Note down what is given: 400 out of 850 which indicates that this is a proportion problem. Proportion p (small p) = 400/850 = 0.47 Ho (Null Hypothesis): P (capital P) > 0.5 (claim is that most of the customers are moving towards online shopping even for groceries which mean at least 50% should do online shopping) H; (Alternate Hypothesis): P < = 0.5 left tailed n = 850 LoS (o) = 5% (assume 5% as it not given in question) n > = 30 hence will go with z-test
Step 1: calculate z value using the z-test formula z = (p - P)/N(P*Q/n) (0.47 - 0.50)/V¥(0.5*%0.5/850) A z=1.74 Step 2: get z value from z table for o = 5% From z-table, for o = 5%, z = -1.645 (one value as it is one (left) tailed problem) Z(calculated) 1.74 > -1.645 (z from z-table with a = 5%) Conclusion: Hence accept the null hypothesis that mean, with given data we can validate significantly that most of the customers are moving towards online shopping even for groceries. Region of Rejection Acceptance Region region, hence, accept null hypothesis - 1.74 |eft Tailed Test <= 5% \ z value fall inside the acceptance Question 3 It is found that 250 errors in the randomly selected 1000 lines of code from Team A and 300 errors in 800 lines of code from Team B. Can we assume that team B's performance is superior to that of A. Solution: Note down what is given in the question: There are two samples : Team A and Team B for each Team some proportion is given in terms of line of error out of total line of code. Hence this problem can be solved using two proportion z-test.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
For one or two proportion proportion we use x2 that Team A (Sample A): proportion pa (small p) = na = 1000 Team B (Sample B): proportion pg (small p) = ng = 800 Take a = 5% (assume o = 5% type problem we use z-test. is chi square test) 250/1000 = 0.25 300/800 = 0.375 if not given in question) (in case of multi- Claim: Team B's performance is superior than Team A which means: Hp (Null Hypothesis): Team A (with respect to population) H; (Alternate Hypothesis) Step 1: B > = Bpa (one right tailed test) calculate z value from two proportion z-test formula as below: T where p* (p hat) = p* (p hat) = 7 = {0.25 = ©Q.315) [/ z = -0.125/[0.212*0.00135] z = -436.75 Step 2: get z using z-table for « Now calculated z -436.75 < +1.645 (1000*0.25 + 80020.375) (ba = pe)/Ip2(1-p*) (1/na + 1/ng)] (na*pa + npg*ps) / (na + npg) (1000 + 800) = [0.305% (1-0.305)*(1/1000 + '1/800) ] 02305 overall mean error of Team B pg < pa overall mean error of = 5% which is z = +1.645 z value fall inside the acceptance region, hence accept the null hypothesis -436.75 Acceptance Region Region 2f Rejection one Tailed Test <= 5% Hence will conclude that null hypothesis is true which mean from given data it is proven significantly that team B's performance is better that team A's performance.