1. Home
  2. Explore
  3. Statistics
  4. Bayesian Statistics in Imaging

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Bayesian Statistics in Imaging

Transcript

All right, I might make a start and um I think  more people will start trickling in as time goes   on as well. Um okay, so so good evening everyone.  Um thanks for joining us on our first webinar of   2026. Um my name is Carmen and I am an ECR  committee member of the Australian chapter   of OBM. I'm also joined by my co-host um Amir Dili  who's also on the ECR committee. I'd like to begin   by acknowledging the traditional owners of and  custodians of the land on which we meet today,

the Wandery Warang people of the colon nation. I  pay my respects to their eldest past and present   and extend that respect to all Aboriginal and  torist straight straight islander peoples here   today. So tonight we have three excellent  speakers to share some of their insights   into basian statistics and its application in  your imaging. So please feel free to pop your   question into the chat and we'll come back  to these questions at the end of the third presentation if there's time. We will also  have a panel discussion around a few prompts   which you can see and vote for your favorite in  the poll. Um, and we'll try to get through as   many as we can tonight as well. So without  further ado, I'm very happy to introduce   associate professor Charles Malpass to um give us  an overview of key concepts of basian statistics.   So Charles is a clinical neuroscychologist,  applied statistician and a passionate educator.

He is the academic lead of the Melbourne medical  school and a lecturer of the master's program of   clinical neurosychology at the University  of Melbourne. So let's welcome Charles. Thanks Carmen. Um it's great to be here. Um please  let me know if you can't see my slides or if you   can't hear me. That will be an embarrassing  15 minutes. So, I'll try and give you a very   very basic introduction to basian stats in 15  minutes. I I promise I'll I'll stick to that time um as best I can. That's a mug. If if you want  to know a real basian, of course, you have to   have a mug. And this is actually one that one  of my colleagues bought me a few years ago   um because I wouldn't shut up uh and wouldn't stop  talking about basian methods. Um, so what I want   to do in this brief talk is is just briefly cover  what we call classical or frequentist statistics.   Just so you know what I'm talking about when I say  the term frequentist or or classical. I want to

introduce you to BA's rule which is basically the  foundation or the the primary rule that describes   what we do in basian statistics and train your  intuition around that. And then I want to end just   by talking about what basian thinking actually  gives you in terms of practical analytics.   then I'll hand over to um to my colleagues who  will talk about um how to actually apply these   in neuro imaging. So when we talk about basian  sorry classical or frequent statistics we're talking about all the methods that we learn as  undergraduates unfortunately that are sort of   dumped upon us. Um and these are the things like  the p values and the confidence intervals that we   probably know or think we know well the main one  of course being the p value from null hypothesis   significance testing. Now, the problem with the  p- value is no one understands it. And there are

about a thousand other problems with the p- value  that I won't go into today. The main thing to keep   in mind with something like the p value is that  it's the wrong way around to what we want. So,   the p value tells us the probability of observing  some statistic or some piece of data or some   observation assuming that the null hypothesis  is true. So, it's observing the data given some   hypothesis. And that's actually the wrong way  around for science. Same thing with confidence intervals. we don't really understand them very  well. We learn about them and we think that's   great. I can say that there's a 95% probability  that a certain value sits between these intervals.   It's actually not that at all. It's that it's  actually the probability of the mechanism itself   to generate the confidence intervals. And so it's  actually a complicated way to interpretation to   make and it often leads to misunderstanding. All  of these classical methods are built around this

idea of long run probability or repeated sampling.  If I do something over and over again and it   happens this many times, that's my definition  of probability. So with a p value, if I take a   sample over and over and over again and the null  hypothesis is true, then I'll observe this this   many times. Uh these have limitations and these  methods are confusing. They're misleading. Most   people don't understand them and uh to be  honest, I don't blame them because they're pretty challenging. What we actually want though  in statistics is the other way around. We don't   really want p values that tell us a probability of  observing some data given a particular hypothesis.   What we want to know is what's the probability  that our hypothesis is true or false given the   data that we've observed. And that's how we think  as scientists. Uh we want to be able to stand up

