# Math Help - Mathmatica data for regression

1. ## Mathmatica data for regression

Hello.

How to convert two lists like these:

a={2,3,4,5}
b={4,5,6,7}

to a set of data like this:

data={{2,4},{3,5},{4,6},{5,7}}

How to do this? :/

thanks.

2. If you've already assigned the variables a and b, try this command:

Code:
Thread[a,b]
Otherwise, go with

Code:
Thread[{2,3,4,5},{4,5,6,7}]
Cheers.

3. Originally Posted by Ackbeet
If you've already assigned the variables a and b, try this command:

Code:
Thread[a,b]
Otherwise, go with

Code:
Thread[{2,3,4,5},{4,5,6,7}]
Cheers.