Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Jul 17, 2024
1 parent f68decb commit 6bbbde1
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 47 deletions.
14 changes: 7 additions & 7 deletions CMB_ACT_Likelihood.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Repeat for deep patch (wherever you see data being accessed from the likelihood objects in the code above, change the number \"130\" to a \"0\"). Comment on any similarities/differences.\n",
"<font color='red'>EXERCISE: </font> Repeat for deep patch (wherever you see data being accessed from the likelihood objects in the code above, change the number \"130\" to a \"0\"). Comment on any similarities/differences.\n",
"\n",
"Optional next step: use the tools later in the notebook to see which cosmological parameters are better-constrained by which patch"
]
Expand Down Expand Up @@ -1030,7 +1030,7 @@
"metadata": {},
"source": [
"### We don't actually want to read in the data every time. \n",
"<font color='red'>EXCERCISE: </font> Change the likelihood function to only read in the data the first time it is called."
"<font color='red'>EXERCISE: </font> Change the likelihood function to only read in the data the first time it is called."
]
},
{
Expand All @@ -1054,7 +1054,7 @@
"metadata": {},
"source": [
"### This code is really ugly (and slow)!\n",
"<font color='red'>EXCERCISE: </font> Write functions/modules to speed up the MCMC code above."
"<font color='red'>EXERCISE: </font> Write functions/modules to speed up the MCMC code above."
]
},
{
Expand Down Expand Up @@ -1349,14 +1349,14 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Look at correlation between other parameters."
"<font color='red'>EXERCISE: </font> Look at correlation between other parameters."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Compare these 1D and 2D with the equivalent for the chain you ran before."
"<font color='red'>EXERCISE: </font> Compare these 1D and 2D with the equivalent for the chain you ran before."
]
},
{
Expand Down Expand Up @@ -1387,7 +1387,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Modify your code above to compute the acceptance/rejection ratio while the steps are being taken."
"<font color='red'>EXERCISE: </font> Modify your code above to compute the acceptance/rejection ratio while the steps are being taken."
]
},
{
Expand Down Expand Up @@ -1417,7 +1417,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Modify your stepping function to take a covariance matrix (determined from a shorter run of the chain) and to step using this covariance matrix."
"<font color='red'>EXERCISE: </font> Modify your stepping function to take a covariance matrix (determined from a shorter run of the chain) and to step using this covariance matrix."
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions CMB_School_Part_02.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Plot a histogram of the AGN brightness values and a histogram of the DSFG brightness values. How do these two distributions differ?"
"<font color='red'>EXERCISE: </font> Plot a histogram of the AGN brightness values and a histogram of the DSFG brightness values. How do these two distributions differ?"
]
},
{
Expand Down Expand Up @@ -277,7 +277,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> In reality the cluster radii vary from cluster to cluster. For reference the radius depends on redshift and mass. The number of clusters as a function of mass and redshift is called the cluster 'mass function' which is a sensitive cosmological proble. \n",
"<font color='red'>EXERCISE: </font> In reality the cluster radii vary from cluster to cluster. For reference the radius depends on redshift and mass. The number of clusters as a function of mass and redshift is called the cluster 'mass function' which is a sensitive cosmological proble. \n",
"\n",
"To enhance the realism of our sims, divide the simulated cluster sample into an extremely large radius sample (1 cluster with a 30 arcminute radius, comparable to the Coma cluster; the largest cluster on the sky), a large radius bin (10%) clusters with 5 arcminute radius), a medium bin (30%) with 2 arcminute radius, and a small bin (60% with 0.5 arcminute radius). "
]
Expand Down
6 changes: 3 additions & 3 deletions CMB_School_Part_03.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> There are three typical beam sizes for CMB experiments: 1) large angular scale B-mode observatories which have ~30 arcminute beams; 2) medium scale observatories such as the Planck satellite that has a ~3 arcminute beam, and 3) high resolution observatories such as ACT and SPT that have ~1 arcminute beams. Convolve your map with each of these cases and compare the differences."
"<font color='red'>EXERCISE: </font> There are three typical beam sizes for CMB experiments: 1) large angular scale B-mode observatories which have ~30 arcminute beams; 2) medium scale observatories such as the Planck satellite that has a ~3 arcminute beam, and 3) high resolution observatories such as ACT and SPT that have ~1 arcminute beams. Convolve your map with each of these cases and compare the differences."
]
},
{
Expand Down Expand Up @@ -254,7 +254,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> The above simulation has both atmospheric and detector $1/f$ noise. To understand these components seperately, turn each off and make plots of each component seperately. Comment on how these look. \n",
"<font color='red'>EXERCISE: </font> The above simulation has both atmospheric and detector $1/f$ noise. To understand these components seperately, turn each off and make plots of each component seperately. Comment on how these look. \n",
"\n",
"Optional Part 2: Plot the absolute value of the 2-d FFT of these maps and note how the non-white component of the noise is localized. \n",
"\n",
Expand Down Expand Up @@ -324,7 +324,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Find the minimum $N_{mask}$ that effectively whitens the noise spectrum with the bad $1/f$ turned on. See how this filter works for atmospheric noise. Comment on whether this filter works and whether it is a good choice for atmospheric noise."
"<font color='red'>EXERCISE: </font> Find the minimum $N_{mask}$ that effectively whitens the noise spectrum with the bad $1/f$ turned on. See how this filter works for atmospheric noise. Comment on whether this filter works and whether it is a good choice for atmospheric noise."
]
},
{
Expand Down
12 changes: 6 additions & 6 deletions CMB_School_Part_04.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"metadata": {},
"source": [
"This shows our simulated map with a cosine window applied to eliminate edge effects. It is obvious from this map that we are suppressing the signal here.\n",
"<font color='red'>EXCERCISE: </font> There are an huge number of well studied windows with various combinations of properties. Some minimize mode coupling, others minimize signal loss, while others maximize some combination of the two. Find the wikipedia article on Fourier transform windows, choose one of your favorites and implement it as an option. Compare the impact of the new window compared to the simple cosine window on the map."
"<font color='red'>EXERCISE: </font> There are an huge number of well studied windows with various combinations of properties. Some minimize mode coupling, others minimize signal loss, while others maximize some combination of the two. Find the wikipedia article on Fourier transform windows, choose one of your favorites and implement it as an option. Compare the impact of the new window compared to the simple cosine window on the map."
]
},
{
Expand Down Expand Up @@ -298,7 +298,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Comment on how the measured power sepctrum (blue) compares to the input spectrum (green). Why are they different? What features are common to both? How does your alternative window funciton affect the measured spectrum compared to the default?"
"<font color='red'>EXERCISE: </font> Comment on how the measured power sepctrum (blue) compares to the input spectrum (green). Why are they different? What features are common to both? How does your alternative window funciton affect the measured spectrum compared to the default?"
]
},
{
Expand Down Expand Up @@ -442,7 +442,7 @@
"metadata": {},
"source": [
"This plot shows the estimate of the CMB power spectrum after correcting for the multiplicative bias (transfer function) in yellow. In addition we show (red) the input CMB power spectrum, (green) the average of the signal only simulations, (blue, lower) the transfer function, and (blue, upper) the naive power spectrum of our map. Consider how all these curves relate to creating the yellow estimate.\n",
"<font color='red'>EXCERCISE: </font> Why does the green curve look so much like the red curved but surpressed? What is the meaning of the lower (and smoother) blue curve?"
"<font color='red'>EXERCISE: </font> Why does the green curve look so much like the red curved but surpressed? What is the meaning of the lower (and smoother) blue curve?"
]
},
{
Expand Down Expand Up @@ -545,7 +545,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> What is the yellow curve? How is it generated, how is it used to get the green curve?"
"<font color='red'>EXERCISE: </font> What is the yellow curve? How is it generated, how is it used to get the green curve?"
]
},
{
Expand Down Expand Up @@ -669,7 +669,7 @@
"metadata": {},
"source": [
"And there you have it. That is how you compute a CMB power spectrum and error bars. If you want to fit cosmology to these data you can re-run CAMB varying cosmological parameters and compute the likelihood difference between these models and the data. This is left as an exercise.\n",
"<font color='red'>EXCERCISE: </font> Why dosn't the red curve (input CMB spectrum) fall wihin the error bars of our simulated data set above $\\ell \\sim 2500$?"
"<font color='red'>EXERCISE: </font> Why dosn't the red curve (input CMB spectrum) fall wihin the error bars of our simulated data set above $\\ell \\sim 2500$?"
]
},
{
Expand All @@ -683,7 +683,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> One can worry that the transfer funciton calcuation depends on the input spectrum used in its calculation. Modify the spectrum used in calculating the transfer funciton to better match the spectrum in the simualtion by adding a constant in quadrature to the input spectrum. Comment on weather this changes the result or not."
"<font color='red'>EXERCISE: </font> One can worry that the transfer funciton calcuation depends on the input spectrum used in its calculation. Modify the spectrum used in calculating the transfer funciton to better match the spectrum in the simualtion by adding a constant in quadrature to the input spectrum. Comment on weather this changes the result or not."
]
},
{
Expand Down
12 changes: 6 additions & 6 deletions CMB_School_Part_06.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
"source": [
"Notice that the power spectrum is biased high on large scales - as we expected it to be.\n",
"How might you remove that large scale power before computing the power spectrum?\n",
"<font color='red'>EXCERCISE: </font> Write code to filter out the large scale modes ell < ell_min before computing the power spectrum and show the spectra for a few different values for ell_min. Also, can you think about how to remove the ringing the power on small scales? Discuss the shape of the apodising window and the large scale power leaking to small scales."
"<font color='red'>EXERCISE: </font> Write code to filter out the large scale modes ell < ell_min before computing the power spectrum and show the spectra for a few different values for ell_min. Also, can you think about how to remove the ringing the power on small scales? Discuss the shape of the apodising window and the large scale power leaking to small scales."
]
},
{
Expand All @@ -239,7 +239,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> We cut out a particular patch from the ACT strip. Cut out different patches and view them. By using the power spectrum code in the modules file, compute both the auto and the cross spectra for this map. Discuss how you would estimate the error bars on this power spectrum, by comparing the auto with the cross power spectra."
"<font color='red'>EXERCISE: </font> We cut out a particular patch from the ACT strip. Cut out different patches and view them. By using the power spectrum code in the modules file, compute both the auto and the cross spectra for this map. Discuss how you would estimate the error bars on this power spectrum, by comparing the auto with the cross power spectra."
]
},
{
Expand All @@ -255,7 +255,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Given the value of the PS shown here on small scales, we can estimate the noise level in the ACT maps for this season. Plot noise curves for a few values and show here, and do a simple \"chi-by-eye\" fit for the noise level."
"<font color='red'>EXERCISE: </font> Given the value of the PS shown here on small scales, we can estimate the noise level in the ACT maps for this season. Plot noise curves for a few values and show here, and do a simple \"chi-by-eye\" fit for the noise level."
]
},
{
Expand All @@ -278,7 +278,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Plot the 2D power spectrum, both of your input theory+ noise and the ACT data. What does that tell you about real-world noise from CMB Experiments?"
"<font color='red'>EXERCISE: </font> Plot the 2D power spectrum, both of your input theory+ noise and the ACT data. What does that tell you about real-world noise from CMB Experiments?"
]
},
{
Expand Down Expand Up @@ -353,7 +353,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> The spectrum is biased high from point sources on all scales. Use the code from the previous notebook to determine the noise bias for this spectrum and remove it."
"<font color='red'>EXERCISE: </font> The spectrum is biased high from point sources on all scales. Use the code from the previous notebook to determine the noise bias for this spectrum and remove it."
]
},
{
Expand All @@ -374,7 +374,7 @@
}
},
"source": [
"<font color='red'>EXCERCISE: </font> Apply the techniques from Part Five and search for point sources and SZ clusters in the map"
"<font color='red'>EXERCISE: </font> Apply the techniques from Part Five and search for point sources and SZ clusters in the map"
]
},
{
Expand Down
14 changes: 7 additions & 7 deletions CMB_School_Part_07.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Add point sources and the SZ to these maps, next convolve with a beam, and add instrumental noise. Assume the point sources have a fixed $3\\%$ polarization fraction with random polarization angles and the SZ is fully unpolarized. The noise in the polarization maps is $\\sqrt 2$ larger than the temperature noise."
"<font color='red'>EXERCISE: </font> Add point sources and the SZ to these maps, next convolve with a beam, and add instrumental noise. Assume the point sources have a fixed $3\\%$ polarization fraction with random polarization angles and the SZ is fully unpolarized. The noise in the polarization maps is $\\sqrt 2$ larger than the temperature noise."
]
},
{
Expand Down Expand Up @@ -513,7 +513,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Generate a polarization field dominated by B-mode polarization and plot the polarization vectors on top of the B-mode map. What is the difference between the E-mode field and the B-mode field?"
"<font color='red'>EXERCISE: </font> Generate a polarization field dominated by B-mode polarization and plot the polarization vectors on top of the B-mode map. What is the difference between the E-mode field and the B-mode field?"
]
},
{
Expand All @@ -529,7 +529,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Calculate the BB power spectrum using the code and Monte Carlo techniques we explored in Part Four. Compare your results to the input spectra. Make sure to include a window (i.e. pixel mask). \n",
"<font color='red'>EXERCISE: </font> Calculate the BB power spectrum using the code and Monte Carlo techniques we explored in Part Four. Compare your results to the input spectra. Make sure to include a window (i.e. pixel mask). \n",
"\n",
"\n",
"<font color='red'>hint: </font> You can make use of the `QU2EB()` function below to convert Q and U maps to E and B maps. Because real data would be provided as Q and U maps, a pixel mask should be applied to the Q and U maps before converting to E and B."
Expand Down Expand Up @@ -646,7 +646,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Create a simulated map with $C_\\ell^{BB} = 0$ Calculate the BB power spectrum of this map using the estimates for the multiplicitive and addative bias you calculated in the previous excercise with non-zero $C_\\ell^{BB}$. Why isn't your result consistent with $C_\\ell^{BB} = 0$ "
"<font color='red'>EXERCISE: </font> Create a simulated map with $C_\\ell^{BB} = 0$ Calculate the BB power spectrum of this map using the estimates for the multiplicitive and addative bias you calculated in the previous excercise with non-zero $C_\\ell^{BB}$. Why isn't your result consistent with $C_\\ell^{BB} = 0$ "
]
},
{
Expand All @@ -669,7 +669,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Calculate the TE power spectrum by adapting the techniques from Part Four."
"<font color='red'>EXERCISE: </font> Calculate the TE power spectrum by adapting the techniques from Part Four."
]
},
{
Expand Down Expand Up @@ -827,7 +827,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>EXCERCISE: </font> Calculate the TT, EE, BB, TE, TB, and EB power spectra using the code and techniques we explored in Part Four but with the Kendrick-method for B-modes. Compare your results to the input spectra and to the spectra you produced with the naive E-B separation. Pay special attention to the angular scale dependence of the differences."
"<font color='red'>EXERCISE: </font> Calculate the TT, EE, BB, TE, TB, and EB power spectra using the code and techniques we explored in Part Four but with the Kendrick-method for B-modes. Compare your results to the input spectra and to the spectra you produced with the naive E-B separation. Pay special attention to the angular scale dependence of the differences."
]
},
{
Expand Down Expand Up @@ -859,7 +859,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font color='red'>ADVANCED EXCERCISE: </font> Take the `lens_map` function from the lensing notebook (part 10) and lens the Q and U maps of a polarization field that has no B-mode contribution. Plot the resulting B-mode power spectrum and compare to the CAMB B-mode power spectrum."
"<font color='red'>ADVANCED EXERCISE: </font> Take the `lens_map` function from the lensing notebook (part 10) and lens the Q and U maps of a polarization field that has no B-mode contribution. Plot the resulting B-mode power spectrum and compare to the CAMB B-mode power spectrum."
]
},
{
Expand Down
Loading

0 comments on commit 6bbbde1

Please sign in to comment.