there at our conferences and say this is my level  of certainty that my hypothesis is true given the   data that I've just shown you. You can't do this  with classical statistics. And if you remember   nothing else uh then remember this on the left  here is the p value the probability of observing   some data given a hypothesis in the case of the p  value the null hypothesis. What we actually want is what's over on the right. We want to be able to  say what's the probability that some hypothesis is   true given some data that we've observed. These  two things are never equal and you can never jump   from one to the other. P values and confidence  intervals and all classical statistics are on the   left. But what we want is over here on the right.  Uh can we get that? Well, the argument is yes,

but we need to use basian statistics if we want  to make that kind of inference. Basian stats are   named after Thomas Ba like most things that are  named after somebody really the person they're   named after had relatively little to do with it.  Um most of Basian methods came after he died and   actually it was lelass who developed um most  of them initially. Um but we still talk about   BA's theorem named after the Reverend Bae and  essentially what we're doing with BA theorem is we're inverting probability so that we can make  statements about hypotheses given some data. So   doing that kind of inference that we actually want  to do that's been a little bit challenging at the   core of this and again if you remember very little  else from this talk remember the idea of basian   updating because this is actually how we think in  the real world. So we start with some prior belief

about something and today we're talking about  statistics and neuro imaging. So it's belief   about that. This could be belief about anything.  It could be belief about whether it's going to   rain today. We then make some observations. We  collect some data and then we update our prior   belief and that becomes our posterior belief. So  we think maybe it's Melbourne, so the probability   that it's going to rain today is pretty high in  June. We have a prior belief of some probability. We look outside. We see that it's cloudy and  it feels a bit cold. Uh and we update based on   that observation. Now we have a posterior belief  that it's even more likely it's going to rain. We   then see somebody walking past with an umbrella.  we update it again and we update our get a new   posterior belief about whether it's going to rain.  And this is how we think about most things in in

clinical practice. We believe there's a base rate  condition or a prior belief that someone has let's   say co we then make some observations rat test  PCRs and so on and we update that and we get a   posterior belief. So B rule just formalizes that  into a mathematical or a statistical framework   and and that's essentially all we're doing  whenever we're talking about B inference going   from the prior belief we collect some data and we  update our belief and that becomes our posterior

probability. So we use terminology associated with  these that's useful to know. So we call our prior   belief about say a particular hypothesis we refer  to that as the prior or the prior probability.   We then collect some data and we refer to this as  the likelihood. We then update them. We basically   multiply them together and we end up with a  posterior probability. And this can apply to   anything in basian statistics. So it could be a  hypothesis. So whether or not there is a group difference, let's say, or no group difference  or perhaps whether one model is better than the   other. We start with a prior belief about that.  We condition that on the data a likelihood and we   end up with a posterior probability. And it's  that posterior probability that we interpret.   We can use that to get intervals. We can make  probabilistic statements about one hypothesis   or another. But it all comes from that posterior  probability. And to do basian stats, you have to

do all of these. And one of the big challenges  for anyone doing basian statistics is where do   the prior come from and how we come up with them.  And I'm sure we'll talk about that a little bit   later on. But just keep in mind prior likelihood  leads to posterior probability. And you've got the   central dogma of basian statistics. And just  to train your intuition a little bit more,   I just want to give you some examples of what  that might look like. And now we're going to think about probability distributions. So these  are probability density distributions here. And   let's imagine we've got some effect size. Uh it  doesn't really matter what it is. Maybe it's a   Coen's D because looking at a difference between  two groups. Maybe it's a correlation coefficient.   Really doesn't matter. The main thing here is  that before we've actually collected our data.   This represents what we believe about that effect  size. Now, the maximum probability point is over

zero. So, we're good scientists. We we don't  think we're right. We think that there's no   effect or no difference. And so, if we're testing  out a new drug, we might say perhaps there's no   difference in survival time between the treated  and untreated people. But we acknowledge that   there's quite a bit of uncertainty around that.  It could be that there is a large positive effect   or perhaps a large negative effect, but we're not  sure. Although we think it's probably over zero. So this is our prior probability. We then go and  collect our data and we get our likelihood. And   let's say in this experiment we find we get an  effect size of two. And based on the uncertainty   of our sample size and other things, we give  it a probability distribution of that. So it's   over two, but there's a bit of uncertainty  there. Of course, we then, if you remember   back to the central dogma, we basically multiply  them together. So we combine our prior with our

