16 Answers

Chapter 1

  1. A file is a single item containing data. A folder is a container in a graphical user interface that stores files. A directory is a technical map often typed into a terminal to point to a specific file or folder.

  2. cd /home/bvcl/Desktop/greetings/hello.docx

Chapter 2

  1. The terminal allows users to interact with and control a computer through typed commands instead of clicking through menus and windows.

  2. It is more efficient to use the terminal when working with large files and directories, accessing remote systems, and automating commands.

  3. The ls command will display all files in the Documents folder. ls *.jpg will list only the JPG files.

  4. Sammy should use the mkdir mind_reading command. It will create a new empty folder with the name “mind_reading” from the current directory.

  5. Joey should use the command: cp participant001.txt /home/username/Desktop

  6. You can quit Terminal by clicking the red close button in the top-left corner of the window, or by clicking “Terminal” in the menu bar and selecting “Quit Terminal”.

  7. Commands cd or cd ~ return you to the home directory.

  8. The ls command shows files and folders inside your current directory.

  9. cd Downloads moves you to the folder named “Downloads” in the directory you’re in. cd ~/Downloads moves you to the “Downloads” folder in the home directory, regardless of your current directory.

  10. It specifically highlights rm -rf to caution against making a mistake with this command. Files and directories deleted with rm - rf cannot easily be recovered, so a mistake can result in permanently losing important data.

Chapter 3

  1. C. The first computer is the head node, and the second computer is a compute node.

  2. origin represents the start point of the file/directory you want to synchronize/copy and destination represents the end point of where the file/directory will be placed. The order matters because rsync is unidirectional and start/end-point sensitive. Placing them in the wrong order can lead to data loss and unintended overwrites.

  3. B. rsync, because it avoids re-copying unchanged data and is more efficient for large or interrupted transfers

  4. Using a compute cluster is useful when a task requires more computational power, memory, or processing time than a single computer can provide.

Chapter 4

  1. It’s helpful to work through the commands one at a time. By default, we start at the top of the file (i.e., line 1). The first “j” command goes down one line. When we repeat the command, we go down another line. We are now on line 3. The “dd” command deletes the line we are on (line 3). The “G” command takes us to the bottom of the file. Therefore, we are at the bottom of the file, and the original line 3 was deleted.

  2. They need to move from insert mode to command mode by pressing esc and then pressing colon (:). The key sequence :wq will exit Vim.

  3. This is a case where it makes sense to use find and replace. The line :%s/awful/awesome/g would get the job done. It might be useful to use :%s/awful/awesome/gc so that he can confirm that each change is what he wants.

  4. The four modes are Normal, Insert, Command, and Visual. Normal mode is the default mode used for navigation and editing. Insert mode is used for typing and editing a text file. Command mode is used to run commands. Lastly, the Visual mode is used to select text for desired actions.

  5. Given that Normal mode is the default “control mode” in Vim, all other modes are entered from normal mode. The purpose of this is to prevent any confusion between typing text and executing commands.

  6. The command “:w” saves the file but does not exit. The command “:wq” saves the file and exits Vim. The command “:q!” exits without saving any changes.

Chapter 5

  1. Pip can only install packages that are from the Python Package Index. All other packages must be installed using Conda. Pip also installs packages globally on the computer system, whereas conda installs them locally on the environment.

  2. A. conda activate example_name

  3. B. conda update package_name

  4. conda create -n myenv python=3.11 conda activate myenv conda install numpy matplotlib

Chapter 6

  1. A for loop. The teacher can program the for loop to go through each item in the array (each student’s age) and do a plus one operation for every value.

  2. The answer is 1.

  3. Jason has multiple options. Here are two:

    1. He can override his current list and create a new one using the same name “favorite cars”:
    2. He can use array indexing to change specific cars: favorite_cars[5] = “Mercedes-Benz S-Class”

Chapter 7

  1. Neglecting to commit after making changes could be disruptive in a few ways. First, collaborators cannot see code that hasn’t been committed, making collaboration much more difficult. Second, if a bug arises, there is no way to check various iterations of the code within those three weeks to isolate changes that may have caused the bug. Every time you commit, multiple pieces of metadata are stored: the author of the commit, the timestamp, a descriptive message, and a snapshot of all staged file changes at that point in time.

  2. Git init creates a new, empty Git repository in a local directory. It is used when starting a project from scratch. git clone creates a local copy of an existing repository, including its full history, branches, and files. It is used when joining an existing project.

  3. HEAD refers to the current branch or commit you are working on. Before executing a merge, it is important to verify that HEAD is pointing to the branch you want to merge changes into. If HEAD is pointing to the wrong branch, the merge will be applied to the wrong place.

