This advanced textbook on modeling, data analysis and numerical techniques for marine science has been developed from a course taught by the authors for many years at the Woods Hole Oceanographic Institute. The first part covers statistics: singular value decomposition, error propagation, least squares regression, principal component analysis, time series analysis and objective interpolation. The second part deals with modeling techniques: finite differences, stability analysis and optimization. The third part describes case studies of actual ocean models of ever increasing dimensionality and complexity, starting with zero-dimensional models and finishing with three-dimensional general circulation models. Throughout the book hands-on computational examples are introduced using the MATLAB programming language and the principles of scientific visualization are emphasised. Ideal as a textbook for advanced students of oceanography on courses in data analysis and numerical modeling, the book is also an invaluable resource for a broad range of scientists undertaking modeling in chemical, biological, geological and physical oceanography.