um likelihood or our actual data we've observed  and we get a posterior probability. And there we   say that's what we actually think the truth  now is based on the data we've observed and   our prior beliefs. This is where we are.  And so there's our prior distribution,   probability distribution. That's our likelihood.  We've observed that from the data. And there's our   posterior distribution. And so we can think about  this if we change the prior a little bit and we do different things. So for example, let's say  now we've got a prior and it's still based over   zero. So before we've done our experiment, we were  pretty we sort of assume that there's no effect.   But here we're more certain that it's over zero.  So the probability distribution is much higher   over zero than before. We're still allowing  for the fact there might be an effect size   either one way or the other. But here it's much  more restrictive over zero. We have a stronger

belief here that there's no effect size. We go and  collect our data. The same thing. It's an effect   size of two. There's our likelihood. We combine  them together and we end up with a posterior   distribution. It's just like before, except this  time the posterior distribution is further over   towards zero than before, reflecting the fact  that we were more certain that the effect size   was certain before we did our study. So it shifted  it over a little bit, but otherwise it's the same thing. And we can go the other way as well. So  perhaps we really don't know at all. Before we   conduct our experiment, we have what's called a  flat prior. And what we say is we're so uncertain   that we say that every value of this effect size  is equally possible. We're not going to bias it   towards zero or anything at all. It everything  from negative infinity up to positive infinity   is just as likely. This is known as an improper  prior. Um and it represents maximum ignorance.

Um and also corresponds to many of the classical  statistics we do. Actually we go and do the same   thing. We collect our data. We get our likelihood.  And if I show you the posterior probability,   you have to trust me. I did click. It's just  hidden behind there because our prior was so   weakly informative. It didn't change anything  and all we're left with is our likelihood. So   it doesn't shift it at all. So this is the general  idea of basian statistics. A prior on a parameter, we collect our data, get our likelihood, and  compute our posterior probability. And um this is   what the mathematics look like. If you understand  the general kind of concept, you don't have to   worry too much. It's just the same thing. There's  our posterior probability. So if we're testing   a hypothesis here, it's the probability of the  hypothesis given the data. Remember, that's the   one that we want that we don't get from classical  statistics. And this is just B rule. So it's the

likelihood multiplied by the prior. And there's  something called the marginal probability we won't   talk about. In fact, in many cases, we can kind of  remove that and we can just say that the posterior   distribution is proportional to the likelihood  multiplied by the prior. And that encapsulates   most of what you do in basian statistics. And so  this is how you get from B's rule to something   that is very very practical which is in this  posterior distribution here. So what can you do with that? I'll just show you very quickly. The  first is you can actually talk about more direct   probability. So you can say things like this is  the probability that my hypothesis is correct or   true. You can also talk about credible intervals.  So you can say there's a 95% probability that the   true effect is between this and this value. In  other words, you can say the kind of interpretive   um statements that you thought confidence  intervals let you do but actually you found

out later on they can't. You can incorporate  prior information in clever ways. So perhaps   you've done the experiment before exactly the  same way. You don't have to assume your effect   size is zero. You can assume it's something else  because you have good reason. Or you can use it in   ways to regularize um or you can incorporate  other information uh into it. For example,   you can use basian methods to deal with very  difficult estimation problems. So complex models that are very hard to estimate via conventional  means. You can estimate often with basian methods.   I'll briefly show you the baze factor and even  things like basian model averaging to deal with   model selection bias. The baze factor is one that  we teach a lot. It's a very straightforward way   to think about um basian methods. It's basically a  ratio of evidence. So if you imagine you have your   null hypothesis, so let's say the hypothesis  of no effect and you have your alternative

hypothesis that is there is an effect. You can use  the base factor as a measure of evidence that can   point you one way or the other. You can often use  this in fact to complement P values and classical   statistics although some people would argue that's  not proper but you can do it anyway. No one can   stop you. And so the B factor gives you a measure  of evidence that is a bit more symmetrical.   So for example, you compute your t test or  correlation coefficient. You get a base factor that is a ratio of the evidence of the alternative  hypothesis to the null. And if you get something   of one because it's a ratio, it tells you you're  insensitive. You can't make a decision either way.   If you get a very large B factor and just as  a rule of thumb, you might consider something   greater than three to be something to talk  about, you can get evidence for the alternative   hypothesis. That's the equivalent perhaps of  getting a a small p value. Um or it can go the

