46838-S99 Machine Learning for Computational Finance MATLAB Tutorial

Introduction

The primary purpose of this tutorial is to give you a little experience in using MATLAB, which you will need for upcoming assignments. A secondary benefit is practice on combinatorics; methods of counting. This will help with analyzing numbers of possible instances, size of concept space and hypothesis space, complexity of machine learning algorithms, etc. Actions you should take will be numbered and printed in italics.

Getting Started

MATLAB Variables

Matlab Functions

.m files are functions. So long as they are in the path, they are invoked as follows:

>> [output] = fx(parameter);

parameter may be a list of parameters, and output may be a list of variables. Once the command is invoked, the variables are in memory and can be further manipulated.

Typing

>> output

Will simply list the content of the variable 'output'.

How to use the .m files

factorial.m

n_choose_k.m

General


Rosie Jones
Last modified: Sat Mar 27 12:06:28 EST 1999