# 13.1 An introduction to the analysis of brain waves

 Page 1 / 8
This module builds the tools necessary for the frequency analysis of brain waves as recording by an electroencephalograph. We proceed from the Pythagorean Theorem to sine waves, the trapezoid rule and finally to Fourier decomposition.

0. Background

1. Sine and Cosine Waves

2. Trapezoid Rule for estimating area

3. Fourier Method for decomposing signals

4. Spectrogram application to analyzing brain waves

## Background: brain waves and the eeg

Signals are sent through the brain using both chemical and electrical means. The synchronized electrical activity of individual neurons adds up to something big enough to detect on from outside the head. To measure it, we use a set of electrical nodes called an electroencephalogam (EEG). The measured activity reflects different states of the brain which in turn tell us something about the mindset of the person. Our goal in this module is to decompose an EEG signal into its different frequencies, which is intuitively the most meaningful piece of information.

## Sine and cosine waves

Brainwaves have complex shapes that are not easily interpreted. In order to study these waves, we need to develop some mathematical tools that will tell us about different waves. To outline, we begin by talking about pure (sine or cosine) waves, then move to the trapezoid rule for estimating area under a curve. Next, we develop Fourier analysis for picking out the frequencies in a jumbled signal, and finally use these tools to create spectrograms, which allow us to track different frequencies over time.

## Sine waves

The sine wave is a mathematical function. It describes many physical phenomena, including sound waves and oscillation. It looks just like a wave. MATLAB uses the sin function to make sin waves. For example, to make Figure 1, we use the code:

>>t = 0:.01:1;>>y = sin(2*pi*t);>>plot(t,y);

The sine wave is defined by the lengths and angles of a triangle. Run sincirc.m (copied below) to see how the sine and cosine values relate to the angle $\varphi$ of the triangle. As you can see, if $\varphi$ is the angle of a right triangle with hypotenuse 1 (illustrated by the circle) , $sin\left(\varphi \right)$ is the height of the triangle and $cos\left(\varphi \right)$ is the base of it:

% sincirc.m %% sincirc.m illustrates the relation of the sin and cosine waves to the circle. %define parametersNturns = 2; steps_per_turn = 9;step_inc = 2*pi/steps_per_turn; %set up points for circlecirc_x = cos(0:.01:2*pi); circ_y = sin(0:.01:2*pi);axis equal %loop over triangles with different anglesfor n = 1:Nturns * steps_per_turn; phi = n * step_inc + pi/4;%plot circle, then triangle, then text plot(circ_x, circ_y);axis([-1 1 -1 1] * 1.5);line([0 cos(phi)], [0 sin(phi)]); line([1 1]* cos(phi), [0 sin(phi)]);line([0 cos(phi)], [0 0]); text(cos(phi)/2 , -.1*sign(sin(phi)),'cos(\varphi)')text(cos(phi) + .1*(sign(cos(phi))-.5), sin(phi)/2, 'sin(\varphi)') text(cos(phi)*.2, sin(phi)*.1,'\varphi');pause(.5); end

## Characteristics of the sine wave

The sin wave has three primary characteristics:

