|
1456 | 1456 | "cell_type": "markdown", |
1457 | 1457 | "metadata": {}, |
1458 | 1458 | "source": [ |
1459 | | - "If you've finally managed to get it to all come together, your map should look something like this (broadly, that's actually the result of a _1:Many_ (_1:n_) join since each LSOA has in a given borough has the same value whereas our example now only contains boroughs, not LSOAs:\n", |
| 1459 | + "If you've managed to get it to all come together, your map should look something like the one below, though here you can see that it's actually the result of a _1:Many_ (_1:n_) join since each LSOA in a given borough has been given the same value whereas our example now only contains boroughs, not LSOAs:\n", |
1460 | 1460 | "\n", |
1461 | 1461 | "" |
1462 | 1462 | ] |
|
1485 | 1485 | "cell_type": "markdown", |
1486 | 1486 | "metadata": {}, |
1487 | 1487 | "source": [ |
1488 | | - "### Exercises\n", |
| 1488 | + "## Additional Exercises\n", |
1489 | 1489 | "\n", |
1490 | | - "Finally, here are some exercises to help you to reinforce, and extent upon, what you have learned above and throughout the module. " |
| 1490 | + "Finally, here are some exercises to help reinforce what you have learned above... and throughout the module. " |
1491 | 1491 | ] |
1492 | 1492 | }, |
1493 | 1493 | { |
1494 | 1494 | "cell_type": "markdown", |
1495 | 1495 | "metadata": {}, |
1496 | 1496 | "source": [ |
1497 | | - "**Exercise 1**\n", |
| 1497 | + "#### Task 8.1\n", |
1498 | 1498 | "\n", |
1499 | | - "Build on the (looping) code for loopingcalculating correlations for all boroughs to do similar, but instead of calculating correlations, fit regressions (for specified variables in a DF) for ALL boroughs, summarising the results in a table. You may find this [SO question and answer](https://stackoverflow.com/questions/24088439/how-to-apply-ols-from-statsmodels-to-groupby) useful to guide you. " |
| 1499 | + "Build on the (looping) code for calculating correlations for all boroughs, but instead of calculating correlations you should fit regressions (for specified variables in a df) for ALL boroughs and summarise the results in a table. You may find this [SO question and answer](https://stackoverflow.com/questions/24088439/how-to-apply-ols-from-statsmodels-to-groupby) useful as a guide. " |
1500 | 1500 | ] |
1501 | 1501 | }, |
1502 | 1502 | { |
|
1512 | 1512 | "cell_type": "markdown", |
1513 | 1513 | "metadata": {}, |
1514 | 1514 | "source": [ |
1515 | | - "**Excercise 2**\n", |
| 1515 | + "#### Task 8.2\n", |
1516 | 1516 | "\n", |
1517 | | - "You may have noticed above that we repeated quite a lot of code, but with slight variations in object names, when fitting and analysing the regression models. In circumstances like that (when you are repeating code), it can he useful to write yourself a 'helper function' to speed up your analysis. \n", |
| 1517 | + "You may have noticed above that we repeated quite a lot of code, but with slight variations in variable and object names, when fitting and analysing the regression models. In circumstances like that (when you are repeating code), it can he useful to write yourself a 'helper function' to speed up your analysis. \n", |
1518 | 1518 | "\n", |
1519 | 1519 | "For this exercise, write a helper function to: \n", |
1520 | 1520 | "- read a statsmodels.api OLS model and the data it uses\n", |
|
0 commit comments