Overview. Linear Algebra Notation. MATLAB Data Types Data Visualization. Probability Review Exercises. Asymptotics (Big-O) Review

Size: px
Start display at page:

Download "Overview. Linear Algebra Notation. MATLAB Data Types Data Visualization. Probability Review Exercises. Asymptotics (Big-O) Review"

Transcription

1 Tutorial 1 1 / 21

2 Overview Linear Algebra Notation Data Types Data Visualization Probability Review Exercises Asymptotics (Big-O) Review 2 / 21

3 Linear Algebra Notation Notation and Convention 3 / 21

4 Linear Algebra Notation Notation and Convention 1 Vectors a = 2 are denoted by lower-case letters. 3 3 / 21

5 Linear Algebra Notation Notation and Convention 1 Vectors a = 2 are denoted by lower-case letters. 3 [ ] Matrices X = are denoted by upper-case letters / 21

6 Linear Algebra Notation Notation and Convention 1 Vectors a = 2 are denoted by lower-case letters. 3 [ ] Matrices X = are denoted by upper-case letters X above is a 2 by 3 matrix ( nrow by ncol ). 3 / 21

7 Linear Algebra Notation Notation and Convention 1 Vectors a = 2 are denoted by lower-case letters. 3 [ ] Matrices X = are denoted by upper-case letters X above is a 2 by 3 matrix ( nrow by ncol ). Vectors are by default column vectors (ie. d 1 matrices) 3 / 21

8 Linear Algebra Notation Notation and Convention 1 Vectors a = 2 are denoted by lower-case letters. 3 [ ] Matrices X = are denoted by upper-case letters X above is a 2 by 3 matrix ( nrow by ncol ). Vectors are by default column vectors (ie. d 1 matrices) One can sometimes save space by using transpose operator and write a column vector on a single line. 2 b = 4 = [ ] T 8 3 / 21

9 Linear Algebra Notation Data Types Data Visualization Probability Review Exercises Asymptotics (Big-O) Review 4 / 21

10 Data Types Data Types matrices and vectors/arrays A = [ ; ; 7 8 9] % a 3x3 matrix b = [1 2 3] % a row vector c = [1; 2; 3] % a column vector d = [2] % this is a scalar, equivalent to d = 2 5 / 21

11 Data Types Data Types matrices and vectors/arrays A = [ ; ; 7 8 9] % a 3x3 matrix b = [1 2 3] % a row vector c = [1; 2; 3] % a column vector d = [2] % this is a scalar, equivalent to d = 2 multiplication operator is overloaded A*d matrix-scalar multiplication A*c matrix-vector multiplication A*A matrix-matrix multiplication 5 / 21

12 Data Types Data Types matrices and vectors/arrays A = [ ; ; 7 8 9] % a 3x3 matrix b = [1 2 3] % a row vector c = [1; 2; 3] % a column vector d = [2] % this is a scalar, equivalent to d = 2 multiplication operator is overloaded A*d matrix-scalar multiplication A*c matrix-vector multiplication A*A matrix-matrix multiplication solving linear systems A\b solves the linear system Ax = b 5 / 21

13 Data Types Data Types accessing elements c(1) note the bracket type (parenthesis) and one-indexing A(1,2) gives a scalar A(1,:) gives a row vector (slicing) A(2:3,:) gives a size-2 row vector A(2:end,:) same as previous b=[1,3] ; A(b,:) in case you want a non-contiguous slice 6 / 21

14 Data Types Data Types accessing elements c(1) note the bracket type (parenthesis) and one-indexing A(1,2) gives a scalar A(1,:) gives a row vector (slicing) A(2:3,:) gives a size-2 row vector A(2:end,:) same as previous b=[1,3] ; A(b,:) in case you want a non-contiguous slice booleans In, true and false are almost synonymous with 1 and 0. (ie. true == 1 and false == 0 both return 1) A([true, false, true],:) == A([1,3],:) (ie. a mask) true and false can be used as 1 and 0 (true * 10 == 10) 6 / 21

15 Data Types Data Types accessing elements c(1) note the bracket type (parenthesis) and one-indexing A(1,2) gives a scalar A(1,:) gives a row vector (slicing) A(2:3,:) gives a size-2 row vector A(2:end,:) same as previous b=[1,3] ; A(b,:) in case you want a non-contiguous slice booleans In, true and false are almost synonymous with 1 and 0. (ie. true == 1 and false == 0 both return 1) A([true, false, true],:) == A([1,3],:) (ie. a mask) true and false can be used as 1 and 0 (true * 10 == 10) caveat: A([1,0,1],:) fails. Nice try. 6 / 21

16 Data Visualization Data Exploration Basics Use builtin functions to read data data = csvread( london2012.csv ); Each row is an athlete of the London 2012 summer Olympics. 7 / 21

17 Data Visualization Data Exploration Basics Use builtin functions to read data data = csvread( london2012.csv ); Each row is an athlete of the London 2012 summer Olympics. Check dataset size size(data) 7 / 21

18 Data Visualization Data Exploration Basics Use builtin functions to read data data = csvread( london2012.csv ); Each row is an athlete of the London 2012 summer Olympics. Check dataset size size(data) This dataset has the following 7 descriptive features: ( ) Age, Height, Weight, Gender(1==female) # Bronze, # Silver, # Gold Medals 7 / 21

19 Data Visualization Histogram Let s visualize some information. What was the distribution of age? 8 / 21

20 Data Visualization Histogram Let s visualize some information. What was the distribution of age? Plot a histogram with 20 bins age = data(:,1); hist(age,20) 8 / 21

21 Number of Athletes Data Visualization Histogram Let s visualize some information. What was the distribution of age? Plot a histogram with 20 bins age = data(:,1); hist(age,20) Add some axis labels and a title xlabel( Age ); ylabel( Number of Athletes ) title( Age Distribution of Athletes ) 2500 Age Distribution of Athletes Age 8 / 21

