Tutorial 2, Q1 solution The five scales: 1.Nominal scale serves only for classification. The order of the classes is unimportant as is the difference between.

Slides:



Advertisements
Similar presentations
Lecture 10 Flow of Control: Loops (Part 2) COMP1681 / SE15 Introduction to Programming.
Advertisements

Section 1-2 Data Classification
1 © Amit Mitra & Amar Gupta FORMATS, SYMBOLS & UNITS OF MEASURE Continuation of our discussion of Pattern and its semantics.
Scale Types.
Transforming Concepts into Variables Operationalization and Measurement Issues of Validity and Reliability.
Lecture 1: Basic Descriptive Statistics 1.Types of Biological Data 2.Summary Descriptive Statistics Measures of Central Tendency Measures of Dispersion.
TYPES OF DATA. Qualitative vs. Quantitative Data A qualitative variable is one in which the “true” or naturally occurring levels or categories taken by.
Thermal Energy and Temperature
Levels of Measurement. The Levels of Measurement l Nominal l Ordinal l Interval l Ratio.
Introduction to Quantitative Research
Research Methods in MIS
Temp Conversions Centigrade, Fahrenheit, Absolute.
1 Chapter 1 Matter, Measurements, & Calculations 1.6 cont’ Temperature Conversions Copyright © 2005 by Pearson Education, Inc. Publishing as Benjamin Cummings.
Chapter 4: Conceptualization and Measurement
Levels of Measurement Nominal measurement Involves assigning numbers to classify characteristics into categories Ordinal measurement Involves sorting objects.
Elementary Statistics Picturing the World
The Fundamental Tools Of Science. Units Some fundamental measurements in all of science: Length Time Mass Many others are combinations of these: Energy,
Measurement and Measurement Scales Measurement is the foundation of any scientific investigation Everything we do begins with the measurement of whatever.
MEASUREMENT Nominal, Ordinal, Interval and Ratio variables and the concepts of Reliability and Validity.
Temperature Temperature is a qualitative measurement- movement of molecules How hot or cold something is. Fahrenheit Celsius o F = 9/5C + 32 o C = 5/9.
TEMPERATURE FAHRENHEIT & CELSIUS. WHAT IS TEMPERATURE? Some people say: it is how hot or cold something is Scientists say: measure of how fast the atoms.
How Low Can You Go??. Temperature Scales Nova Temperature: Quantifying Cold 10:17
Temperature Section1. Temperature Scales  Fahrenheit ( ◦ F )  Celsius ( ◦ C )  Kelvin ( K )
Presenting and Analyzing Data
Can't Type. press F11 or F5. Can’t Hear
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 1.2.
CONFIDENTIAL1 Good Afternoon! Today we will be learning about Temperature, changes, & negative numbers Let’s warm up : Complete the conversion tables:
Temperature. Temperature Scales Temperature can be measured with a variety of scales: – Celsius scale – Fahrenheit scale – Kelvin scale.
Fundamentals of Measurement by Michael Everton (mxe06u)
Software Metrics  The measurement of a particular characteristic of a software program's performance or efficiency. (
Chapter 4: Conceptualization and Measurement
Measurement theory - for the interested student Erland Jonsson Department of Computer Science and Engineering Chalmers University of Technology.
Temperature Temperature is a measure of how hot or cold something is using a thermometer There are four types of temperature scales: o Metric = ________.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Measurement Theory Michael J. Watts
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 1 Equations and Inequalities.
Variables and their Operational Definitions
Lesson 5: Temperature and Density. Heat A form of energy that can move from a hot place to a cooler place.
Temperature You use the words hot and cold to describe temperature. Something is hot when its temperature is high. When you heat water on a stove, its.
Levels of Measurement The mathematical precision with which the values of a variable can be expressed is the level of measurement. The nominal (or categorical)
Scale2 1 Measurement Scales The “richness” of the measure.
Comparing Temperature Scales Units of Temperature Fahrenheit scale 0 F Celsius scale commonly used by scientists water boils at C 0 K coldest temperature.
Holt Physics, Chapter 10 Heat.
DATA ORGANIZATION. SCALES 1.Four basic ways of 2.Observing data 3.Organizing data 4.Assigning numbers to data HEIRARCHY OF PRECISION 1.nominal: least.
Elementary Statistics Picturing the World
When Thermal Energy is transferred it is called HEAT Heat always transfers from higher to lower In order to have flow there must be a temperature (thermal.
MM207 Statistics Welcome to the Unit 2 Seminar name.
Temperature How Hot is it?. Temperature Temperature is a measure of the average kinetic energy of a molecule of a substance, or… How “hot” it is. On Temperature.
S519: Evaluation of Information Systems Social Statistics Inferential Statistics Chapter 16: reliability and validity.
Measure. Measure Definition: Definition: It is the demonstration of the existence of an homomorphism between an empirical relational structure and a numerical.
Variables It is very important in research to see variables, define them, and control or measure them.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 1.2.
 Definition › Used to distinguish among objects or used for classification; used with categorical data.  Example › Assigning numbers on jerseys to athletes;
Introduction to Statistics for the Social Sciences SBS200, COMM200, GEOG200, PA200, POL200, or SOC200 Lecture Section 001, Fall 2015 Room 150 Harvill.
Temperature.
Temperature Feeling hot, hot, hot….. Temperature Temperature – a measurement of how much kinetic energy the particles contain.
Measurements Statistics WEEK 6. Lesson Objectives Review Descriptive / Survey Level of measurements Descriptive Statistics.
Topic: Heat and Temperature PSSA: C / S8.C.2.1.
2 NURS/HSCI 597 NURSING RESEARCH & DATA ANALYSIS GEORGE MASON UNIVERSITY.
Software METRICS. Intro Measurement is essential to life economic measurement... clinical measurement... air traffic control... etc., etc., etc....
BSHS 382 Week 2 DQ 2 Check this A+ tutorial guideline at 382/UOP%20BSHS-382-Week-2-DQ-2 Give two example of each:
Introduction to Quantitative Research
Unit 1: Matter, Measurement, and unit conversions
Probability and Statistics
Temperature.
Probability and Statistics
Tutorial 2, Q1 State the five scales used in measurement and describe the most important aspects which distinguish them. For each of the following statements,
Section 1.2 Data Classification.
Operational Definitions,
Presentation transcript:

Tutorial 2, Q1 solution The five scales: 1.Nominal scale serves only for classification. The order of the classes is unimportant as is the difference between them. A renaming of classes is a valid transformation of scales. Example: blood types. 2.The Ordinal Scale is for classification where the order is important but the difference between classes is arbitrary. Any monotonic transformation is meaningful. Example: top ten whatevers. 3.Interval scale: order important and differences between classes meaningful. Any affine transformation (S' = kS + c) is meaningful, as in the conversion from C to F. Eg. temperature in Celsius (F = (9/5)*C + 32). 4.Ratio scale: as interval scale but also has meaningful zero. Any Linear transformation (S' = kS) is meaningful as in conversion of currencies. 5.The Absolute scale is just used for counting. Meaningful zero and differences between values. Only the identity transformation is valid. Eg. Lines of Code (given a particular definition of LoC).

Tutorial 2, Q1 solution “100 C is the boiling point of water" is a meaningful. Degrees C is an interval scale since each degree is equal but the zero is arbitrary. Transformation to Fahrenheit scale is example of an affine transformation which is valid for interval scales. “Today is twice as hot as yesterday" is unlikely to be meaningful as weather temperature is measured in C or F which are not ratio scales (which would be required for “twice" to be meaningful). Differences are meaningful however, so if today is 10 degrees C, and yesterday was 5 degrees C, then it would be meaningful to say that today is 5 degrees hotter than yesterday. The FT index is an example of an indirect measure (calculated from the value of lots of different shares). The calculation is made such that the resulting value is on a ratio scale. The zero is meaningful (the shares have value) and the differences are equal. Depending on its precise definition, Line of Code is probably an absolute scale so the sentence is meaningful. Transformations which convert between lines of code measures for different languages may be empirically substantiated but are not valid for an absolute scale. Elapsed time is a ratio scale made by subtracting two points in time. Points in time are measured on interval scale (eg. 3/10/ :11:30). Transformations of elapsed time such as 1 month = 20 working days are valid for elapsed time (ratio scale). But (31 Jan 1997) = 31 * (1st Jan 1997) is not valid since date is an interval scale. Cost is a ratio scale. Assuming we are talking about something like cost of maintenance per year, then the sentence is meaningful. Complexity however defined is likely to be at least an ordinal scale so the sentence is OK.

Tutorial 2 Q2 Solution Check the notes for week two. There are lots of problems with the Lines of Code LoC measure: Do blank lines count? What about comments? Compiler directives? Declarations? Procedure headings? Imports, exports? What about side effects in expressions – you can get lots of effects in a single expression, for example in Java you can write X = i++,j++,k++,--p,t=t*4 ; This assigns to X, but has also 5 side effects.

Control Flowgraphs Conditional Atomic Loop Sequence Start or Stop node

Tutorial 2, Q3 solution IF(...)THEN x:=1 ELSE x:=2 FI ; y:=50 ; IF (...) THEN z:=1 ELSE DO WHILE (...) z:=z+1 OD FI ; y:=0 S C A S A S A A C AL A Draw the CFG:

Tutorial 2, Q3 solution To calculate number of nodes: M(S(C(A,A),S(A,S(C(A,L(A)),A)))) = M(C(A,A))+M(S(A,S(C(A,L(A)),A)))-1 = M(A) +M(A) + M(A) +M(S(C(A,L(A)),A)) = M(C(A,L(A))) + M(A) = M(A) + M(L(A)) = M(A) = = 10 For number of edges: M(S(C(A,A),S(A,S(C(A,L(A)),A)))) = M(C(A,A)) + M(S(A,S(C(A,L(A)),A))) = M(A) + M(A) M(A) + M(S(C(A,L(A)),A)) = M(C(A,L(A))) + M(A) = M(A) + M(L(A)) = M(A) = = 12 S C A S A S A A C AL A

Another (simpler) way Number of Nodes: FA() = 2 Fs(m1,m2) = m1 + m2 - 1 FC(m1,m2) = m1 + m2 FL(m1) = m1 + 1 S C A S A S A A C AL A As + 3 Ss + 2 Cs + 1 L6 * * *0 + 1 * 1