3-cs-fraudulent-transactions

Products p4438 p4443 p4445 p4446 p4455 p4459 p4461

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: decreasing=T), 20) # Bottom 20 products p4438 p4443 p4445 p4446 p4455 p4459 p4461 p4464 p4472 p4474 p4479 p4483 11 11 11 11 11 11 11 11 11 11 11 11 p4491 p4495 p4498 p4511 p4523 p4530 p4532 p4547 11 11 11 11 11 11 11 11 > length(totS[totP==11]) # Products with only 11 records [1] 172 Statistics 503, Spring 2013, ISU 8 > totP <- table(sales$Prod) > length(totP) [1] 4548 > head(totP) =,2('0&# p1 p2 p3 p4 p5 p6 210 81 35 114 161 63 > head(sort(totP, decreasing=T), 20) # Top 20 products Some products with a lot of records p1125 p3774 p1437 p1917 p4089 p2742 p2273 p2957 p1918 p1938 p1215 p4094 3923 1824 1720 1702 1598 1519 1402 1381 1326 1325 1317 1148 p1914 p1910 p1706 p2170 p3197 p1214 p3338 p1583 1133 1123 1105 1074 996 991 977 971 > tail(sort(totP, decreasing=T), 20) # Bottom 20 products p4438 p4443 p4445 p4446 p4455 p4459 p4461 p4464 p4472 p4474 p4479 p4483 11 11 11 11 11 11 11 11 11 11 11 11 p4491 p4495 p4498 p4511 p4523 p4530 p4532 p4547 11 11 11 11 11 11 11 11 > length(totS[totP==11]) # Products with only 11 records [1] 172 Statistics 503, Spring 2013, ISU 8 > totP <- table(sales$Prod) > length(totP) [1] 4548 > head(totP) =,2('0&# p1 p2 p3 p4 p5 p6 210 81 35 114 161 63 > head(sort(totP, decreasing=T), 20) # Top 20 products Some products with a lot of records p1125 p3774 p1437 p1917 p4089 p2742 p2273 p2957 p1918 p1938 p1215 p4094 3923 1824 1720 1702 1598 1519 1402 1381 1326 1325 1317 1148 p1914 p1910 p1706 p2170 p3197 p1214 p3338 p1583 1133 1123 1105 1074 996 991 977 971 > tail(sort(totP, decreasing=T), 20) # Bottom 20 products p4438 p4443 p4445 p4446 p4455 p4459 p4461 p4464 p4472 p4474 p4479 p4483 11 11 11 11 11 11 11 11 11 11 11 11 p4491 p4495 p4498 p4511 p4523 p4530 p4532 p4547 11 11 11 11 11 11 11 11 > length(totS[totP==11]) # Products with only 11 records [1] 172 Minimum number of records is 11, and a lot Statistics 503, Spring 2013, ISU 8 =-2&# @5"**1.$%*'+%#+B"#>2%34% 2(5+20(.M)#">AB*%12%&NO...
View Full Document

Ask a homework question - tutors are online