HOMEWORK 4 UPDATED

.docx

School

University Of Connecticut *

*We aren’t endorsed by this school

Course

5603

Subject

Industrial Engineering

Date

Apr 3, 2024

Type

docx

Pages

4

Uploaded by UltraExplorationGiraffe29 on coursehero.com

This assignment is done by FAZAL FAZAL AND VEDA VYAAS BOORLA PROBLEM 1 clearwatch = data.frame(clearwatch) clearwatch P=prop.table(table(clearwatch$Fashion,clearwatch$Functionality)) P total_customers= length(clearwatch$Customer) total_customers #1a pa= sum(clearwatch$Fashion>clearwatch$Functionality) pa p1=pa/total_customers p1 #1b pb=sum(clearwatch$Functionality>clearwatch$Fashion) pb p2=pb/total_customers p2 #1c sum(P["Blue Sky",]) #1d sum(P[,"Blue Sky"]) #1e P["Blue Sky","Blue Sky"] #1f sum(P["Blue Sky",]) - P["Blue Sky","Blue Sky"] #1g sum(P[,"Blue Sky"])- P["Blue Sky","Blue Sky"] #1h sum(P["Blue Sky",])+ sum(P[,"Blue Sky"]) - P["Blue Sky","Blue Sky"] #1i sum(P["Blue Sky",])-P["Green Nature","Blue Sky"] #1j sum(P["Blue Sky",])-P["Blue Sky","Green Nature"]
PROBLEM 2 #2a prob.table <- table(Tracy$Years) / sum(table(Tracy$Years)) Prob= data.frame(prob.table) Prob prob1 = sum(prob.table[names(prob.table) >= 5]) prob1 prob2 = sum(prob.table[names(prob.table) <= 5]) prob2 prob3 = sum(prob.table[names(prob.table) > 3 & names(prob.table) <= 7]) prob3 #2b mean(Tracy$Car) median(Tracy$Car) sd(Tracy$Car) max(Tracy$Car) min(Tracy$Car) range= max(Tracy$Car)- min(Tracy$Car) range
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