22 Data Visualization Scatterplot Plot a scatterplot of height vs. weight height = data(:,2); weight = data(:,3) scatter(height, weight) 9 / 21

23 Weight Data Visualization Scatterplot Plot a scatterplot of height vs. weight height = data(:,2); weight = data(:,3) scatter(height, weight) 220 Athlete Weight vs. Height Height 9 / 21

24 Data Visualization Scatterplot scatter has options for marker size and color. gender = data(:,4) scatter(height, weight, [], gender) 10 / 21

25 Weight Data Visualization Scatterplot scatter has options for marker size and color. gender = data(:,4) scatter(height, weight, [], gender) Athlete Weight vs. Height Height / 21

26 Data Visualization Boxplot Plots the first, second, and third quartiles. A boxplot of weight for each age: boxplot(weight, age) 11 / 21

27 Weight Data Visualization Boxplot Plots the first, second, and third quartiles. A boxplot of weight for each age: boxplot(weight, age) 220 Boxplot of Athlete Weight Age 11 / 21

28 Data Visualization Boxplot Okay that was messy. Let s first discretize age (ie. bin/bucket) into groups of 5. This rounds everybody s age down to nearest fifth: dage = discretize(age, 10:5:80)*5; boxplot(weight, dage) 12 / 21

29 Weight Data Visualization Boxplot Okay that was messy. Let s first discretize age (ie. bin/bucket) into groups of 5. This rounds everybody s age down to nearest fifth: dage = discretize(age, 10:5:80)*5; boxplot(weight, dage) Boxplot of Athlete Weight Age 12 / 21

30 Docs and Sources of Info When In Doubt If you know what function to use but don t know how to use it, check the help command. e.g. >> help plot Otherwise, use online resources (Google, Piazza, etc.) 13 / 21

31 Probability Linear Algebra Notation Data Types Data Visualization Probability Review Exercises Asymptotics (Big-O) Review 14 / 21

32 Probability Review Probability Notation 15 / 21

33 Probability Review Probability Notation Events - Let A be the event that the coin lands on heads 15 / 21

34 Probability Review Probability Notation Events - Let A be the event that the coin lands on heads Random variables - Let X be the result of the coin flip, where 1 and 0 would represent heads and tails respectively 15 / 21

35 Probability Review Probability Notation Events - Let A be the event that the coin lands on heads Random variables - Let X be the result of the coin flip, where 1 and 0 would represent heads and tails respectively Assigning probabilities to events - e.g. P (A), P (X = 1) 15 / 21

36 Probability Review Probability Notation Events - Let A be the event that the coin lands on heads Random variables - Let X be the result of the coin flip, where 1 and 0 would represent heads and tails respectively Assigning probabilities to events - e.g. P (A), P (X = 1) P (X = ) (or P X ( )) is a function that, when given a value x, returns the probability of the event (X = x) P (X = x) = P X (x) = 0.5 x (1 0.5) 1 x 15 / 21