other way. You can actually get evidence for the  null hypothesis. You can see perhaps how this is   quite interesting. Sometimes you don't just want  to say something is not significant. you want to   actually be able to say that there's evidence for  the null and baze factors in the basian framework   let you do that. Now that's just um one way of  um discussing uh basian methods the bay factor.   There are many many other applications. This  is just one of the artworkings of it and I'll skip over that for now. So as a very very simple  summary just remember for basian inference it's   all about starting with a prior belief updating  that with the data and having a posterior belief   or the posterior distribution. You can use that  to do useful and interesting things. So you can   summarize a posterior distribution. You can put  intervals around it. You can make probabilistic   statements. And you can talk about probability  and hypotheses in ways that are natural as a

scientist. Here's a probability of my hypothesis  being true or false. Here's a probability of a   parameter having a certain value. There are many  many different applications of that and some   you'll hear about today. Um but they all are based  on this fundamental simple rule and that's B rule.   Now I think I'm exactly at 15 minutes so I  will stop there. Um and very happy to take   any questions. Thanks very much Charles. Um that  was excellent. And um for the people who joined in

a little bit later, we do have a poll going on um  which um you can vote your vote for your favorite   prompt for the panel to discuss at the end of um  all of our presentations. So please participate.   Um for now um next up we have Matthew. So Matthew  is a post-doal research fellow working within the   department of psychiatry at the University of  Melbourne as a part of a NH NHMRC center of   research excellence in anxiety related disorders.  Um Matthew is interested in the intersection of

neurossychiatry struct structure functional  relationships um and generative modeling of   brain network dynamics and today he will speak  to us about basian inference in fMRI. So over   to you Matthew. Thanks. Um yeah, so I'm going  to sort of talk about prior as hypothesis for   new imaging inverse problems and I've got tried  to keep it simple with one worked example from   um some of the work I did in my PhD and that  was with Adil Razi and um Leonardo Nolli.

There's no acknowledgement slide so I'll  acknowledge them up front. Um let's see. Okay, so as Charles has already discussed,  basian methods give us a way of representing   model parameters as probability densities. And  this buys us a few things. So first, we can use   prior to encode empirically or theoretically  justified constraints on on a model. So some   values of a latent parameter are simply more  plausible than others given what we know about   the world or the problem that we're studying. Um  second once we have a prior over latent parameters

and a likelihood that is a statement about how a  given parameter value would generate observed data   plus noise. We have a generative model a way of  simulating plausible observations from the model.   And this matters for interpretability. We are  committing to a particular account of what the   latent quantity is, how it gives rise to the  observed signal and what what counts as noise.   Third, after inverting a generative model using  real data, we can quantify uncertainty around

model parameters a posteriori. And fourth, if  we're willing to approximate the posterior with   a simpler distribution, often a Gaussian,  then variational bays and more specifically   variational lelas, gives us an approximation to  the model evidence or the marginal likelihood.   And that becomes useful because it permits the  straightforward uh post hop comparison of models   inverted using using the same data that differ  in their priors. And in this way we can draw

conclusions about the a priority constraints  that are relevant to the uh generative story.   Um or in a more psychological setting, this could  be an agent's a priority beliefs or expectations,   something that's particularly relevant in the  context of neuroscych neuroscychiatric disorders   or cognitive neuroscience. So I want to motivate  um the upsides of these features of basian and   more specifically variational inference with a  single example from our work which focuses on

effective connectivity or directed communication  between neuronal populations. So communication   between neuronal populations is inherently  directional. It's driven by the unidirectional   propagation of action potentials along axons. But  at the scale of MRI, neither directed neuronal   communication nor anatomical pathways are directly  um observed. They must be inferred from indirect   measure uh measurements like blood oxygen level  dependent signals or um diffusion weighted um

MRI. So this is an inverse problem setting. There  are many possible latent causes that could give   rise to the observed data. And when a problem is  underdetermined like this, constraints matter. So   the broad question is how can we use biological  information or more generally some auxiliary data   that represents what we already know about the  system that we're studying to constrain inference   without over constraining it. So um in dynamic  causal modeling this effective connectivity is

inferred by inverting a state space model like  this. And the model describes how latent neuronal   states evolve over time and in particular how  activity in one neuron neuronal population   influences the rate of change of activity in  another. And that influence is um encoded here in   this A matrix or this transition matrix. And the  model then specifies how those latent um neuronal   states are transformed through a hemodynamic model  into the um blood oxygen level dependent signals

