From the course: Modeling Market Prices Using Stochastic Processes with Wolfram Language

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

MapThread

MapThread

So remember here, what we're doing is that we've got matrices and lists of things. When you want to apply a function individually over a lists of sub-lists, and you just want to say, so I've got a group of sub-lists. In the first sub-list, they're all a values, in the second sub-list, they're all b values. And what I would like to do is take the function and apply them to the corresponding elements in each sublist. So I'm going to have f of the first elements in each of them, a1 and b1, and then f of the second elements, and so on. So it's a way of applying a function down and then joining the elements together. So you're doing two operations; you're mapping and threading and hence the name. And that's what we're doing here. Because remember this is a list of sub-lists. And I'm doing it for each of the stocks. So what I want to do is look at the quantile plot for each of the stocks. Okay. And I'm going to label it with the names of each of the symbols. Now why do I want to do that?…

Contents