37 Probability Review Probability Notation Events - Let A be the event that the coin lands on heads Random variables - Let X be the result of the coin flip, where 1 and 0 would represent heads and tails respectively Assigning probabilities to events - e.g. P (A), P (X = 1) P (X = ) (or P X ( )) is a function that, when given a value x, returns the probability of the event (X = x) P (X = x) = P X (x) = 0.5 x (1 0.5) 1 x or P X (x) = { 0.5 x = x = 1 15 / 21

38 Probability Exercises Exercise 1: Conditional Probability Review Flip 2 coins. If I tell you that the first coin landed heads, what is the probability that the second coin landed heads? If I instead tell you that at least one coin landed heads, what is the probability that both coins land heads? 16 / 21

39 Probability Exercises Exercise 2: Why You Should Go To Tutorials Suppose 80% of students who get above A goes to all tutorials, and 80% of students who get below A do not go to all tutorials. Suppose only 20% of students get above A. What is the probability of a student who goes to all tutorials getting an A in the course? (Hint: much higher than 0.2) Reminder - Bayes Rule: P (A B) = P (B A)P (A) P (B) (A and B can be either events or random variables.) 17 / 21

40 Asymptotics (Big-O) Linear Algebra Notation Data Types Data Visualization Probability Review Exercises Asymptotics (Big-O) Review 18 / 21

41 Asymptotics (Big-O) Review Definition The notation g(n) = O(f(n)) means for all large n, g(n) cf(n) for some constant c > / 21

42 Asymptotics (Big-O) Review Definition The notation g(n) = O(f(n)) means for all large n, g(n) cf(n) for some constant c > 0. Examples: 20n + 5 = O(n) n n = O(n 2 ) 1/n + 10 = O(1) log(n) + n = O(n) n log(n) + n = O(n log(n)) 1.01 n + n 1000 = O(1.01 n ) n n = O( n ) 19 / 21

43 Asymptotics (Big-O) Review Use Case in Computer Science Runtime of algorithm is O(n) means that: in worst case, algorithm requires O(n) operations. In this course, n is typically the size of a dataset. Why is this important? 20 / 21

44 Asymptotics (Big-O) Review Use Case in Computer Science Runtime of algorithm is O(n) means that: in worst case, algorithm requires O(n) operations. In this course, n is typically the size of a dataset. Why is this important? It s an indicator for the scalability of an algorithm. We can only apply O(2 n ) algorithms to tiny datasets. We can apply O(n 2 ) algorithms to medium-sized dataset. We can apply O(nd) algorithms if one of n or d is medium-sized. We can apply O(n) algorithms to huge datasets. 20 / 21

45 Asymptotics (Big-O) Review Decision Tree Example Suppose we have a dataset of n samples and d features. 21 / 21

46 Asymptotics (Big-O) Review Decision Tree Example Suppose we have a dataset of n samples and d features. Classifying a single sample in depth-m decision tree: O(m) You do a constant number of operations at each depth. Note: no dependence on dimension d. 21 / 21

47 Asymptotics (Big-O) Review Decision Tree Example Suppose we have a dataset of n samples and d features. Classifying a single sample in depth-m decision tree: O(m) You do a constant number of operations at each depth. Note: no dependence on dimension d. Fitting a decision stump with n objects and d features: O(n 2 d) if computing each score costs O(n). 21 / 21

48 Asymptotics (Big-O) Review Decision Tree Example Suppose we have a dataset of n samples and d features. Classifying a single sample in depth-m decision tree: O(m) You do a constant number of operations at each depth. Note: no dependence on dimension d. Fitting a decision stump with n objects and d features: O(n 2 d) if computing each score costs O(n). Fitting a decision tree of depth m: Nave analysis: O(2 m ) stumps, so O(2 m n 2 d). But each object appears once at each depth: O(mn 2 d). 21 / 21

49 Asymptotics (Big-O) Review Decision Tree Example Suppose we have a dataset of n samples and d features. Classifying a single sample in depth-m decision tree: O(m) You do a constant number of operations at each depth. Note: no dependence on dimension d. Fitting a decision stump with n objects and d features: O(n 2 d) if computing each score costs O(n). Fitting a decision tree of depth m: Nave analysis: O(2 m ) stumps, so O(2 m n 2 d). But each object appears once at each depth: O(mn 2 d). Finding optimal decision tree: NP-Complete. Hence why we approximate by using a greedy fitting algorithm. 21 / 21

Short Introduction into MATLAB

Short Introduction into MATLAB Short Introduction into MATLAB Christian Schulz christian.schulz@cma.uio.no CMA/IFI - UiO 1. Basics Startup Variables Standard Operations 2. Next Steps Plots Built in Functions Write/Plot to File 3. Programming

More information

Vector: A series of scalars contained in a column or row. Dimensions: How many rows and columns a vector or matrix has.

Vector: A series of scalars contained in a column or row. Dimensions: How many rows and columns a vector or matrix has. ASSIGNMENT 0 Introduction to Linear Algebra (Basics of vectors and matrices) Due 3:30 PM, Tuesday, October 10 th. Assignments should be submitted via e-mail to: matlabfun.ucsd@gmail.com You can also submit

More information

Laboratory 1 Octave Tutorial

Laboratory 1 Octave Tutorial Signals, Spectra and Signal Processing Laboratory 1 Octave Tutorial 1.1 Introduction The purpose of this lab 1 is to become familiar with the GNU Octave 2 software environment. 1.2 Octave Review All laboratory

More information

CPSC 340 Assignment 0 (due Friday September 15 ATE)

CPSC 340 Assignment 0 (due Friday September 15 ATE) CPSC 340 Assignment 0 (due Friday September 5 ATE) Rationale for Assignment 0 : CPSC 340 is tough because it combines knowledge and skills across several disciplines. To succeed in the course, you will

More information

Chapter 6. THE NORMAL DISTRIBUTION

Chapter 6. THE NORMAL DISTRIBUTION Chapter 6. THE NORMAL DISTRIBUTION Introducing Normally Distributed Variables The distributions of some variables like thickness of the eggshell, serum cholesterol concentration in blood, white blood cells

More information

Homework 1 Excel Basics

Homework 1 Excel Basics Homework 1 Excel Basics Excel is a software program that is used to organize information, perform calculations, and create visual displays of the information. When you start up Excel, you will see the

More information

x = 12 x = 12 1x = 16

x = 12 x = 12 1x = 16 2.2 - The Inverse of a Matrix We've seen how to add matrices, multiply them by scalars, subtract them, and multiply one matrix by another. The question naturally arises: Can we divide one matrix by another?

More information

IT 403 Practice Problems (1-2) Answers

IT 403 Practice Problems (1-2) Answers IT 403 Practice Problems (1-2) Answers #1. Using Tukey's Hinges method ('Inclusionary'), what is Q3 for this dataset? 2 3 5 7 11 13 17 a. 7 b. 11 c. 12 d. 15 c (12) #2. How do quartiles and percentiles

More information

Lab #10 Multi-dimensional Arrays

Lab #10 Multi-dimensional Arrays Multi-dimensional Arrays Sheet s Owner Student ID Name Signature Group partner 1. Two-Dimensional Arrays Arrays that we have seen and used so far are one dimensional arrays, where each element is indexed

More information

Module 6: Pinhole camera model Lecture 32: Coordinate system conversion, Changing the image/world coordinate system

Module 6: Pinhole camera model Lecture 32: Coordinate system conversion, Changing the image/world coordinate system The Lecture Contains: Back-projection of a 2D point to 3D 6.3 Coordinate system conversion file:///d /...(Ganesh%20Rana)/MY%20COURSE_Ganesh%20Rana/Prof.%20Sumana%20Gupta/FINAL%20DVSP/lecture%2032/32_1.htm[12/31/2015

More information

CPSC 340: Machine Learning and Data Mining. Non-Parametric Models Fall 2016

CPSC 340: Machine Learning and Data Mining. Non-Parametric Models Fall 2016 CPSC 340: Machine Learning and Data Mining Non-Parametric Models Fall 2016 Admin Course add/drop deadline tomorrow. Assignment 1 is due Friday. Setup your CS undergrad account ASAP to use Handin: https://www.cs.ubc.ca/getacct

More information

An Introduction to R- Programming

An Introduction to R- Programming An Introduction to R- Programming Hadeel Alkofide, Msc, PhD NOT a biostatistician or R expert just simply an R user Some slides were adapted from lectures by Angie Mae Rodday MSc, PhD at Tufts University

More information

How to learn MATLAB? Some predefined variables

How to learn MATLAB? Some predefined variables ECE-S352 Lab 1 MATLAB Tutorial How to learn MATLAB? 1. MATLAB comes with good tutorial and detailed documents. a) Select MATLAB help from the MATLAB Help menu to open the help window. Follow MATLAB s Getting

More information

Chapter 2 Assignment (due Thursday, April 19)

