Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor typos fixes #1064

Merged
merged 2 commits into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions tutorials/W2D3_BiologicalNeuronModels/W2D3_Tutorial2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,17 @@
"\n",
"\\begin{align}\n",
"r_{ij} &= \\frac{cov(I_i, I_j)}{\\sqrt{var(I_i)} \\sqrt{var(I_j)}}\\\\\n",
"cov(I_i, I_j) &= \\sum_{k=1}^L (I_i^k -\\bar{I}_i)(I_j^k -\\bar{I}_j) \\\\\n",
"cov(I_i, I_j) &= \\sum_{k=1}^L (I_i^k -\\bar{I_i})(I_j^k -\\bar{I_j}) \\\\\n",
"var(I_i) &= \\sum_{k=1}^L (I_i^k -\\bar{I}_i)^2\n",
"\\end{align}\n",
"\n",
"where $\\bar{I}_i$ is the sample mean, k is the time bin, and L is the length of $I$. This means that $I_i^k$ is current i at time $k\\cdot dt$. Note that the equations above are not accurate for sample covariances and variances as they should be additionally divided by L-1 - we have dropped this term because it cancels out in the sample correlation coefficient formula.\n",
"where $\\bar{I_i}$ is the sample mean, $k$ is the time bin, and $L$ is the length of $I$. This means that $I_i^k$ is current $i$ at time $k\\cdot dt$.\n",
"\n",
"<br>\n",
"\n",
"**Important note:** The equations above are not accurate for sample covariances and variances as they should be additionally divided by $L-1$. We have dropped this term because it cancels out in the sample correlation coefficient formula.\n",
"\n",
"<br>\n",
"\n",
"The _sample correlation coefficient_ may also be referred to as the _sample Pearson correlation coefficient_. Here, is a beautiful paper that explains multiple ways to calculate and understand correlations [Rodgers and Nicewander 1988](https://www.stat.berkeley.edu/~rabbee/correlation.pdf).\n",
"\n",
Expand Down Expand Up @@ -598,6 +604,7 @@
"\n",
" return rij\n",
"\n",
"\n",
"example_plot_myCC()"
]
},
Expand Down Expand Up @@ -1246,18 +1253,19 @@
},
"source": [
"## Section 3.2: What is the rationale behind varying $\\mu$ and $\\sigma$?\n",
"\n",
"The mean and the variance of the synaptic current depends on the spike rate of a Poisson process. We can use something called [Campbell's theorem](https://en.wikipedia.org/wiki/Campbell%27s_theorem_(probability)) to estimate the mean and the variance of the synaptic current:\n",
"\n",
"\\begin{align}\n",
"\\mu_{\\rm syn} = \\lambda J \\int P(t) \\\\\n",
"\\mu_{\\rm syn} = \\lambda J \\int P(t) dt \\\\\n",
"\\sigma_{\\rm syn} = \\lambda J \\int P(t)^2 dt\n",
"\\end{align}\n",
"\n",
"where $\\lambda$ is the firing rate of the Poisson input, $J$ the amplitude of the postsynaptic current and $P(t)$ is the shape of the postsynaptic current as a function of time.\n",
"\n",
"Therefore, when we varied $\\mu$ and/or $\\sigma$ of the GWN, we mimicked a change in the input firing rate. Note that, if we change the firing rate, both $\\mu$ and $\\sigma$ will change simultaneously, not independently.\n",
"\n",
"Here, since we observe an effect of $\\mu$ and $\\sigma$ on correlation transfer, this implies that the input rate has an impact on the correlation transfer function.\n"
"Here, since we observe an effect of $\\mu$ and $\\sigma$ on correlation transfer, this implies that the input rate has an impact on the correlation transfer function."
]
},
{
Expand All @@ -1276,9 +1284,9 @@
"\n",
"References:\n",
"\n",
"- De La Rocha, Jaime, et al. \"Correlation between neural spike trains increases with firing rate.\" Nature (2007). doi: [10.1038/nature06028](https://doi.org/10.1038/nature06028)\n",
"- de la Rocha J, Doiron B, Shea-Brown E, Josić K, Reyes A (2007). Correlation between neural spike trains increases with firing rate. Nature 448:802-806. doi: [10.1038/nature06028](https://doi.org/10.1038/nature06028)\n",
"\n",
"- Bujan AF, Aertsen A, Kumar A. Role of input correlations in shaping the variability and noise correlations of evoked activity in the neocortex. Journal of Neuroscience. 2015 Jun 3;35(22):8611-25. doi: [10.1523/JNEUROSCI.4536-14.2015](https://doi.org/10.1523/JNEUROSCI.4536-14.2015)"
"- Bujan AF, Aertsen A, Kumar A (2015). Role of input correlations in shaping the variability and noise correlations of evoked activity in the neocortex, Journal of Neuroscience 35(22):8611-25. doi: [10.1523/JNEUROSCI.4536-14.2015](https://doi.org/10.1523/JNEUROSCI.4536-14.2015)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,17 @@
"\n",
"\\begin{align}\n",
"r_{ij} &= \\frac{cov(I_i, I_j)}{\\sqrt{var(I_i)} \\sqrt{var(I_j)}}\\\\\n",
"cov(I_i, I_j) &= \\sum_{k=1}^L (I_i^k -\\bar{I}_i)(I_j^k -\\bar{I}_j) \\\\\n",
"cov(I_i, I_j) &= \\sum_{k=1}^L (I_i^k -\\bar{I_i})(I_j^k -\\bar{I_j}) \\\\\n",
"var(I_i) &= \\sum_{k=1}^L (I_i^k -\\bar{I}_i)^2\n",
"\\end{align}\n",
"\n",
"where $\\bar{I}_i$ is the sample mean, k is the time bin, and L is the length of $I$. This means that $I_i^k$ is current i at time $k\\cdot dt$. Note that the equations above are not accurate for sample covariances and variances as they should be additionally divided by L-1 - we have dropped this term because it cancels out in the sample correlation coefficient formula.\n",
"where $\\bar{I_i}$ is the sample mean, $k$ is the time bin, and $L$ is the length of $I$. This means that $I_i^k$ is current $i$ at time $k\\cdot dt$.\n",
"\n",
"<br>\n",
"\n",
"**Important note:** The equations above are not accurate for sample covariances and variances as they should be additionally divided by $L-1$. We have dropped this term because it cancels out in the sample correlation coefficient formula.\n",
"\n",
"<br>\n",
"\n",
"The _sample correlation coefficient_ may also be referred to as the _sample Pearson correlation coefficient_. Here, is a beautiful paper that explains multiple ways to calculate and understand correlations [Rodgers and Nicewander 1988](https://www.stat.berkeley.edu/~rabbee/correlation.pdf).\n",
"\n",
Expand Down Expand Up @@ -598,6 +604,7 @@
"\n",
" return rij\n",
"\n",
"\n",
"example_plot_myCC()\n",
"\n",
"```"
Expand Down Expand Up @@ -1250,18 +1257,19 @@
},
"source": [
"## Section 3.2: What is the rationale behind varying $\\mu$ and $\\sigma$?\n",
"\n",
"The mean and the variance of the synaptic current depends on the spike rate of a Poisson process. We can use something called [Campbell's theorem](https://en.wikipedia.org/wiki/Campbell%27s_theorem_(probability)) to estimate the mean and the variance of the synaptic current:\n",
"\n",
"\\begin{align}\n",
"\\mu_{\\rm syn} = \\lambda J \\int P(t) \\\\\n",
"\\mu_{\\rm syn} = \\lambda J \\int P(t) dt \\\\\n",
"\\sigma_{\\rm syn} = \\lambda J \\int P(t)^2 dt\n",
"\\end{align}\n",
"\n",
"where $\\lambda$ is the firing rate of the Poisson input, $J$ the amplitude of the postsynaptic current and $P(t)$ is the shape of the postsynaptic current as a function of time.\n",
"\n",
"Therefore, when we varied $\\mu$ and/or $\\sigma$ of the GWN, we mimicked a change in the input firing rate. Note that, if we change the firing rate, both $\\mu$ and $\\sigma$ will change simultaneously, not independently.\n",
"\n",
"Here, since we observe an effect of $\\mu$ and $\\sigma$ on correlation transfer, this implies that the input rate has an impact on the correlation transfer function.\n"
"Here, since we observe an effect of $\\mu$ and $\\sigma$ on correlation transfer, this implies that the input rate has an impact on the correlation transfer function."
]
},
{
Expand All @@ -1280,9 +1288,9 @@
"\n",
"References:\n",
"\n",
"- De La Rocha, Jaime, et al. \"Correlation between neural spike trains increases with firing rate.\" Nature (2007). doi: [10.1038/nature06028](https://doi.org/10.1038/nature06028)\n",
"- de la Rocha J, Doiron B, Shea-Brown E, Josić K, Reyes A (2007). Correlation between neural spike trains increases with firing rate. Nature 448:802-806. doi: [10.1038/nature06028](https://doi.org/10.1038/nature06028)\n",
"\n",
"- Bujan AF, Aertsen A, Kumar A. Role of input correlations in shaping the variability and noise correlations of evoked activity in the neocortex. Journal of Neuroscience. 2015 Jun 3;35(22):8611-25. doi: [10.1523/JNEUROSCI.4536-14.2015](https://doi.org/10.1523/JNEUROSCI.4536-14.2015)"
"- Bujan AF, Aertsen A, Kumar A (2015). Role of input correlations in shaping the variability and noise correlations of evoked activity in the neocortex, Journal of Neuroscience 35(22):8611-25. doi: [10.1523/JNEUROSCI.4536-14.2015](https://doi.org/10.1523/JNEUROSCI.4536-14.2015)"
]
},
{
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 14 additions & 6 deletions tutorials/W2D3_BiologicalNeuronModels/student/W2D3_Tutorial2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,17 @@
"\n",
"\\begin{align}\n",
"r_{ij} &= \\frac{cov(I_i, I_j)}{\\sqrt{var(I_i)} \\sqrt{var(I_j)}}\\\\\n",
"cov(I_i, I_j) &= \\sum_{k=1}^L (I_i^k -\\bar{I}_i)(I_j^k -\\bar{I}_j) \\\\\n",
"cov(I_i, I_j) &= \\sum_{k=1}^L (I_i^k -\\bar{I_i})(I_j^k -\\bar{I_j}) \\\\\n",
"var(I_i) &= \\sum_{k=1}^L (I_i^k -\\bar{I}_i)^2\n",
"\\end{align}\n",
"\n",
"where $\\bar{I}_i$ is the sample mean, k is the time bin, and L is the length of $I$. This means that $I_i^k$ is current i at time $k\\cdot dt$. Note that the equations above are not accurate for sample covariances and variances as they should be additionally divided by L-1 - we have dropped this term because it cancels out in the sample correlation coefficient formula.\n",
"where $\\bar{I_i}$ is the sample mean, $k$ is the time bin, and $L$ is the length of $I$. This means that $I_i^k$ is current $i$ at time $k\\cdot dt$.\n",
"\n",
"<br>\n",
"\n",
"**Important note:** The equations above are not accurate for sample covariances and variances as they should be additionally divided by $L-1$. We have dropped this term because it cancels out in the sample correlation coefficient formula.\n",
"\n",
"<br>\n",
"\n",
"The _sample correlation coefficient_ may also be referred to as the _sample Pearson correlation coefficient_. Here, is a beautiful paper that explains multiple ways to calculate and understand correlations [Rodgers and Nicewander 1988](https://www.stat.berkeley.edu/~rabbee/correlation.pdf).\n",
"\n",
Expand Down Expand Up @@ -598,6 +604,7 @@
"\n",
" return rij\n",
"\n",
"\n",
"example_plot_myCC()"
]
},
Expand Down Expand Up @@ -1157,18 +1164,19 @@
},
"source": [
"## Section 3.2: What is the rationale behind varying $\\mu$ and $\\sigma$?\n",
"\n",
"The mean and the variance of the synaptic current depends on the spike rate of a Poisson process. We can use something called [Campbell's theorem](https://en.wikipedia.org/wiki/Campbell%27s_theorem_(probability)) to estimate the mean and the variance of the synaptic current:\n",
"\n",
"\\begin{align}\n",
"\\mu_{\\rm syn} = \\lambda J \\int P(t) \\\\\n",
"\\mu_{\\rm syn} = \\lambda J \\int P(t) dt \\\\\n",
"\\sigma_{\\rm syn} = \\lambda J \\int P(t)^2 dt\n",
"\\end{align}\n",
"\n",
"where $\\lambda$ is the firing rate of the Poisson input, $J$ the amplitude of the postsynaptic current and $P(t)$ is the shape of the postsynaptic current as a function of time.\n",
"\n",
"Therefore, when we varied $\\mu$ and/or $\\sigma$ of the GWN, we mimicked a change in the input firing rate. Note that, if we change the firing rate, both $\\mu$ and $\\sigma$ will change simultaneously, not independently.\n",
"\n",
"Here, since we observe an effect of $\\mu$ and $\\sigma$ on correlation transfer, this implies that the input rate has an impact on the correlation transfer function.\n"
"Here, since we observe an effect of $\\mu$ and $\\sigma$ on correlation transfer, this implies that the input rate has an impact on the correlation transfer function."
]
},
{
Expand All @@ -1187,9 +1195,9 @@
"\n",
"References:\n",
"\n",
"- De La Rocha, Jaime, et al. \"Correlation between neural spike trains increases with firing rate.\" Nature (2007). doi: [10.1038/nature06028](https://doi.org/10.1038/nature06028)\n",
"- de la Rocha J, Doiron B, Shea-Brown E, Josić K, Reyes A (2007). Correlation between neural spike trains increases with firing rate. Nature 448:802-806. doi: [10.1038/nature06028](https://doi.org/10.1038/nature06028)\n",
"\n",
"- Bujan AF, Aertsen A, Kumar A. Role of input correlations in shaping the variability and noise correlations of evoked activity in the neocortex. Journal of Neuroscience. 2015 Jun 3;35(22):8611-25. doi: [10.1523/JNEUROSCI.4536-14.2015](https://doi.org/10.1523/JNEUROSCI.4536-14.2015)"
"- Bujan AF, Aertsen A, Kumar A (2015). Role of input correlations in shaping the variability and noise correlations of evoked activity in the neocortex, Journal of Neuroscience 35(22):8611-25. doi: [10.1523/JNEUROSCI.4536-14.2015](https://doi.org/10.1523/JNEUROSCI.4536-14.2015)"
]
},
{
Expand Down