Chapter 8

  1. A pivot table is a way to summarize data and make it more digestible. The four fields that can be used are row, column, values and filters.

2A. You could use a pivot table to visualize this information. First, you would need to highlight the values in the original data table, then hover over the insert tab and under “Tables” click “Recommend PivotTable.” Click and drag “Person” into the row section and then click and drag “Approx time needed” into the values section. To switch from count of approx time needed to the average approx time needed, click the circle with the “i” and select “average”

2B. First, you would need to highlight the values in the original data table, then hover over the insert tab and under “Tables” click “Recommend PivotTable.” Click and drag “Sub-task” into the row section and then click and drag “Approx time needed” into the values section.

2C. Looking at the longest approximate time of any task is the same as finding the maximum value in the “Approx time needed” column. You can find this maximum by sorting the table by that column or by using the max function (=max(D2:D16).

Chapter 9

  1. Line noise comes from the electricity signal in a room that the EEG amplifier picks up on. Because line noise is highly predictable in frequency, it can easily be filtered out. In the United States, electricity oscillates at 60hz per second, so we can apply a notch filter at that frequency. It is important to remove line noise because the signal is picked up by the EEG and it can obscure much smaller neural signals.

  2. The best way to mitigate muscle artifacts in our data is to ensure that we aren’t recording them. We can ask participants to remain as relaxed, comfortable, and still as possible and we can show them that even something like clenching their jaw can significantly impact recording.

  3. An event-related potential is an electrical signal generated by the brain in response to a specific stimulus. When looking at ERPs, we can look at stimulus-locked averages or response-locked average: Stimulus-locked averages are time-locked to the presentation of the stimulus. The epoch typically begins a few hundred milliseconds before the stimulus is presented and ends a few hundred milliseconds after the stimulus is presented. Response-Locked Potential is time-locked to when the brain demonstrates a response to the stimulus presented to the participant.

Chapter 10

  1. Signal Detection Theory helps us separate actual perceptual ability or sensitivity from decision strategy or response bias.

  2. d′ is better because it measures how well someone can actually distinguish signal from noise, instead of just how often they were right overall. Percent correct can be misleading because it is affected by guessing habits and response bias, while d′ focuses more on true sensitivity.

  3. Sensitivity refers to how well a person can distinguish between a real signal and noise. Response bias refers to a person’s tendency to respond in a particular way, such as being more likely to say “yes, I detected it,” or being more cautious and only saying “yes” when they are very certain.

  4. A lenient decision criterion makes someone more likely to say “yes,” which increases hits, but also increases false alarms. A strict decision criterion makes someone more likely to say “no,” which lowers false alarms but increases misses. So, the criterion changes what kind of mistakes happen more often.

  5. That would be a miss, also called a false negative, because the signal was really there, but you failed to detect it.

  6. A false negative means missing a real effect, so researchers might wrongly conclude that nothing is happening when there actually is an effect. A false positive means claiming there is an effect when there really is not one, which can lead to incorrect conclusions, wasted follow-up research, and misleading findings.

Chapter 11

  1. Decomposing an EEG signal into individual frequencies is an effective way to identify noise that is distinct from brain response signals. These noise frequencies can then be filtered out. This decomposition also lets us analyze specific frequency ranges associated with different cognitive processes. And, separating frequency allows us to examine important characteristics of the signal, including amplitude, frequency, and phase.

  2. The time domain is a way of representing how a signal changes over time, whereas the frequency domain shows how much of each frequency is present in a signal over a given time window.

  3. We would say 2Hz because hertz is already a measure of how many times something oscillates per second.

  4. The amplitude spectrum and phase spectrum. Amplitude tells us about signal strength and phase spectrum is about the timing relationships of those oscillations relative to a reference.

  5. Amplitude affects how strong or bright patterns in the image appear, while phase determines where those patterns are located. Changing amplitude mainly affects contrast, but changing phase can change the actual shape of what you see and is more likely to impact image recognizability.

Chapter 12

  1. A common example of a right-skewed distribution is a distribution of global earthquake magnitude and frequency. Smaller earthquakes are much more common than large earthquakes.

  2. It’s useful to look at the interquartile range when you want a measure that is less prone to outliers. IQR finds the range for the middle 50% of the data

  3. C. While a statistically significant result tells us that a result is unlikely to be due to chance, it does not tell us the magnitude of that effect. For those insights, we should look at effect size.

Chapter 13

  1. Unsupervised learning is trained on unlabeled data, allowing it to independently identify structure within a dataset. Examples include grouping similar inputs into clusters or reducing data to its underlying dimensions. Supervised learning involves training on labeled data, where the correct output is known for each input. This includes both classification and regression.

  2. SVM: We try to find the hyperplane that best separates the data into their classes. The goal is to maximize the margins between the two classes. Linear Regression: In linear regression, we try to minimize the cumulative squared difference between all the estimated yi and their actual yi. We call this minimizing the sum of squared residuals.

  3. As you increase the polynomial degree, the regression curve is fit closer to the training data so bias decreases, but variance increases and the curve may not generalize to the test set.

  4. One possible explanation is that there is a class imbalance in the training data and there are more examples of non-seizure data than seizure data so the classifier defaults to a negative.

Chapter 14

  1. JPEG is a lossy compression format that discards image information the algorithm predicts will be hard for the human eye to notice. This could include discarding high-frequency information including fine detail and sharp edges. Given that the scientist was hoping to measure this, he should not use a lossy compression technique.

  2. In cognitive neuroscience, we often want to control for luminance and contrast because early visual system responses are sensitive to these values. By normalizing luminance and contrast across all images, scientists make sure that any measured differences in brain activity or behavior are not just due to low-level image properties.

  3. Cropping: Take a section of the image and only the pixels in that section. Resizing: Keep all of the image content, but place it in a smaller canvas.

Chapter 15

  1. High spatial frequencies: Low spatial frequencies:

  2. Phase-randomized images preserve the amplitude spectrum of the original images but randomize the phase spectrum, so that the image appears to be just noise, but maintains the same proportions of spatial frequencies as the original.

Accountalive. (2021). Deutsch: Oben: Aufnahme einer Kalimba, auf der die Töne a’ und e angeschlagen wurden. Dargestellt ist die Wellenform des Signals "im Ortsraum". https://commons.wikimedia.org/wiki/File:Simple_time_domain_vs_frequency_domain_IRL.svg
Aronson, S., Adkins, M. S., & Greene, M. R. (2025). Divergent roles of visual structure and conceptual meaning in scene detection and categorization. Journal of Vision, 25(14), 21. https://doi.org/10.1167/jov.25.14.21
Bonfini, P. (2024). English: Application of a 𝑘 NN classifier considering 𝑘=3 neighbors. Left - Given the test point "? ", the algorithm seeks the 3 closest points in the train set, and adopts the majority vote to classify it as "class red". Right - By iteratively repeating the prediction over the whole feature space (X1, X2 ), one can depict the "decision surface". https://commons.wikimedia.org/wiki/File:KNN_decision_surface_animation.gif
Capper, P. (2020). Slovenčina: Ekvalizácia histogramu: (A) pôvodný obrázok, (b) obrázok po ekvalizácii, (c) histogram pôvodného obrázku a (d) histogram výstupného obrázku. https://commons.wikimedia.org/wiki/File:Histogram_equalization.png
Cherninskyi, A. (2015). English: The sample of human EEG with prominent resting state activity - alpha-rhythm. Left - EEG traces (horizontal - time in seconds; vertical - amplitudes, scale 100uV). Right - power spectra of shown signals (vertical lines - 10 and 20Hz, scale is linear). Alpha-rhythm consists of sinusoidal-like waves with frequencies in 8-12Hz range (11Hz in this case) more prominent in posterior sites. Alpha range is red at power spectrum graph.українська: Приклад ЕЕГ здорової людини з вираженим ритмом спокою - альфа-ритмом. https://commons.wikimedia.org/wiki/File:Human_EEG_with_prominent_alpha-rhythm.png
Driel, J. van, Olivers, C. N. L., & Fahrenfort, J. J. (2021). High-pass filtering artifacts in multivariate classification of neural time series data. Journal of Neuroscience Methods, 352, 109080. https://doi.org/10.1016/j.jneumeth.2021.109080
Gufosowa. (2019). English: Edited File:K-fold cross validation EN.jpg to be vectorial (SVG). So that it is editable, scalable, uses less space. https://commons.wikimedia.org/wiki/File:K-fold_cross_validation_EN.svg
Horvath, M. (2017). English: The visible gamut plotted within the CIELAB color space. A and b are the horizontal axes. L is the vertical axis. Uses D65 whitepoint. https://commons.wikimedia.org/wiki/File:Visible_gamut_within_CIELAB_color_space_D65_whitepoint_mesh.png
Hyacinth. (2014). English: Missing fundamental on 1 (dashed), Fourier series. The period which is the least common multiple of all the harmonics is that of the fundamental. Thus even if it itself is missing, the frequency is still perceptible. https://commons.wikimedia.org/wiki/File:Missing_fundamental_Fourier_series_frequency_8.png
Leomaurodesenv. (2021). Português: Esta é uma representação gráfica do sob-ajuste, balanceado e sobre-ajuste do treinamento de um modelo de aprendizado de máquina. https://commons.wikimedia.org/wiki/File:Underfitting_e_overfitting.png
LLAM19. (2019). English: Example of Signal Detection in the fast-and-frugal trees model. https://commons.wikimedia.org/wiki/File:Example_of_Signal_Detection_in_the_fast-and-frugal_trees_model.png
MBanuelos22. (2020). English: Leave one out cross-validation animated gif for n = 8 observations. https://commons.wikimedia.org/wiki/File:LOOCV.gif
Murray 1010. (2007). English: 1CCD Bayer Filter. https://commons.wikimedia.org/wiki/File:1CCD_camera_system.jpg
Nasser, R., & Hutson, J. (2025). Multimodal Mentoring to Support Student Resilience and Wellbeing in STEM Education. Mentoring for Wellbeing in Higher Education. https://digitalcommons.lindenwood.edu/faculty-research-papers/695
Naught101. (2012). English: Recreation of File:Correlation_examples2.svg using the distance correlation method (dcor from the R energy library). https://commons.wikimedia.org/wiki/File:Distance_Correlation_Examples.svg
Oritnk. (2004). English: Binary confusion matrix. https://commons.wikimedia.org/wiki/File:Binary_confusion_matrix.png
OWP, E. S. is a. senior correspondent at the, America, currently studying for her M. degree at the C. A. at U. C. D. S. graduated in M. 2022. with a. B. degree in I. R. at B. U. with a. focus in L., Policy, F., background, S. S. E. international, Scotland, being born in, States, growing up in the U., resolution, has inspired her passion for global affairs S. deeply believes in peaceful conflict, & career, the importance of raising awareness on current events T. inspires her work at O. as well as her plans to pursue journalism as her. (2022). Drones v. Deforestation: The Amazon’s Indigenous Communities Fight Back. In The Organization for World Peace. https://theowp.org/reports/drones-v-deforestation-the-amazons-indigenous-communities-fight-back/
SharkD Talk, H. svg:. J. R. png:. S. work:. (2010). English: HSL and HSV are two cylindrical representations of the RGB gamut, created in the mid-1970s and used mostly in image editing and computer graphics. When HSL/HSV hue and HSL lightness/HSV value are plotted against chroma C – where C = max(R, G, B) − min(R, G, B) – the resulting color solid is a bicone or cone. For details, see the article HSL and HSV. https://commons.wikimedia.org/wiki/File:HSV_color_solid_cone_chroma_gray.png
Statistical inference - Wikiversity. (n.d.). Retrieved June 4, 2025, from https://en.wikiversity.org/wiki/Statistical_inference
TseKiChun. (2021). English: SVM support vector machine. https://commons.wikimedia.org/wiki/File:SVM_explain.png
VIGIL, J. (2011). English: Tipos de ondas cerebrales vistos en un encefalografo. https://commons.wikimedia.org/wiki/File:Ondas_cerebrales,_encefalograma.jpg
Virtual ERP Boot Camp: Introduction to ERPs - Virtual ERP Boot Camp. (n.d.). Retrieved June 2, 2025, from https://courses.erpinfo.org/courses/take/Intro-to-ERPs/texts/14727771-chapter-1-overview