Chapter 2 Assignment (due Thursday, April 19) (due Thursday, April 19) Introduction: The purpose of this assignment is to analyze data sets by creating histograms and scatterplots. You will use the STATDISK program for both. Therefore, you should

More information

Unit I Supplement OpenIntro Statistics 3rd ed., Ch. 1

Unit I Supplement OpenIntro Statistics 3rd ed., Ch. 1 Unit I Supplement OpenIntro Statistics 3rd ed., Ch. 1 KEY SKILLS: Organize a data set into a frequency distribution. Construct a histogram to summarize a data set. Compute the percentile for a particular

More information

Homework # 4. Example: Age in years. Answer: Discrete, quantitative, ratio. a) Year that an event happened, e.g., 1917, 1950, 2000.

Homework # 4. Example: Age in years. Answer: Discrete, quantitative, ratio. a) Year that an event happened, e.g., 1917, 1950, 2000. Homework # 4 1. Attribute Types Classify the following attributes as binary, discrete, or continuous. Further classify the attributes as qualitative (nominal or ordinal) or quantitative (interval or ratio).

More information

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks MATLAB Basics Stanley Liang, PhD York University Configure a MATLAB Package Get a MATLAB Student License on Matworks Visit MathWorks at https://www.mathworks.com/ It is recommended signing up with a student

More information

AP Statistics Prerequisite Packet

AP Statistics Prerequisite Packet Types of Data Quantitative (or measurement) Data These are data that take on numerical values that actually represent a measurement such as size, weight, how many, how long, score on a test, etc. For these

More information

Lecture 2: Variables, Vectors and Matrices in MATLAB

Lecture 2: Variables, Vectors and Matrices in MATLAB Lecture 2: Variables, Vectors and Matrices in MATLAB Dr. Mohammed Hawa Electrical Engineering Department University of Jordan EE201: Computer Applications. See Textbook Chapter 1 and Chapter 2. Variables

More information

MATLAB INTRODUCTION. Matlab can be used interactively as a super hand calculator, or, more powerfully, run using scripts (i.e., programs).

MATLAB INTRODUCTION. Matlab can be used interactively as a super hand calculator, or, more powerfully, run using scripts (i.e., programs). L A B 6 M A T L A B MATLAB INTRODUCTION Matlab is a commercial product that is used widely by students and faculty and researchers at UTEP. It provides a "high-level" programming environment for computing

More information

Objectives. 1 Running, and Interface Layout. 2 Toolboxes, Documentation and Tutorials. 3 Basic Calculations. PS 12a Laboratory 1 Spring 2014

Objectives. 1 Running, and Interface Layout. 2 Toolboxes, Documentation and Tutorials. 3 Basic Calculations. PS 12a Laboratory 1 Spring 2014 PS 12a Laboratory 1 Spring 2014 Objectives This session is a tutorial designed to a very quick overview of some of the numerical skills that you ll need to get started. Throughout the tutorial, the instructors

More information

Matrix algebra. Basics

Matrix algebra. Basics Matrix.1 Matrix algebra Matrix algebra is very prevalently used in Statistics because it provides representations of models and computations in a much simpler manner than without its use. The purpose of

More information

CSE/NEUBEH 528 Homework 0: Introduction to Matlab

CSE/NEUBEH 528 Homework 0: Introduction to Matlab CSE/NEUBEH 528 Homework 0: Introduction to Matlab (Practice only: Do not turn in) Okay, let s begin! Open Matlab by double-clicking the Matlab icon (on MS Windows systems) or typing matlab at the prompt

More information

EE 301 Signals & Systems I MATLAB Tutorial with Questions

EE 301 Signals & Systems I MATLAB Tutorial with Questions EE 301 Signals & Systems I MATLAB Tutorial with Questions Under the content of the course EE-301, this semester, some MATLAB questions will be assigned in addition to the usual theoretical questions. This

More information

Lesson 16: More on Modeling Relationships with a Line

Lesson 16: More on Modeling Relationships with a Line Student Outcomes Students use the least squares line to predict values for a given data set. Students use residuals to evaluate the accuracy of predictions based on the least squares line. Lesson Notes

More information

CIS 520, Machine Learning, Fall 2015: Assignment 7 Due: Mon, Nov 16, :59pm, PDF to Canvas [100 points]

CIS 520, Machine Learning, Fall 2015: Assignment 7 Due: Mon, Nov 16, :59pm, PDF to Canvas [100 points] CIS 520, Machine Learning, Fall 2015: Assignment 7 Due: Mon, Nov 16, 2015. 11:59pm, PDF to Canvas [100 points] Instructions. Please write up your responses to the following problems clearly and concisely.

More information

OUTLINES. Variable names in MATLAB. Matrices, Vectors and Scalar. Entering a vector Colon operator ( : ) Mathematical operations on vectors.

OUTLINES. Variable names in MATLAB. Matrices, Vectors and Scalar. Entering a vector Colon operator ( : ) Mathematical operations on vectors. 1 LECTURE 3 OUTLINES Variable names in MATLAB Examples Matrices, Vectors and Scalar Scalar Vectors Entering a vector Colon operator ( : ) Mathematical operations on vectors examples 2 VARIABLE NAMES IN

More information

Data organization. So what kind of data did we collect?

Data organization. So what kind of data did we collect? Data organization Suppose we go out and collect some data. What do we do with it? First we need to figure out what kind of data we have. To illustrate, let s do a simple experiment and collect the height

More information

CAMBRIDGE TECHNOLOGY IN MATHS Year 11 TI-89 User guide

CAMBRIDGE TECHNOLOGY IN MATHS Year 11 TI-89 User guide Year 11 TI-89 User guide Page 1 of 17 CAMBRIDGE TECHNOLOGY IN MATHS Year 11 TI-89 User guide CONTENTS Getting started 2 Linear equations and graphs 3 Statistics 5 Sequences 11 Business and related mathematics

More information

