This video talks about the different roles that the various power supply decoupling and filter capacitors serve on a circuit board. While the video doesn't cover how to select the values, it does illustrate and demonstrate why both "bulk" electrolytic caps and high frequency (usually ceramic) caps are used, and why they are placed where they are. There is a lot written about the topic of selecting values - google is your friend. Here is one good example which includes some good general guidelines:
https://pdfs.semanticscholar.org/fe9c/29dde27b7afd7a893486fcfcc4c2885a8c8b.pdf
Here is a good extensive paper from Murata:
http://www.murata.com/~/media/webrenewal/support/library/catalog/products/emc/emifil/c39e.ashx
Nice app note from Maxim:
https://www.maximintegrated.com/en/app-notes/index.mvp/id/5450
Really good resource from Texas Instruments:
http://www.ti.com/lit/ml/slyp173/slyp173.pdf