hello guys welcome to our channel today we are going to talk about randomization and how we can do randomization while we are doing research studies first of all we will talk briefly about what is randomization and then i will show you how to do randomization using excel so what is randomization randomization is basically the process of assigning experimental units to different treatment groups you may have two treatment groups or three or four depending on your research studies and randomization is the process in which each experimental unit or each participant has equal chance of being assigned to the treatment group so that there is no bias so for example um you want to compare two fertilizers and there are eight plots of land then what you can do is you can assign fertilizer a to four of the plots as shown here and fertilizer b2 for other plots as shown here so all the black plots on the left side are getting fertilizer a and all the green plots on the right side are getting fertilizer b so you can conduct research in this way as well but uh what actually can happen is um in the in the environment or in the nature there might be river on the side of green plot so that means automatically there is a chance that green plots might have better soil quality so the outcome could be that fertilizer b could perform better than fertilizer a in your study because you did not randomize all those plots to either fertilizer a or fertilizer b and when you get the results from your study you might get confused uh that you might get the result that fertilizer b is better than fertilizer a but it may not be necessarily because of the fertilizer it may be because of the better soil quality because all those green plots are on the side of river and that means they get better big large amount of water compared to the black plots and they may perform better in your studies so that means you should properly randomize all those plots to either fertilizer a or fertilizer b so that each plot has equal chance of getting either fertilizer a or fertilizer b which will reduce bias from biasedness caused by the river or better soil quality so now let's go to excel and i'll show you how to do randomization first we will learn about a simple randomization and then we'll move into a little bit complex randomization so here is a blank empty seat and our purpose is i'll first quickly write our purpose um compare two treatment groups using let's say 16 animals so that's our purpose so we will i'll put it here so let's say we have animals name here um we are gonna write animal name here and then animal id so animal i animal name could be i'm just writing random name so that is the that's the name of 60 animals and animal id could be 32 31 43 56 57 that's just imaginary number 33 23 24 27 67 89 1002 [Music] 123 111 [Music] 20 and 65. so that's the animal name and that's the animal id let's uh put them in the border now and close with them within the border so our plan is we have two treatment groups let's say one treatment is um that's a medicine so one one of them is placebo and another is let's say meloxicam that is one of the anti-anti-inflammatory drugs so that is a group one and that's treatment group 2 so group 1 is placebo and group 2 is meloxicam so now what we can do is uh so we don't worry about body weight we don't worry about sex we don't worry about anything so we are just assigning um [Music] these 16 animals to two treatment groups randomly so what we can do is we can use excel functions a function called rand between so if you click um so before that let's make a rule so our rule is so out of those out of 16 random numbers highest eight will be in group one lowest it will be in group two so we don't know what will be the random number but that is our rule so that's the rule so out of 16 random numbers generated by excel we are not gonna generate ourselves it's gonna be generated by excel um so highest it will be group one that is placebo and lowest eight will be in group two that is by looks again so let's use that function so that's the function and the bottom is this and top is that bottom is that and comma top is that so if you drag it down [Music] so that's the random number so let's copy that and paste that way so that it doesn't get changed and that's the run dumb number so now um [Music] what we can do is so let's because we already have made a rule highest it will be group one so let's sort it out and using excel sort function so sort from largest to smallest and we can exp we need to expand the selection because that will like be expanded to column a and b so let's sort so those eight are highest and those eight are lowest so now treatment group will be so treatment group so higher state will be group one as shown here so one one one one one one one one and then that's two two two two two two and two so that is placebo group one is flexible and group two is meloxican so in this way now you have already randomized and these all these animals uh will get placebo and all these animals will get meloxican so now we without knowing the name of the animals you um did a randomization um and the random number was generated by excel it was not you so obviously there is no bias as no bias caused by you um and then you already had made a rule that is higher state will get group one and lowest it will get group two so that means these are the highest state and these are the lowest and lowest eight is getting group two and higher state is getting group one so that's how you can do a simple randomization now let's make it more complex so we are using um so i will go to nexit and our objective is so we have three treatment groups we have two sex that is male and female and we have body weight of the animal as well weight of animal as well so we have different blocks uh black female black female black male and different weight of animals so we can't just randomize like that now like i sold before so we need to account sex and wait and we want to make sure that um the the three treatment group are equally distributed in each uh it's sex and also accounting the body weight so we just don't want highest heaviest animal to have same treatment group and lowest animal to have lowest lightest animal to have same treatment group otherwise weight might also affect effect affect the outcome of the study so objective is to test three treatments so let's say treatment group one is again placebo group two is a meloxy can at least say x mz per kg that's that those and then group three is again maloxycam same drug but at ymz for kg so that's the dose so group one is flexible look group two is meloxy cam at xmz per kg and group three is maloxican at ymc per kg so now again we have it now we have uh what we have is uh 18 animals so out of that nine female and nine mail let's just copy past previous animals um we are we can copy id as well so let's go here that's animal name that's id so how many animal we have we only have i think 16 animals so let's add two more animals um that could be zimba and rumba so that's the name of the animal and the id could be two to three and two to two so now sex so i'm just randomly allocating sex so female male male female i don't know um i don't know their sex but i'm just writing it here so mail male 1 female female male female male 1 female female male so we have one two three four five six seven male so we need nine male and nine female and then wait uh so let's do body weight um so body weight is let's say in kg 11kg 12. 1 kg 13.
2 11. 9 11. 5 16.
5 12 that's very random guys i'm just uh thinking the number and writing it down 12. 3 12. 7 12.
9 13. 9 14. 7 14.
5 12. 96 11. 99 12.
89 13. 8 and 15. 2 so that's the body words so now we have two sex which is female and male and we also have the weight of animals so what we should do in this case is we have three treatment groups nine female and nine males so out of those nine female we want three female to have group one three female to have group two and three female to have group three and again out of those nine male we want three male to have group one three to have group two and three to have group three but we have to randomize that and then again we also want uh we also don't want all the heaviest animal to have same group um as i already told before so we want uh balanced allocation of weight weight to the different treatment group as well so what we can do first is so now let's sort them by six and then by weight so what we can do is click here sort custom sort and then expand so first sort by sex and then sort by weight let's do from largest to smallest so let's see what happens so now uh we already sorted so these nine animals are female and that is going from highest to lowest so 15.