MATLAB for Brain and Cognitive Scientists by Mike X Cohen
Author:Mike X Cohen [Cohen, Mike]
Language: eng
Format: epub, pdf
Publisher: MIT Press
Published: 2017-05-12T00:00:00+00:00
16.7âExercises
1.âIn this exercise, you will explore the effects of correlation strength and sample size on simulated correlated data. Write a triple-loop to create two signals of different lengths and correlation strengths and 100 iterations (trials) of each length-strength pair. For each simulated correlation, compute the squared distance between the true correlation that you specified and the estimated correlation coefficient. Plot the trial-averaged results in two 2D images (one image for average correlation coefficients, and one image for the average distance to the true correlation. How do you interpret the resultsâis it better to have a strong effect or more data?
2.âSo far youâve learned only how to create a bivariate data set with known correlation. What about a multivariate data set with a known covariance structure? This can be implemented by constructing the desired covariance matrix and scaling random numbers by the Cholesky factorization of that covariance matrix (the Cholesky factorization is a way to represent a symmetric matrix using two triangular matrices). You can also create multivariate correlated data using eigendecomposition, which youâll learn about in the next chapter. Below is code to create a 1,000-by-3 matrix of correlated random numbers. Perform a sanity check to test whether the data show the requested covariance matrix.
Download
MATLAB for Brain and Cognitive Scientists by Mike X Cohen.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Art of Thinking Clearly by Rolf Dobelli(9816)
Mindhunter: Inside the FBI's Elite Serial Crime Unit by John E. Douglas & Mark Olshaker(8656)
Change Your Questions, Change Your Life by Marilee Adams(7324)
Nudge - Improving Decisions about Health, Wealth, and Happiness by Thaler Sunstein(7199)
Mastermind: How to Think Like Sherlock Holmes by Maria Konnikova(6898)
The Power of Now: A Guide to Spiritual Enlightenment by Eckhart Tolle(5295)
Men In Love by Nancy Friday(4938)
Altered Sensations by David Pantalony(4834)
Factfulness: Ten Reasons We're Wrong About the World – and Why Things Are Better Than You Think by Hans Rosling(4458)
The Confidence Code by Katty Kay(3996)
Thinking in Bets by Annie Duke(3973)
Man and His Symbols by Carl Gustav Jung(3807)
The Worm at the Core by Sheldon Solomon(3298)
Why Buddhism is True by Robert Wright(3262)
Three Women by Lisa Taddeo(3256)
Liar's Poker by Michael Lewis(3193)
Descartes' Error by Antonio Damasio(3141)
The Inner Life of Animals by Peter Wohlleben(3076)
The Power of Mindful Learning by Ellen J. Langer(3058)