that we observe in fMRI. So in our recent work  we asked whether structural connectivity could   pri provide a useful constraint on these effective  connections. So structural connectivity estimated   from tracttography tells us something about the  brain's large scale white matter architecture. But   the relationship between structural and functional  organization is not one to one. Many functional um dependencies uh are mediated through indirect  or polyaptic paths and tractography only captures   part of the relevant anatomical picture. So  we didn't want to say if there's no detected   tract then there can be no effective connection.  That might be too hard a constraint. Instead the   idea that we embraced was probabilistic. So we  allowed structural connectivity to inform the   prior variance over effective connectivity. So  put simply here in this cartoon um a stronger

stronger structural connectivity gives the model  more prior permission to infer a nonzero effective   connection. It doesn't uh it doesn't enforce  the connection to exist. It just changes how   plausible different effective connectivity values  are before seeing the data. In our empirical work,   we treated this as a hierarchical model. So each  subject has their own first level dynamic causal   model, but those subject level parameters are  assumed to come from a population distribution. And the key move is that this population  distribution is itself constrained by structural   connectivity. So the especially important point  here is that we're not just taking one estimated   transition matrix per subject and running a  standard group analysis on point estimates.   Here the hierarchical model carries forward the  posterior uncertainty from the first level. So if   a subject's connection estimate is uncertain, that  uncertainty is represented at the second level. Um

in this work, we used a method known as basian  model reduction. We may get to talk about it,   I'm not sure. Um to efficiently compare a large  space of models that differed in in these in these   parameters that mapped structural connectivity  to the prior variance. And this allowed us to   ask which structural connectivity to prior mapping  had the greatest evidence and then average over   um models according to their evidence. So across  Schaefer networks in the human connetoone project data, the evidence- weighted mappings um were  positive and monotonic. So structural connectivity   implied greater prior variance over effective  connectivity. And we also found that the relevant   scale hyperparameter varied across networks in  a way that recapitulated a sensory to transmodal   cortical hierarchy suggesting that structural  connectivity's influence on effective connectivity   may increase as functional fun uh functional  specialization of the network decreases.

So it also motivates the view that this  constraint exerted by a structural connectivity on   uh on effective connectivity may vary as a  function of some pharmacological manipulation or   neuroscychiatric disorder and indeed we've begun  investigating this and have provided some evidence   in uh the context of uh psilocybin administration  and depression in Huntington's disease.   So this is just one example of the broader basian  idea that we can use prior constraints not just as

some technical regularizers or something that  can help the inversion of a model converge on   a solution but as explicit hypotheses about um  the generative mechanisms underlying the data.   Namely that these macros scale white matter  tracks scale the variability or the expected   energy within an effective connectivity network.  And this influence varies across networks and   psychological states. Now there might be something  slightly unsatisfying about the approach I've just

described. We explored the structural connectivity  to prior mapping post hawk by comparing a large   space of candidate prior. A more complete  basian approach would be to put prior over   the mapping hyperparameters themselves and then  invert the hierarchical model so that we obtain   full posteriors over those hyperparameters. That  raises another problem. However, what what should   those priors be? If we choose them huristically,  then we've not really escaped the issue that the auxiliary data that we introduced was addressing.  We've just moved it up a level. Moved that problem   up a level. So these parameter sweeps are usually  necessary at the beginning when you're developing   a model. And for just one example workflow, this  is a quick detour in a rel in related work on this   chromatic DCM which essentially models the way in  which structural degree or veency shapes the order

spectra of indogenous fluctuations um uh for these  neuronal populations. We had these parameters of   this linear function and we handled the problem  of designing prior over the novel parameters in   a pragmatic way. So we first estimated network  specific mappings between structural valencancy   and these spectral exponents then used basian  model averaging to obtain evidence weighted   estimates across these networks. Those estimates  were then used uh to define data informed prior

expectations or your the the mean of your priors.  And then we use simulations where the ground   truth was known to ask what prior precisions or  prior variances allowed the model to recover on   average those parameters most accurately.  So if we know nothing else about the brain   network that you're studying with this model, we  have some datainformed a priority assumptions.   So I mentioned this not to go into depth about  another project but uh just to make a practical point about model and more specifically  prior construction that there is this kind   of conversation between the model and the data.  We start with a plausible generative story test   whether that its parameters are recoverable use  empirical structure to inform plausible prior   and then refine the model accordingly. And that's  the relevant background to this full variational   applause version of the hierarchical scheme that  we're now developing. And the aim is to make the