hp calculators hp 39g+ & hp 39g/40g Using Matrices How are matrices stored? How do I solve a system of equations? Quick and easy roots of a polynomial

hp calculators hp 39g+ & hp 39g/40g Using Matrices How are matrices stored? How do I solve a system of equations? Quick and easy roots of a polynomial hp calculators hp 39g+ Using Matrices Using Matrices The purpose of this section of the tutorial is to cover the essentials of matrix manipulation, particularly in solving simultaneous equations. How are

More information

Statistics Lecture 6. Looking at data one variable

Statistics Lecture 6. Looking at data one variable Statistics 111 - Lecture 6 Looking at data one variable Chapter 1.1 Moore, McCabe and Craig Probability vs. Statistics Probability 1. We know the distribution of the random variable (Normal, Binomial)

More information

Bar Graphs and Dot Plots

Bar Graphs and Dot Plots CONDENSED LESSON 1.1 Bar Graphs and Dot Plots In this lesson you will interpret and create a variety of graphs find some summary values for a data set draw conclusions about a data set based on graphs

More information

Objectives. 1 Basic Calculations. 2 Matrix Algebra. Physical Sciences 12a Lab 0 Spring 2016

Objectives. 1 Basic Calculations. 2 Matrix Algebra. Physical Sciences 12a Lab 0 Spring 2016 Physical Sciences 12a Lab 0 Spring 2016 Objectives This lab is a tutorial designed to a very quick overview of some of the numerical skills that you ll need to get started in this class. It is meant to

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab What is Matlab The software program called Matlab (short for MATrix LABoratory) is arguably the world standard for engineering- mainly because of its ability to do very quick prototyping.

More information

1 Introduction. 1.1 What is Statistics?

1 Introduction. 1.1 What is Statistics? 1 Introduction 1.1 What is Statistics? MATH1015 Biostatistics Week 1 Statistics is a scientific study of numerical data based on natural phenomena. It is also the science of collecting, organising, interpreting

More information

Physics 326G Winter Class 2. In this class you will learn how to define and work with arrays or vectors.

Physics 326G Winter Class 2. In this class you will learn how to define and work with arrays or vectors. Physics 326G Winter 2008 Class 2 In this class you will learn how to define and work with arrays or vectors. Matlab is designed to work with arrays. An array is a list of numbers (or other things) arranged

More information

NOTES TO CONSIDER BEFORE ATTEMPTING EX 1A TYPES OF DATA

NOTES TO CONSIDER BEFORE ATTEMPTING EX 1A TYPES OF DATA NOTES TO CONSIDER BEFORE ATTEMPTING EX 1A TYPES OF DATA Statistics is concerned with scientific methods of collecting, recording, organising, summarising, presenting and analysing data from which future

More information

Elementary Statistics

Elementary Statistics 1 Elementary Statistics Introduction Statistics is the collection of methods for planning experiments, obtaining data, and then organizing, summarizing, presenting, analyzing, interpreting, and drawing

More information

Glossary Common Core Curriculum Maps Math/Grade 6 Grade 8

Glossary Common Core Curriculum Maps Math/Grade 6 Grade 8 Glossary Common Core Curriculum Maps Math/Grade 6 Grade 8 Grade 6 Grade 8 absolute value Distance of a number (x) from zero on a number line. Because absolute value represents distance, the absolute value

More information

CS/ENGRD 2110 Object-Oriented Programming and Data Structures Spring 2012 Thorsten Joachims. Lecture 10: Asymptotic Complexity and

CS/ENGRD 2110 Object-Oriented Programming and Data Structures Spring 2012 Thorsten Joachims. Lecture 10: Asymptotic Complexity and CS/ENGRD 2110 Object-Oriented Programming and Data Structures Spring 2012 Thorsten Joachims Lecture 10: Asymptotic Complexity and What Makes a Good Algorithm? Suppose you have two possible algorithms or

More information

Matrices. Chapter Matrix A Mathematical Definition Matrix Dimensions and Notation

Matrices. Chapter Matrix A Mathematical Definition Matrix Dimensions and Notation Chapter 7 Introduction to Matrices This chapter introduces the theory and application of matrices. It is divided into two main sections. Section 7.1 discusses some of the basic properties and operations

More information

Introduction to MATLAB

Introduction to MATLAB CHEE MATLAB Tutorial Introduction to MATLAB Introduction In this tutorial, you will learn how to enter matrices and perform some matrix operations using MATLAB. MATLAB is an interactive program for numerical

More information

MATLAB TUTORIAL WORKSHEET

MATLAB TUTORIAL WORKSHEET MATLAB TUTORIAL WORKSHEET What is MATLAB? Software package used for computation High-level programming language with easy to use interactive environment Access MATLAB at Tufts here: https://it.tufts.edu/sw-matlabstudent

More information

