Data Analysis and Visua MATLAB
Data Analysis and Visua MATLAB CS 1173
Popular in Course
Popular in ComputerScienence
verified elite notetaker
This 1 page Class Notes was uploaded by Mireya Heidenreich on Thursday October 29, 2015. The Class Notes belongs to CS 1173 at University of Texas at San Antonio taught by Kay Robbins in Fall. Since its upload, it has received 22 views. For similar materials see /class/231372/cs-1173-university-of-texas-at-san-antonio in ComputerScienence at University of Texas at San Antonio.
Reviews for Data Analysis and Visua MATLAB
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 10/29/15
CS 1173 Statistical indicators 11208 A 2 4 2 3 5 1 4 3 and B 1 2 2 1 5 4 1 3 and C NaN 2 NaN 3 are three MATLAB variables representing sets of measurements used in the examples below Let D be a MATLAB matrix that has 4 rows and 3 columns Let X x1 x2 x3xn represent a general set of n measurements that we will use in our formulas 1 The average or mean measures the central tendency of a set of numbers To calculate the average add the values and divide by the number of values The average ofx is x xk Example 1 The average of A is 2 4 2 3 5 1 4 38 3 H The MATLAB function for average is called mean Example 2 meanD 1 or meanD is the column mean of D It is a single row of 3 values Example 3 meanD 2 is the row mean of D It is a single column of4 values Example 4 meanA is the mean of A For vectors you never need the second parameter and the result is always a single number Example 5 The mean of the entire array D is meanD Here we use the linear representation of D to extract a single value Example 6 meanC is NaN The MATLAB returns NaN results if any of the values in the vector are NaN The MATLAB function nanmean computes the average by completely ignoring the NaNs 2 The median is another measure of central tendency In contrast to the average the median is not heavily influenced by outliers When the average and the median are far apart in value you can surmise that there must be some outliers in the data To calculate the median sort the values and take the middle one If the number of items is even average the middle two values Example 7 sortA is 1 2 2 2 3 3 4 5 The average of the middle two values is 2 32 25 The MATLAB function for computing the median is called median The median function follows the same rules as the mean function The MATLAB function nanmedian computes the median by completely ignoring the NaNs 3 The mode is the value most frequently appearing in the data This value may not be unique Example 8 The mode of B is 1 while the mode of A has two most frequent values 2 and 4
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'