auxiliary data to prior relationship and explicit  parametric part of the model and to infer the   group level effects um and mapping hyperparameters  together while still carrying forward the   uncertainty from the first level models. So the  way to think about this is quite general. Imagine   uh you have some first level model. It could be a  dynamic causal model. A basian model of directed   functional connectivity or some model applied to  EEG or physiological data. The important thing is

that the first level inversion gives us posterior  expectations and posterior coariance and some   approximation to model evidence. Then we ask a  second question. Are those first level parameters   structured by some auxiliary data? For example,  intererial distance is a very natural candidate   because there's a well-known observation in  neuroscience that projection density tends   to decay with distance. So nearby regions are  on average um more likely to be connected than

distant regions. And that gives us a hypothesis  maybe distance should tell us something about   how much prior uncertainty we assign different  connections or dependencies. So that's the basic   recipe. Um we take some auxiliary data map it  through some parametric function and uh to prior   variance and this induces a structured population  distribution over first level parameters. Those   subject level parameters then generate the data.  Um the nice thing is that uh different mappings

become different hypotheses and because  we're in this variational basian setting   we can adjudicate between those claims using  free energy or other related um information   theoretic criteria. So I don't want to if you're  interested in this sort of thing I don't want to   oversell the degree to which the framework is is  plugandplay. The machinery is general, but the   work is in building sensible models, choosing the  right latent parameters, prior, auxiliary data, and mappings, and then testing whether those  choices behave sensibly in simulations. So,   if you're starting out in this space, resources  like the variational bay analysis toolbox wiki   are useful. Um it frames basian modeling as a  workflow in terms of simulation inversion testing   identifiability running model confusion analysis  and iterating. And the final point that I'll make   is that in MRI and with these sorts of models  where there's usually no ground truth. We're

not observing mechanisms directly. we're inferring  them and there's always uncertainty and and that's   the cost of moving beyond simpler analyses  of observed data. The mathematics become more   complex and so do do and so too do the claims. So  they become less purely descriptive and therefore   on a less secure footing. But the upside is that  we can make our assumptions explicit and generate   hypotheses about potential mechanisms that  can be tested in other data sets, modalities

or in more invasive experimental settings. So  I won't ask for questions because we'll do that   at the end. But thanks for listening. Thanks  Matthew. Thanks uh for the great presentation.   Uh before I introduce our finalist speaker, uh  please feel free to start putting your questions   in the Q&A section or upvote any questions that  have already been asked. Uh we also have a poll   running so please cast your vote for the questions  uh you'd like us to discuss with the panel at the

end of the session. And now it's uh my pleasure  to introduce our finalist speaker Dr. Ellis Ro.   uh Ellis is a post uh post-docctoral research blow  at the University of Melbourne. Her research is   uh primarily in the field of behavioral and  clinical neuroscience specializing in perception,   predictive coding, conscious awareness and  mental health with expertise across different   imaging modalities including EEG and fMRI. Over  to you Elise. Great. Thanks, Emilia. and thanks

for having me along tonight and to everyone for  showing up. Um so I'm going to talk a bit more   broadly about the statistical challenges uh in  neuroiming analysis and interpretation and I'll be   focusing on um primarily EEG analysis as well as  the statistical parametric mapping software. So we   know that neuro imaging provides highdimensional  noisy and indirect measurements of brain activity. And the goal is to not only detect effects, but we  also want to make reliable inferences from complex   data. And two of the most common challenges that  I'm going to touch on today are the multiple   comparisons problem. And SPM has a couple of  ways to deal with this. One takes a classical   approach and another is a basian approach which  I'll explain a little bit more about later.   Um, and I'm also going to look at the inverse  problem um, when looking at EEG data um,

