Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Spreadsheet Problem Solving  applied statistics  table lookup.

Similar presentations


Presentation on theme: "1 Spreadsheet Problem Solving  applied statistics  table lookup."— Presentation transcript:

1 1 Spreadsheet Problem Solving  applied statistics  table lookup

2 2 Using Excel for statistical calculations Broad capabilities, well beyond the scope of this course [ChE’s will learn many more features in Applied Data Analysis (CHEN 3010)] Built-in functions (COUNT, AVERAGE, STDEV,... ) Data Analysis toolbox (Descriptive Statistics, Histogram, Regression,... ) We will concentrate today on descriptive statistics Trendline curve-fitting feature

3 3 Characterizing a set of data Central value or tendency (most likely value, estimate of true value) Sample average Median Mode most frequently occurring value in the series there are others: geometric mean, harmonic mean, m-estimator, first moment [ AVERAGE() ] [ MEDIAN() ] [ MODE() ]

4 4 Spread or dispersion of the data (describes uncertainty) Range Inter-quartile range (iqr) Sample standard deviation Resolutiondecimal place farthest to the right to which a measurement may be reliably read Standard error of the mean estimate There are others, e.g., median absolute deviation. [ MAX() - MIN() ] [ STDEV() ] Note: sample variance is square of S, [ VAR() ]

5 5 Other quantities of use in statistical calculations sample count sample sum sample sum of squares “corrected” sum of squares [ COUNT() ] [ SUM() ] [ SUMSQ() ] [ VAR() * (n-1) ]

6 6 Example data set: Measurements taken on a silicon wafer used for making microcircuits

7 7 Sample statistics using formulas

8 8 Finding the median and quartiles

9 9 Using the Data Analysis toolbox Note: if the Data Analysis... item is not on the Tools menu, you will have to go to the Add-ins menu and activate the checkbox for Analysis Toolpak. If the Analysis Toolpak item is not on the Add-ins list, it will have to be installed from Microsoft Office Set-up.

10 10 Setting up for descriptive statistics

11 11 Results from Descriptive Statistics Format AutoFormat OK reformat table adjust display for appropriate significant figures

12 12 Table Look-up A great deal of information is organized in the form of tables and Excel provides a number of built-in functions that allow for the extraction of appropriate data from tables. Excel’s lookup functions are: LOOKUP VLOOKUP HLOOKUP MATCH INDEX OFFSET

13 13 LOOKUP(Lookup_value,Lookup_vector,Result_vector) search down the lookup vector find either a matching value, or a value greater than the lookup value, whichever occurs first go to the same position in the result vector, and extract the value there

14 14 Example of LOOKUP use text in alphabetical order create name “material” for this column this column will be the “lookup vector” numerical values of bulk density create name “density” for this column this column will be the “result vector”

15 15 Create LOOKUP function formulas this cell is named “choice” Lookup_value,Lookup_vector,Result_vector What happens when our choice is not in the lookup vector? LOOKUP goes down list until it finds a name > “potash”, “salt” in this case, then it backs up one to “oyster shells” and returns the answer for that

16 16 Important: the lookup vector must be in ascending order. For text labels, this means alphabetic order. Upper- or lower-case letters don’t matter.

17 17 VLOOKUP(Lookup_value,Table_array,col_index_num,Range_lookup) search down left column of table array to find match Which column number for extraction of result? 1, 2, 3 or 4? result optional argument: if FALSE, requires an exact match

18 18 Example of VLOOKUP use Table of properties of various granular materials named “MaterialTable”

19 19 Need to sort the table in ascending (alphabetical) order for first column Using VLOOKUP to extract information from the table: What if our choice value has a typo? cell named “choice”

20 20 typo, should be “Millet” result shown as invalid With 4 th argument as TRUE, or absent, you would see: results for “Flaxseeds”, next earlier item in table

21 21 Application of VLOOKUP: Linear interpolation from a table of physical properties For any %HNO 3 from 0 to 90, we want an automatic estimate of the heat capacity

22 22 Create index columns to the right and left of the table name this “NitricTable2” name this “NitricTable1”

23 23 Create an input cell and name it “input” Enter a formula using VLOOKUP to determine the row index for the “lower bracketing value” Enter a simple “add 1 to the above” formula for the row index of the “higher bracketing value”

24 24 Enter VLOOKUP functions based on “NitricTable2” and using the low and high row indices to extract the bracketing values of %HNO 3 and Heat Capacity. Using Insert Name Create, transfer the 6 labels in column F over as names on the cells to the right in column G

25 25 LowPct HighPct LowHC HighHC linear approximation between to locations in the table input %HNO 3 HeatCap estimate Enter this formula in a cell to compute the estimated heat capacity

26 26 Automatic linear interpolation formula and results

27 27 Change values of the input to get different results [including bad results when input outside of acceptable range] the goodthe badand the ugly!

28 28 Other lookup functions: HLOOKUPlike VLOOKUP, except horizontal rather than vertical looks across top row of table and then extracts from indexed row MATCHdoes not extract a value, but, instead, returns a relative location (position number) of a value in a lookup array INDEXextracts a value from a table (2-dimensional array of cells with rows and columns) given the column index and the row index OFFSET extracts a cell address or range from a table given the offset location from the upper-left- hand corner of the table See “Help” for more details on these


Download ppt "1 Spreadsheet Problem Solving  applied statistics  table lookup."

Similar presentations


Ads by Google