What are antibodies?
they are immune cells that are released by immune system to fight strangers like microbes
Ahmed
a blood protien produce in response to an counteracting a specific antigen
Pooja
Why salmonella typhi is harmful protozoan?
because make typhoid that is considered as a food born illness
Ahmed
Name any five modes of transmission.
Happy
what are the scientific names and common names of some microbes
Staphylococcus aureus - staph Streptococcus pyogenes - strep Botulism - Clostridium botulinum Rocky Mountain spotted fever - Rickettsia rickettsii Diphtheria - Corynebacterium diphtheriae Gonorrhea - Neisseria gonorrhoeae
Tammy
what are the limitations of the Koch's postulate
Naa
how a microorganism growth.
Is foetus a parasite to his or her mother? if yes and if no ho
y
Yusri
yes
Yashkin
yes
Zubair
yes it a parasite to the mother because it feeds on the mother for survival
Beatrice
yes
Redwan
no
Elasha
definition of a parasite: an organism that lives in or on an organism of ANOTHER species (its host) and benefits by deriving nutrients at the other's expense
Elasha
no because an organism can inky be a parasite if it causes harm to its HOST. And the fetus does not cause harm to its mother under normal conditions
aliyu
yes
Naa
what is biosensor in microbiology
What are biosensor
Raja
what's are biosensor
Raja
what is microbiology defination
microbiology is the study of small or manuit organisms which cannot be seen with our nacked eyes unless with the aid of the microscope
Brandina
is the study of living organisms which are not directly visible to a direct eye but can only be seen under a microscope
Ipa
ok
Ipa
microbiology is the study of living organisms of microscopic size it is also the study of micro organisms with their form structure reproduction psychology metabolism and classification
Priyanka
ok
Aminu
it is the biological study of viruses, fungi, protozoa, bacteria which in collective name are called micro organisms, unlike microscopic organisms being invisible, that requires a magnifications with the help of a microscope.
Mohamed
what are the importances of Microbiology?
don't know
SINGLE
we obtained the insulin from the bacteria. and some microorganisms are decomposer in ecosystems.
Zubair
nitrogen in the air is fixed into the soil by microbes example is nitrobactor
Matilda
yes
Zubair
how a weak immune region where microorganisms attack easily?
with examples differentiate gram positive from gram negative bacteria
Differentiate gram positive from gram negative
Mary
I have no idea
Zubair
hello
Kuonain
and example of gram negative is E. coli
Pooja
gram positive stain purple when subjected to gram stain whilst gram positive bacterial has thick wall composed of peptidoglycan
Matilda
ok
Zubair
what is a process of gene expression in eukaryotes ?
pls help us with the answer
Abdussalam
spontaneous generation means
hiii
Siddhi
Hello
eman
So, what's next 😂
eman
I have a problem with Micro
eman
I studying things and see question Some thing else
eman
eman
What i havta do
eman
firsfall when you studying understand things...
Siddhi
good afternoon dear Friends
yaya
Greeting to everyone in here.
Manka
There is a problem. I need a diagram of a virus with it functions.
Manka
structure of bacterial
Kuyiba
gghhhh
Zubair
group plz i need help in microbio
Kuonain
it really difficult fr me
Kuonain
kashur cha kah
suhail
sorry now I read in class 8th but I can help u
Zubair
Me too. It's very difficult for me
Angela
rod shape
Priyanka
helical
Priyanka
Hello
esike
spherical
Priyanka
peomorphic
Priyanka
I am ryt or not
Priyanka
hi
suhail
hello
DIPTI
Are we together pls what's the topic for the day?
esike
what is innate
Lizzy
innate means natural
Pooja
the genetic makeup of an individual
Matilda
pls i need the common names for the following parasites..ENTEROBIUS VERMICULARIS,NECATOR AMERICANUS,ASCARIES LUMBRICOIDES,TRICHURIS TRICHIURA,TRICHOMONAS VAGINALIS,GIARDIA LAMBLIA,ENTAMOEBA HISTOLYTICA,SCHISTOSOMA MANSONI,SCHISTOSOMAHEMATOBIUM,STROGYLOIDES STERCORALIS,AND TRAPANOSOMA BRUCI GAMBIENSE
timothy
ENTEROBIUS VERMICULARIS and STROGYLOIDES STERCORALIS have the same common name which is pin worm and thread worm
Chinedu
I didn't find the common names for TRICHOMONAS VAGINALIS, GIARDIA LAMBLIA, ENTAMOEBA HISTOLYTICA, TRYPANOSOMA BRUCEI GAMBIENSE
Chinedu
NECATOR AMERICANUS - New world hookworm ASCARIS LUMBRICOIDES- Ascarid TRICHURIS TRICHIURA- Whip worm
Chinedu
Hi guys
Chinedu
Why are myeloblasts not present in the bloodstream?
Chinedu
thank u
Dasaah
is blood from capillary puncture suitable for hormonal assays
LAFIA
In most cases the blood is necessary but it's limited from my own Analysis
Lee
u can do but it depends on your sampling blood its enev or not
Ali
Control indications of cipro, doxicyclin, setracyclin, cloxacyclin, erythromycin
oo
babinthe
what is sims position
Which of the following is best at showing the life expandency of an individual within a a population
perianth is present in which gymnosperms ?
perianth is present in which gymnos4perms ?
Got questions? Join the online conversation and get instant answers!