and how this is solved in SPM. So what is  the multiple comparisons problem? Well,   when we have well-ch characterized ERP components  like the mismatch negativity or the P300, we can   look at the prior literature um to determine  where and when our experimental effects are   most likely. Um so in the case of something like  this, if we're looking at the mismatch negativity,   we might extract group level activity at  um an electrode like FZ. And then we know that we're looking in a window um such as 100  to 250 milliseconds. So we can also extract   um group level activity from within this window  to average it um and then perform statistical   tests. Um so we can do a single t test or an  ANOVA depending on the number of conditions.   But we can also do time resolve comparisons. Um  so we might want to look at individual time points   within this time window to see where there's a  difference between the um the conditions. But

what if the location of the responses is not  known a priority or we want to just know where   and when a specific effect is occurring. This  leads to a massive multiple comparisons problem.   So we have thousands of sensors by time points.  When we're looking at the scalp and neighboring   activity in both time and space is really highly  correlated when we're looking at the source level.   We have this same problem and this leads to it  leads to a huge number of statistical tests that are possible. Um and at ordinary um P is less than  0.05 um levels you get large a large number of   false positives. And so this is where SPM was kind  of revolutionary when it was first introduced. Um,   so as I said before, there's a couple of different  ways SPM um can deal with this. Um, but I'll just   go into the pipeline to get to um the different  ways that this is tackled. So when we have a raw   MEG data, we then apply some pre-processing  such as filtering or artifact detection. We

then convert uh each uh condition per participant  into an image and this is X by Y over the scalp.   And then we have these scalp maps uh over time.  But this can also be done at the source level as   well. We then apply a uh spatial smoothing filter.  Uh this allows us to comply with the requirements   uh for the frequentness approach and we then do  a voxalise analysis where we perform a GLM both   XY and T points and this computes the bit  of coefficients that we can use for our um

statistical comparisons. uh this then once we  contrast these so we'll look at our conditions   of interest and we might look at the main effects  or simple effects and this will give us what is   actually known as the statistical parametric map  that's untholded uh so again here we have x by y   by time and these are un thresholded t or fcore  value maps and as I was saying before uh we can   do statistical inference on these statistical  parametric maps uh using either what is known as gausian random field theory. Um, and this allows  us to do familywise error corrected uh, SPM maps,   but we can also use Bayian approach. Uh, so this  uses Beijian model selection and what's known as   posterior probability maps and I'll just go into a  little bit more um, detail about exactly how this   is done. Uh so as I was saying before for these  SPMs we use random field theory to correct uh for

multiple comparisons and in this way we treat um  a statistical map as a continuous smooth random   field. So in a really simplified explanation of  how this works. We might take our un thresholded   statistical parametric map and this is just  showing uh the t statistic across the scalp   for one single time point and this could be just  of one contrast of interest. And what SPM does   uh in a simplified format is kind of converts  this um into a spatial topology problem. And so

we have here the peaks and valleys that represent  these t statistics. And this is just showing an   example at one time one point in time but this  is um applied across all points in time in three   dimensions because we have um correlations in  both space and time. And then what we can do is   we can apply what's known as a family wise error  correction um like a a level and this will lead to   uh the significant clusters or excursion sets  that show us where we have clusters um that

would not have o occurred just by chance. And once  this is applied, we then get what's known as our   error family error wise corrected statistical  parametric map. And this shows us regions   across the scalp that have survived um this  correction and that we know aren't just occurring   uh by random chance. But as as I mentioned  before, there's another built-in factor to   SPM that's known as Beijian model selection. And  what's really nice about this is that uh you can actually quantify the relative evidence um for  any number of models and this is also performed   in a voxal wise manner. Um and then it selects  the model with the highest probability um and   this can be done uh in space and time as well.  And what we're looking at is the probability um   of the data given the model um and I think we've  touched on it a little bit uh earlier tonight. Um   but a really simplified uh example of how this is  performed is you can specify any number of models

for how you might predict that your conditions  might appear in the brain. And so we have a   simple model model one here and this is model two  and our two conditions. We can use variational   base approximation uh to compute the model  evidence and then we can look at the group level   um using two different methods. So, fixed effects  or random effects. And this will um show us where   and when in the brain either of these models win.  Uh with random effects being a bit more um lenient um to to potential outliers. And in a paper from  our paper of ours from 2018, we did this um and   we we showed that for model one, this is a very  clear winner. So we have here this is X and Y over   time and then some scalp maps showing the clusters  across the brain. Uh so we can see here that model   one had a very high probability compared to model  2 but there were some small short time points   um and locations in the brain where model 2  won. Uh so this is just a nice way to I guess

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent