% IAP 2007 Introduction to MATLAB: Statistics and Data Analysis % Instructor: Violeta Ivanova, violeta@mit.edu % EXERCISE 1 MATLAB Statistics Toolbox % Correlation Coefficient, Hypothesis Testing, ANOVA, Statistical Plots % Original data for RFID and barcode scanning experiments are in the file % sampledata.xls, courtesy of Teresa Pontillo, MIT Aeronautics & Astronautics. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % A. DATA IMPORT % A1. Import RFID experiment data from file RFID.dat to matrix rfid. % Column 1: No. antennae; Column 2: No. items; Column 3: Type of item; % Column 4: No. tags; Column 5: Time (sec); Column 6: Accuracy (%) % A2. Import barcode scanning data from file barcode.dat to matrix bc. % barcode = load('barcode.dat'); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % B. CORRELATION COEFFICIENT % B1. Compute correlation coefficients for the RFID independent variables % (columns 1-4 in rfid) with the test results (columns 5-6 in rfid) % Which correlations are significant within 95% confidence interval? % B2. Compute correlations for the time to scan one item with RFID. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % C. ANALYSIS OF VARIANCE % C1. Perfom ANOVA to determine if the time per item is correlated to % the number of items in each scan, and annotate the created box plot. % A7. Perfom ANOVA to determine if the accuracy is correlated to the % number of items in each scan, and if accuracy meets a required 95%. % Annotate the created plot. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % D. COMPARISION OF TWO PROCEDURES % D1. Compute correlations for the time to scan one item with barcode scan. % D2. Perfom ANOVA to determine if the time per item is correlated to % the number of items in each barcode scan, and annotate the created box plot. % D3. Compare graphically the RFID and barcode efficiency (time to scan one item) % Hint: Use the two box plots (from A6 and A9) and the Property Editor.