Python Advance Course via Astronomy street. Sérgio Sousa (CAUP) ExoEarths Team (http://www.astro.up.pt/exoearths/)

Python Advance Course via Astronomy street. Sérgio Sousa (CAUP) ExoEarths Team (http://www.astro.up.pt/exoearths/) Python Advance Course via Astronomy street Sérgio Sousa (CAUP) ExoEarths Team (http://www.astro.up.pt/exoearths/) Advance Course Outline: Python Advance Course via Astronomy street Lesson 1: Python basics

More information

Essentials for the TI-83+

Essentials for the TI-83+ Essentials for the TI-83+ Special Keys. O S O O Press and release, then press the appropriate key to access the 2nd (yellow) operation. Press and release to access characters and letters indicated above

More information

Chapter 6. THE NORMAL DISTRIBUTION

Chapter 6. THE NORMAL DISTRIBUTION Chapter 6. THE NORMAL DISTRIBUTION Introducing Normally Distributed Variables The distributions of some variables like thickness of the eggshell, serum cholesterol concentration in blood, white blood cells

More information

SEARCHING, SORTING, AND ASYMPTOTIC COMPLEXITY. Lecture 11 CS2110 Spring 2016

SEARCHING, SORTING, AND ASYMPTOTIC COMPLEXITY. Lecture 11 CS2110 Spring 2016 1 SEARCHING, SORTING, AND ASYMPTOTIC COMPLEXITY Lecture 11 CS2110 Spring 2016 Time spent on A2 2 Histogram: [inclusive:exclusive) [0:1): 0 [1:2): 24 ***** [2:3): 84 ***************** [3:4): 123 *************************

More information

Matrix Inverse 2 ( 2) 1 = 2 1 2

Matrix Inverse 2 ( 2) 1 = 2 1 2 Name: Matrix Inverse For Scalars, we have what is called a multiplicative identity. This means that if we have a scalar number, call it r, then r multiplied by the multiplicative identity equals r. Without

More information

Chapter 1 Histograms, Scatterplots, and Graphs of Functions

Chapter 1 Histograms, Scatterplots, and Graphs of Functions Chapter 1 Histograms, Scatterplots, and Graphs of Functions 1.1 Using Lists for Data Entry To enter data into the calculator you use the statistics menu. You can store data into lists labeled L1 through

More information

1 Introduction to Matlab

1 Introduction to Matlab 1 Introduction to Matlab 1. What is Matlab? Matlab is a computer program designed to do mathematics. You might think of it as a super-calculator. That is, once Matlab has been started, you can enter computations,

More information

Ch.1 Introduction. Why Machine Learning (ML)?

Ch.1 Introduction. Why Machine Learning (ML)? Syllabus, prerequisites Ch.1 Introduction Notation: Means pencil-and-paper QUIZ Means coding QUIZ Why Machine Learning (ML)? Two problems with conventional if - else decision systems: brittleness: The

More information

Stokes Modelling Workshop

Stokes Modelling Workshop Stokes Modelling Workshop 14/06/2016 Introduction to Matlab www.maths.nuigalway.ie/modellingworkshop16/files 14/06/2016 Stokes Modelling Workshop Introduction to Matlab 1 / 16 Matlab As part of this crash

More information

Introduction. Matlab for Psychologists. Overview. Coding v. button clicking. Hello, nice to meet you. Variables

Introduction. Matlab for Psychologists. Overview. Coding v. button clicking. Hello, nice to meet you. Variables Introduction Matlab for Psychologists Matlab is a language Simple rules for grammar Learn by using them There are many different ways to do each task Don t start from scratch - build on what other people

More information

Graphing and Equations

Graphing and Equations Graphing and Equations Plotting Functions (Graphing) Let's see how to plot the graphs of functions. If we want to graph the function f(x) on the interval [a,b] then we type in: plot(f(x), x=a..b) That

More information

1.3 Graphical Summaries of Data

1.3 Graphical Summaries of Data Arkansas Tech University MATH 3513: Applied Statistics I Dr. Marcel B. Finan 1.3 Graphical Summaries of Data In the previous section we discussed numerical summaries of either a sample or a data. In this

More information

LAB 1 INSTRUCTIONS DESCRIBING AND DISPLAYING DATA

LAB 1 INSTRUCTIONS DESCRIBING AND DISPLAYING DATA LAB 1 INSTRUCTIONS DESCRIBING AND DISPLAYING DATA This lab will assist you in learning how to summarize and display categorical and quantitative data in StatCrunch. In particular, you will learn how to

More information

Python for Data Analysis. Prof.Sushila Aghav-Palwe Assistant Professor MIT

Python for Data Analysis. Prof.Sushila Aghav-Palwe Assistant Professor MIT Python for Data Analysis Prof.Sushila Aghav-Palwe Assistant Professor MIT Four steps to apply data analytics: 1. Define your Objective What are you trying to achieve? What could the result look like? 2.

More information

Introduction to Octave/Matlab. Deployment of Telecommunication Infrastructures

Introduction to Octave/Matlab. Deployment of Telecommunication Infrastructures Introduction to Octave/Matlab Deployment of Telecommunication Infrastructures 1 What is Octave? Software for numerical computations and graphics Particularly designed for matrix computations Solving equations,

More information

Boolean Logic & Branching Lab Conditional Tests

Boolean Logic & Branching Lab Conditional Tests I. Boolean (Logical) Operations Boolean Logic & Branching Lab Conditional Tests 1. Review of Binary logic Three basic logical operations are commonly used in binary logic: and, or, and not. Table 1 lists

More information

Introduction to MATLAB

Introduction to MATLAB UNIVERSITY OF CHICAGO Booth School of Business Bus 35120 Portfolio Management Prof. Lubos Pastor Introduction to MATLAB The purpose of this note is to help you get acquainted with the basics of Matlab.

More information

AP Statistics Summer Assignment:

AP Statistics Summer Assignment: AP Statistics Summer Assignment: Read the following and use the information to help answer your summer assignment questions. You will be responsible for knowing all of the information contained in this

More information

Linear Algebra Review

Linear Algebra Review CS 1674: Intro to Computer Vision Linear Algebra Review Prof. Adriana Kovashka University of Pittsburgh January 11, 2018 What are images? (in Matlab) Matlab treats images as matrices of numbers To proceed,

More information

2.1 Objectives. Math Chapter 2. Chapter 2. Variable. Categorical Variable EXPLORING DATA WITH GRAPHS AND NUMERICAL SUMMARIES

2.1 Objectives. Math Chapter 2. Chapter 2. Variable. Categorical Variable EXPLORING DATA WITH GRAPHS AND NUMERICAL SUMMARIES EXPLORING DATA WITH GRAPHS AND NUMERICAL SUMMARIES Chapter 2 2.1 Objectives 2.1 What Are the Types of Data? www.managementscientist.org 1. Know the definitions of a. Variable b. Categorical versus quantitative

More information

Prepare a stem-and-leaf graph for the following data. In your final display, you should arrange the leaves for each stem in increasing order.

Prepare a stem-and-leaf graph for the following data. In your final display, you should arrange the leaves for each stem in increasing order. Chapter 2 2.1 Descriptive Statistics A stem-and-leaf graph, also called a stemplot, allows for a nice overview of quantitative data without losing information on individual observations. It can be a good

More information

Getting started with MATLAB

Getting started with MATLAB Getting started with MATLAB You can work through this tutorial in the computer classes over the first 2 weeks, or in your own time. The Farber and Goldfarb computer classrooms have working Matlab, but

More information

Applied Calculus. Lab 1: An Introduction to R

Applied Calculus. Lab 1: An Introduction to R 1 Math 131/135/194, Fall 2004 Applied Calculus Profs. Kaplan & Flath Macalester College Lab 1: An Introduction to R Goal of this lab To begin to see how to use R. What is R? R is a computer package for

More information

MATLAB Introductory Course Computer Exercise Session

MATLAB Introductory Course Computer Exercise Session MATLAB Introductory Course Computer Exercise Session This course is a basic introduction for students that did not use MATLAB before. The solutions will not be collected. Work through the course within

More information

Dilations With Matrices

Dilations With Matrices About the Lesson In this activity, students use matrices to perform dilations centered at the origin of triangles. As a result, students will: Explore the effect of the scale factor on the size relationship

More information

MATLAB for beginners. KiJung Yoon, 1. 1 Center for Learning and Memory, University of Texas at Austin, Austin, TX 78712, USA

MATLAB for beginners. KiJung Yoon, 1. 1 Center for Learning and Memory, University of Texas at Austin, Austin, TX 78712, USA MATLAB for beginners KiJung Yoon, 1 1 Center for Learning and Memory, University of Texas at Austin, Austin, TX 78712, USA 1 MATLAB Tutorial I What is a matrix? 1) A way of representation for data (# of

More information

Exploring Fractals through Geometry and Algebra. Kelly Deckelman Ben Eggleston Laura Mckenzie Patricia Parker-Davis Deanna Voss

Exploring Fractals through Geometry and Algebra. Kelly Deckelman Ben Eggleston Laura Mckenzie Patricia Parker-Davis Deanna Voss Exploring Fractals through Geometry and Algebra Kelly Deckelman Ben Eggleston Laura Mckenzie Patricia Parker-Davis Deanna Voss Learning Objective and skills practiced Students will: Learn the three criteria

More information

Chapter 6: DESCRIPTIVE STATISTICS

Chapter 6: DESCRIPTIVE STATISTICS Chapter 6: DESCRIPTIVE STATISTICS Random Sampling Numerical Summaries Stem-n-Leaf plots Histograms, and Box plots Time Sequence Plots Normal Probability Plots Sections 6-1 to 6-5, and 6-7 Random Sampling

More information

What is MATLAB? It is a high-level programming language. for numerical computations for symbolic computations for scientific visualizations

What is MATLAB? It is a high-level programming language. for numerical computations for symbolic computations for scientific visualizations What is MATLAB? It stands for MATrix LABoratory It is developed by The Mathworks, Inc (http://www.mathworks.com) It is an interactive, integrated, environment for numerical computations for symbolic computations

More information

Practical 4: The Integrate & Fire neuron

Practical 4: The Integrate & Fire neuron Practical 4: The Integrate & Fire neuron 2014 version by Mark van Rossum 2018 version by Matthias Hennig and Theoklitos Amvrosiadis 16th October 2018 1 Introduction to MATLAB basics You can start MATLAB

More information

Univariate Statistics Summary

Univariate Statistics Summary Further Maths Univariate Statistics Summary Types of Data Data can be classified as categorical or numerical. Categorical data are observations or records that are arranged according to category. For example:

More information

CSE 146. Asymptotic Analysis Interview Question of the Day Homework 1 & Project 1 Work Session

CSE 146. Asymptotic Analysis Interview Question of the Day Homework 1 & Project 1 Work Session CSE 146 Asymptotic Analysis Interview Question of the Day Homework 1 & Project 1 Work Session Comparing Algorithms Rough Estimate Ignores Details Or really: independent of details What are some details

More information

STA 570 Spring Lecture 5 Tuesday, Feb 1

STA 570 Spring Lecture 5 Tuesday, Feb 1 STA 570 Spring 2011 Lecture 5 Tuesday, Feb 1 Descriptive Statistics Summarizing Univariate Data o Standard Deviation, Empirical Rule, IQR o Boxplots Summarizing Bivariate Data o Contingency Tables o Row

More information

From Raw Data to Meaningful Features

From Raw Data to Meaningful Features From Raw Data to Meaningful Features Andreas Damianou University of Sheffield, UK Summer School on Machine Learning and Data Science 27 June, 2016 Makerere University, Uganda Working with data Data-science:

More information

Matrices and three-dimensional graphing

Matrices and three-dimensional graphing Matrices and three-dimensional graphing Module Summary Technical Tasks: 1. Create matrices in Matlab by assigning values, using for loops, or importing data 2. Do simple arithmetic with matrices in Matlab

More information

AND NUMERICAL SUMMARIES. Chapter 2

AND NUMERICAL SUMMARIES. Chapter 2 EXPLORING DATA WITH GRAPHS AND NUMERICAL SUMMARIES Chapter 2 2.1 What Are the Types of Data? 2.1 Objectives www.managementscientist.org 1. Know the definitions of a. Variable b. Categorical versus quantitative

More information

D-Optimal Designs. Chapter 888. Introduction. D-Optimal Design Overview

D-Optimal Designs. Chapter 888. Introduction. D-Optimal Design Overview Chapter 888 Introduction This procedure generates D-optimal designs for multi-factor experiments with both quantitative and qualitative factors. The factors can have a mixed number of levels. For example,

More information

The Probabilistic Method

The Probabilistic Method The Probabilistic Method Po-Shen Loh June 2010 1 Warm-up 1. (Russia 1996/4 In the Duma there are 1600 delegates, who have formed 16000 committees of 80 persons each. Prove that one can find two committees

More information

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, March 8

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, March 8 CS/NEUR125 Brains, Minds, and Machines Lab 6: Inferring Location from Hippocampal Place Cells Due: Wednesday, March 8 This lab explores how place cells in the hippocampus encode the location of an animal

More information

EOSC 352 MATLAB Review

EOSC 352 MATLAB Review EOSC 352 MATLAB Review To use MATLAB, you can either (1) type commands in the window (i.e., at the command line ) or (2) type in the name of a file you have made, whose name ends in.m and which contains

More information

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9 Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9 Contents 1 Introduction to Using Excel Spreadsheets 2 1.1 A Serious Note About Data Security.................................... 2 1.2

More information

Bar Charts and Frequency Distributions

Bar Charts and Frequency Distributions Bar Charts and Frequency Distributions Use to display the distribution of categorical (nominal or ordinal) variables. For the continuous (numeric) variables, see the page Histograms, Descriptive Stats

More information

Transformations of Exponential Functions

Transformations of Exponential Functions 7-2 Transformations of Exponential Functions PearsonTEXAS.com SOLVE IT! f and g are exponential functions with the same base. Is the graph of g a compression, a reflection, or a translation of the graph

More information

ECLT 5810 Data Preprocessing. Prof. Wai Lam

ECLT 5810 Data Preprocessing. Prof. Wai Lam ECLT 5810 Data Preprocessing Prof. Wai Lam Why Data Preprocessing? Data in the real world is imperfect incomplete: lacking attribute values, lacking certain attributes of interest, or containing only aggregate

More information

Math 1526: Excel Lab 5 Summer 2004

Math 1526: Excel Lab 5 Summer 2004 Math 5: Excel Lab 5 Summer Matrix Algebra In order to complete matrix operations using Excel, you must learn how to use arrays. First you must learn how to enter a matrix into a spreadsheet. For practice,

More information

Ch.1 Introduction. Why Machine Learning (ML)? manual designing of rules requires knowing how humans do it.

Ch.1 Introduction. Why Machine Learning (ML)? manual designing of rules requires knowing how humans do it. Ch.1 Introduction Syllabus, prerequisites Notation: Means pencil-and-paper QUIZ Means coding QUIZ Code respository for our text: https://github.com/amueller/introduction_to_ml_with_python Why Machine Learning

More information

LAB #2: SAMPLING, SAMPLING DISTRIBUTIONS, AND THE CLT

LAB #2: SAMPLING, SAMPLING DISTRIBUTIONS, AND THE CLT NAVAL POSTGRADUATE SCHOOL LAB #2: SAMPLING, SAMPLING DISTRIBUTIONS, AND THE CLT Statistics (OA3102) Lab #2: Sampling, Sampling Distributions, and the Central Limit Theorem Goal: Use R to demonstrate sampling

More information

WHOLE NUMBER AND DECIMAL OPERATIONS

WHOLE NUMBER AND DECIMAL OPERATIONS WHOLE NUMBER AND DECIMAL OPERATIONS Whole Number Place Value : 5,854,902 = Ten thousands thousands millions Hundred thousands Ten thousands Adding & Subtracting Decimals : Line up the decimals vertically.

More information

How Do I Choose Which Type of Graph to Use?

How Do I Choose Which Type of Graph to Use? How Do I Choose Which Type of Graph to Use? When to Use...... a Line graph. Line graphs are used to track changes over short and long periods of time. When smaller changes exist, line graphs are better

More information

A Guide to Using Some Basic MATLAB Functions

A Guide to Using Some Basic MATLAB Functions A Guide to Using Some Basic MATLAB Functions UNC Charlotte Robert W. Cox This document provides a brief overview of some of the essential MATLAB functionality. More thorough descriptions are available

More information

= 3 + (5*4) + (1/2)*(4/2)^2.

= 3 + (5*4) + (1/2)*(4/2)^2. Physics 100 Lab 1: Use of a Spreadsheet to Analyze Data by Kenneth Hahn and Michael Goggin In this lab you will learn how to enter data into a spreadsheet and to manipulate the data in meaningful ways.

More information

R for IR. Created by Narren Brown, Grinnell College, and Diane Saphire, Trinity University

R for IR. Created by Narren Brown, Grinnell College, and Diane Saphire, Trinity University R for IR Created by Narren Brown, Grinnell College, and Diane Saphire, Trinity University For presentation at the June 2013 Meeting of the Higher Education Data Sharing Consortium Table of Contents I.

More information

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial 1 Matlab Tutorial 2 Lecture Learning Objectives Each student should be able to: Describe the Matlab desktop Explain the basic use of Matlab variables Explain the basic use of Matlab scripts Explain the

More information

Introduction to MATLAB programming: Fundamentals

Introduction to MATLAB programming: Fundamentals Introduction to MATLAB programming: Fundamentals Shan He School for Computational Science University of Birmingham Module 06-23836: Computational Modelling with MATLAB Outline Outline of Topics Why MATLAB?

More information

Creating Graphs Using SAS ODS Graphics Designer

Creating Graphs Using SAS ODS Graphics Designer Creating Graphs Using SAS ODS Graphics Designer William Knabe Former Director of Statistical Applications, UI Information Technology Services SAS Summer Training Institute 2016 Slide 1 Overview. Evolution

More information

CS 231: Algorithmic Problem Solving

CS 231: Algorithmic Problem Solving CS 231: Algorithmic Problem Solving Naomi Nishimura Module 5 Date of this version: June 14, 2018 WARNING: Drafts of slides are made available prior to lecture for your convenience. After lecture, slides

More information

Section 2-2. Histograms, frequency polygons and ogives. Friday, January 25, 13

Section 2-2. Histograms, frequency polygons and ogives. Friday, January 25, 13 Section 2-2 Histograms, frequency polygons and ogives 1 Histograms 2 Histograms The histogram is a graph that displays the data by using contiguous vertical bars of various heights to represent the frequencies

More information