YouTube2Text

Data representation and plotting — Transcript

by Introduction to Biostatistics · 4,744 words · 649 segments · language en · Watch on YouTube

Full transcript

  1. 0:02[Music]
  2. 0:16and hi uh welcome to today's lecture so
  3. 0:20I hope you have done your you know
  4. 0:22assignments and gone through the
  5. 0:23multiple choice questions which were
  6. 0:25uploaded so today we will uh start
  7. 0:28discussing about uh data and ways of
  8. 0:31representing data so broadly speaking
  9. 0:34there are two components of Statistics
  10. 0:37one is descriptive statistics which
  11. 0:39essentially summarizes that is to
  12. 0:41basically convert raw data into some
  13. 0:44numbers so that is what descriptive
  14. 0:46statistics is about and the other type
  15. 0:48of Statistics is called inferential
  16. 0:50statistics here we want to develop
  17. 0:52procedures for finding out or making
  18. 0:56distinct conclusions from the measures
  19. 0:59that we have drawn from the sample from
  20. 1:01the population okay so there are so of
  21. 1:04course inferential statistics is the
  22. 1:06most important thing so there are few
  23. 1:10steps which we need to follow in order
  24. 1:12to understand what what are the steps in
  25. 1:14inferential statistics right so the very
  26. 1:17beginning the first thing is to identify
  27. 1:19what is your question right what is your
  28. 1:21question and who is your population
  29. 1:24let's say you want to you know you want
  30. 1:26to make you want to Market a soap then
  31. 1:30and for teenagers so what should be the
  32. 1:33look and feel of the soap so has to
  33. 1:37attract teenagers to using that so your
  34. 1:40population is a teenager the question is
  35. 1:42basically to make a soap of and identify
  36. 1:45the essential features of the soap right
  37. 1:48so now you want to have a process of
  38. 1:51selecting sample right so you know it's
  39. 1:53teenagers but teenagers from where you
  40. 1:56know what is the proportion of boys
  41. 1:59versus girls in this sample right so
  42. 2:02once you have done that and you know we
  43. 2:04had discussed in previous lecture that
  44. 2:06if your sampling is improper then you
  45. 2:09might lead to a completely wrong result
  46. 2:12okay once you select the sample you have
  47. 2:15to analyze the information right you
  48. 2:17select the sample you ask the relevant
  49. 2:19questions in the course of a
  50. 2:20questionnaire and you analyze the
  51. 2:22responses given by you know boys and
  52. 2:25girls right and based on that you want
  53. 2:27to make an inference that you can apply
  54. 2:29for the whole population of teenagers
  55. 2:32and then finally you want to determine
  56. 2:34the reliability of inference right you
  57. 2:36have come up with Okay pink soap with
  58. 2:39you know which is more elliptical in
  59. 2:40nature or oval in nature is is what
  60. 2:43people would want so but you want to
  61. 2:45test the reliability of this inference
  62. 2:47so these are the steps in inferential
  63. 2:49statistics okay but before the you know
  64. 2:52the Prelude to inferential statistics is
  65. 2:54descriptive statistics and we want to
  66. 2:56begin with them descriptive statistics
  67. 2:58okay so in Des descriptive statistics
  68. 3:01one of the M most important things is
  69. 3:04the variable right what is your variable
  70. 3:06okay so variable is a characteristic
  71. 3:09which varies with time and our different
  72. 3:11in so our body temperature can be a
  73. 3:13variable right so you want to figure out
  74. 3:15whether someone has fever or not fever
  75. 3:17right so body temperature is a variable
  76. 3:19in that case some you want to figure out
  77. 3:21what is the average height of this
  78. 3:23population right so then height
  79. 3:25similarly weight so on and so forth so
  80. 3:27this is just an
  81. 3:28example of you know data of let's say
  82. 3:32five students in a class so you have the
  83. 3:35following categories in other words you
  84. 3:36have the following variables what is the
  85. 3:39gender what is the year in which the
  86. 3:41student you have selected the students
  87. 3:43five students from you know from the
  88. 3:45hostel which year they are first year
  89. 3:47second year so on and so forth what are
  90. 3:49they measuring in be it maths be it
  91. 3:51physics be it biology so on and so forth
  92. 3:54how many courses have they already done
  93. 3:57right so a first year student would have
  94. 3:59taken can probably taken five courses
  95. 4:01already that means the second semester
  96. 4:03of the first year so on and so forth
  97. 4:04okay and what is the GPA of that
  98. 4:07particular student so what you see that
  99. 4:09the nature of the variable differs a lot
  100. 4:13okay so in case of gender it's just a
  101. 4:16category right you either have male or
  102. 4:18female in year you have a number 1 2 3 4
  103. 4:22okay major is also categories right you
  104. 4:25have distinct categories maths physics
  105. 4:27biology so on and so forth now number of
  106. 4:29courses is a variable but it is a
  107. 4:32discrete variable right you can have
  108. 4:34only you know natural numbers which is
  109. 4:37greater than zero and in terms of 1 2 3
  110. 4:40like that okay but cgpa is a fraction
  111. 4:43right it is a number which is depending
  112. 4:45on what is your you know total cgpa it
  113. 4:48can vary anywhere between 0o and 10
  114. 4:50let's say okay but you can have any
  115. 4:52variable which is between these
  116. 4:54numbers so in other words my variable
  117. 4:57can be divided into the four categories
  118. 4:59right your type of data can be
  119. 5:01qualitative so qualitative I mean that
  120. 5:04is it gender is for example male or
  121. 5:06female or you can have a quantitative
  122. 5:09variable which is essentially like cgpa
  123. 5:12or which you know which year you are in
  124. 5:15so again which year you are in is a
  125. 5:17discrete variable and your cgpa is a
  126. 5:19continuous variable okay so there are
  127. 5:21various types of variables you have to
  128. 5:23identify depending on the problem now
  129. 5:27let's say we you know go back back to
  130. 5:30another plot where you have a grade so
  131. 5:33you have you know the mids exam is over
  132. 5:36and you have graded the students and you
  133. 5:37want to find out the statistics as to
  134. 5:39who has gotten what grades okay so there
  135. 5:42are 10% in the population which has
  136. 5:43gotten grade a 30% of the population
  137. 5:46Grade B 40% grade C and 20% grade D so
  138. 5:50you can represent it in a what is very
  139. 5:52you know popularly known and used it's
  140. 5:55called a pie chart it is attractive in
  141. 5:56nature so what you clearly see 40 is C
  142. 5:59and and it has the biggest section of
  143. 6:01the pie chart so this the the area of
  144. 6:04this pie chart is proportional to kind
  145. 6:06of the relative frequency of this number
  146. 6:09okay but so pie chart is easy to
  147. 6:11represent easy to understand but it has
  148. 6:14its share of problems so we need to know
  149. 6:17what are this problems so imagine in
  150. 6:19this case there are only four grades so
  151. 6:21there are four categories it is easy to
  152. 6:24come up with the pie chart imagine a
  153. 6:26situation where there are 25 different
  154. 6:29categorize you know categories possible
  155. 6:31so in other words each of these
  156. 6:33percentage areas will keep on shrinking
  157. 6:36and shrinking so imagine you have one
  158. 6:38case which is 1% and the other one which
  159. 6:41is 41% so 41 will of course take a huge
  160. 6:44chunk of this P chart but 1 person will
  161. 6:47barely be visible so in other words you
  162. 6:50it is difficult to represent in pie
  163. 6:52charts when you volume of data increases
  164. 6:55such that there are multiple different
  165. 6:57categories possible so you can express
  166. 7:01this categorical data into Al in
  167. 7:03something another thing which is widely
  168. 7:05used is a b chart so same as before you
  169. 7:08have the percentage in your y- AIS and
  170. 7:10you have the categories a b c d okay so
  171. 7:14as before one of the weaknesses or you
  172. 7:16know deficiencies of these bar charts is
  173. 7:19that if you have too many bars it looks
  174. 7:21cluttered okay if you have few bars
  175. 7:24there you know it is easy to represent
  176. 7:28okay
  177. 7:30so this is you know coming to the few
  178. 7:32bars and again the same problem that I
  179. 7:34mentioned before for pie charts right so
  180. 7:37you have a value one which is 2% and
  181. 7:39another value which is 40% how can you
  182. 7:42represent it in the same bar and still
  183. 7:45the you know the the other person can
  184. 7:47make sense out of it the 2% for all
  185. 7:49practical purposes will look like zero
  186. 7:51so it is nearly impossible but there is
  187. 7:54a solution so what we do is when the
  188. 7:57variation in data is huge as is in this
  189. 7:59particular plot you have three
  190. 8:01categories a b c where a value is around
  191. 8:0450 and C is maybe even you know 600
  192. 8:08right so what you can do is introduce
  193. 8:10something called a break okay so you
  194. 8:12want to show that there is significant
  195. 8:15difference between a and b so you have
  196. 8:18so whatever is the you know range
  197. 8:20maximum of C till there you can have a
  198. 8:22continuous you know axis in y but after
  199. 8:26that you can introduce what is a break
  200. 8:28right so let's say this guy is 800 so
  201. 8:30you can introduce a break at 400 and
  202. 8:32then plot again so everything still fits
  203. 8:35into the same thing but the essential
  204. 8:37part of the information is there for you
  205. 8:39to gather that that this is way smaller
  206. 8:42than this is also part of the
  207. 8:44information and this is way smaller than
  208. 8:46this is also part of the information and
  209. 8:48you want to capture both these things in
  210. 8:50the same
  211. 8:51plot so let us have a simple example
  212. 8:54okay we are talking about working with
  213. 8:57quantitative data right so so this is
  214. 8:59the body mass indices of you know 25
  215. 9:02people right in a class let's say you
  216. 9:05have this entire you know of course
  217. 9:06these values are continuous variables so
  218. 9:09so that you can have all these values
  219. 9:11now we want to know how can we convert
  220. 9:13it into a way of representing it so
  221. 9:16identifying categories a b is perhaps
  222. 9:19not the good you know good way because
  223. 9:21it's not a discrete quantity but a
  224. 9:23continuous quantity but what you can do
  225. 9:26is you can
  226. 9:28identify what is the range right so in
  227. 9:31order to identify the range we want to
  228. 9:33know what is the smallest value in this
  229. 9:35population so I can go through this list
  230. 9:38and I think the smallest value is 18.3
  231. 9:41so 18.3 is the smallest value and the
  232. 9:45largest value largest value is
  233. 9:5028.8
  234. 9:5334.2 okay so 34.2 is the largest value
  235. 9:58this is
  236. 10:00smallest this is largest right so we can
  237. 10:05divide it so 18 into 34 is roughly 18 to
  238. 10:0834 is equal to you know 16 so we can
  239. 10:11have a range of four baskets so we can
  240. 10:14identify four baskets let's
  241. 10:19say okay one is 18.3 to
  242. 10:2422.3 another is
  243. 10:2622.3 so 22. 3 to
  244. 10:3126.3 okay we can have another
  245. 10:35one which is
  246. 10:3726.3 to
  247. 10:3930.3 and 30.3 to
  248. 10:4434.3 now each of these numbers would
  249. 10:47mean that you in this basket something
  250. 10:49will come in if let's say that number X
  251. 10:52is greater than
  252. 10:5426.3 greater equal to 26.3 and X is less
  253. 10:58than 30 .3 so this would make sure the
  254. 11:01same point x does not go into multiple B
  255. 11:05baskets okay so this way what we can
  256. 11:08generate is called a histogram okay so
  257. 11:11you convert the data into frequency you
  258. 11:14can then plot them as numbers or
  259. 11:16percentage and then you can have
  260. 11:18multiple distributions depending on the
  261. 11:20nature of the data okay so your
  262. 11:22histogram looks something like
  263. 11:24this so you can have these bars so in
  264. 11:27our case we have four bars so we will
  265. 11:30have these distribution so these are
  266. 11:32values and this axis is frequency or the
  267. 11:36number of them so it is possible so it
  268. 11:39is possible to convert this
  269. 11:42data now let's say you are going through
  270. 11:45this
  271. 11:47exercise you
  272. 11:50have this distribution in one case where
  273. 11:53the total number of observations were 25
  274. 11:56and another
  275. 11:57distribution
  276. 12:02okay where n is equal to 600 right is it
  277. 12:06possible to put both of these data on
  278. 12:08the same plot okay and this is where you
  279. 12:12have to do what is called as a
  280. 12:13normalization exercise so you know what
  281. 12:16is n equal to 25's total and you know
  282. 12:19each of these values frequencies so you
  283. 12:21convert it you normalize the curve in
  284. 12:24other words you divide every if let's
  285. 12:27say this is my F1 this is my FS2 this is
  286. 12:30my fs3 so on and so forth I convert them
  287. 12:34into
  288. 12:36fractions okay so the nature of the
  289. 12:38curve won't change so this value this
  290. 12:41value is now fub1 by summation fi okay
  291. 12:45so it is equal to fub1 by fub1 + FS2 +
  292. 12:50F3 +
  293. 12:52F4 so this you will get a fraction it's
  294. 12:55a
  295. 12:56fraction okay so once we have done this
  296. 13:00then it is theoretically possible to
  297. 13:02generate the following
  298. 13:05plot I have the same
  299. 13:07[Music]
  300. 13:15thing and another one let's just say
  301. 13:19hypothetically so the way I drew
  302. 13:27is okay okay so if I just if I were to
  303. 13:31draw the outlines of this curve this
  304. 13:33curve would look like this so you have
  305. 13:36one curve like this and the other
  306. 13:41curve which is like this so it is
  307. 13:43possible to plot both of them at the
  308. 13:46same time but you have to do is
  309. 13:47normalize but another caveat of this is
  310. 13:50you must ensure that the data is from a
  311. 13:53similar distribution so any of course
  312. 13:55there is greater certainty when you have
  313. 13:57sampled 600 you know individual
  314. 14:00measurements but when you are you know
  315. 14:02plotting the same thing with n equal to
  316. 14:0425 there's is the great possibility that
  317. 14:07the nature of that distribution will
  318. 14:10shift okay so another way of you know
  319. 14:14another type of plot which is widely
  320. 14:16used is called scatter plot so scatter
  321. 14:19plot is just X and Y values let's say I
  322. 14:23have X versus y I have age age as one
  323. 14:28variable
  324. 14:29and the other variable is let weight
  325. 14:31right so I can have this generation age
  326. 14:34is very you know let's say 5 years
  327. 14:36weight is 10 kgs so on and so forth and
  328. 14:3950 50 years age is you know 60 kgs so
  329. 14:42you have a range okay now depending on
  330. 14:45the nature of this data you might have a
  331. 14:47you know points which look like this so
  332. 14:50this is my X this is my y so you might
  333. 14:54have a data which looks like this or as
  334. 14:56I have plotted in this particular curve
  335. 14:58you have a kind of a reverse such
  336. 15:00Association where you have greater the
  337. 15:02increase in X the Y value decreases with
  338. 15:05a notable exception okay so this is
  339. 15:08where your you know data analysis so you
  340. 15:11know in this case do you call it a
  341. 15:13negative association or do you want to
  342. 15:15have a much more nonlinear nature of
  343. 15:17this
  344. 15:18curve so Scatter Plots are widely used
  345. 15:22so again here it is better to plot these
  346. 15:25points as scatter as opposed to connect
  347. 15:27them then it is much difficult to make
  348. 15:29sense out of this
  349. 15:31data okay but you can make so if you
  350. 15:34were to connect it then you can generate
  351. 15:36what are typically called as line plots
  352. 15:38so this is an example of a line plot
  353. 15:40where X and
  354. 15:42Y I have plotted it in a slightly which
  355. 15:45looks like a you know s in some way so
  356. 15:49these are reminiscent of bacterial
  357. 15:51growth curves but you know so you can
  358. 15:54have various functions which describe
  359. 15:56these line plots so it makes sense to
  360. 15:58connect them by line when you know that
  361. 16:00the underlying phenomena is actually a
  362. 16:02physical process which has a given time
  363. 16:05constant associated with it or a given
  364. 16:08you know mechanism by the way in which
  365. 16:10it happens so there's it's it's under
  366. 16:12control it is not a completely random
  367. 16:14Association so that is when you can have
  368. 16:16very nice linear plots so just a small
  369. 16:18detour on the type of
  370. 16:20plots you you know you are all well
  371. 16:23conversent with linear plots xal to Y is
  372. 16:26a very simple plot and you know how plot
  373. 16:28it you have X you have y you take these
  374. 16:32points and you know you take these
  375. 16:34points so let's say this is 1 comma 1
  376. 16:37you have min-1 comma minus1 you know 5
  377. 16:41comma 5 so on and so forth you have a
  378. 16:43line which goes like this and this is
  379. 16:4645° right so in general if you have a
  380. 16:49line which kind of shifts up so in in
  381. 16:52general why you know you can have a line
  382. 16:55which is like this in this case
  383. 17:00okay so there's an intercept a nonzero
  384. 17:02intercept on the y- AIS which you can
  385. 17:04call it y0 and it has a given slope so
  386. 17:07you can have M as the slope or M is
  387. 17:10nothing but tan Theta so in this case Y
  388. 17:13is equal to y + MX is your equation okay
  389. 17:19so depends so you can have multiple type
  390. 17:22of you know uh functions so these are
  391. 17:24all linear functions that I have drawn
  392. 17:26you can have something like this
  393. 17:28let's say this is an example of a
  394. 17:30parabola so this is X this is Y and Y is
  395. 17:33equal to let's say x² right so the far
  396. 17:37higher you w you have a non you
  397. 17:39nonlinear nature of the curve so these
  398. 17:41are so Y is equal to X cubed will look
  399. 17:43similar but it it it have much sharper
  400. 17:46Peak be before xal to 1 and lower Peak
  401. 17:51before this but y = x = x² is symmetric
  402. 17:55but y = x x cubed looks like so Y is
  403. 17:58equal to X Cub looks like this when X is
  404. 18:00negative your y values are negative okay
  405. 18:03so these are some of the simple Curves
  406. 18:05in polinomial you can have exponential
  407. 18:07curves which are let's say an
  408. 18:10exponential DK Curve will looks like
  409. 18:12this let's say x this is Y at so if it
  410. 18:15is y is equal to e ^ minus X in terms of
  411. 18:18DK you have at x equal to 0 you have y
  412. 18:20equal to 1 and then you have a
  413. 18:21characteristic time so in the most
  414. 18:23General case you have X by to which you
  415. 18:26know which represents the time con of
  416. 18:28the form so when you are trying to fit
  417. 18:31data let's say you have a data which
  418. 18:33looks like this then it should
  419. 18:35immediately occur to you that this has
  420. 18:38something it might look like an
  421. 18:39exponential it might be a par you know
  422. 18:41it might look like a polinomial so pols
  423. 18:44are easy to fit because they have
  424. 18:46multiple Dimensions but it is not you
  425. 18:49know Wise to always fit every function
  426. 18:51with a polinomial now what are the
  427. 18:53things that you need to keep in mind
  428. 18:55while doing these
  429. 18:56plots let us go over them one by one so
  430. 18:59of course when you make a
  431. 19:02plot first thing you have to label your
  432. 19:04variables X and Y you have to put their
  433. 19:07units ideally so let's say this is if is
  434. 19:09age then I can have years in my if this
  435. 19:12is weight I can have kg okay so I need
  436. 19:15to know what is the what are my Axis and
  437. 19:18what are my units okay
  438. 19:20and I need to choose the appropriate
  439. 19:23range let's say for example we I want to
  440. 19:26make a plot of population expansion
  441. 19:29right so if I plot like this right it
  442. 19:33gives me the impression so sorry this is
  443. 19:35kg but let's say it is the weight itself
  444. 19:38right weight which is increasing as a
  445. 19:39function of years which will also
  446. 19:40probably be a linear you know increase
  447. 19:42and then some saturation after Point
  448. 19:44okay so in this case if I want to show
  449. 19:47it is linearly increasing so let's say
  450. 19:50this maximum value is around 60 okay so
  451. 19:54I need to make sure and I am plotting
  452. 19:57till 150
  453. 19:58so this portion of my plot is completely
  454. 20:01destroyed because I am not using the
  455. 20:03space I am I am visually trying to
  456. 20:06convey that the weight is not changing
  457. 20:09much with years but in reality the
  458. 20:11weight is changing with years so I
  459. 20:13should actually rraw this plot that this
  460. 20:15is from 0 to 60 and my curve should look
  461. 20:18something like
  462. 20:20this okay so if it was like 60 then I
  463. 20:22can clearly see there is a nonlinear
  464. 20:24increase initially which means that
  465. 20:27initially when kids are growing their
  466. 20:29weight increases drastically but once
  467. 20:31they reach a certain age it starts to
  468. 20:33kind of plateau off
  469. 20:36okay again the other point of breaks as
  470. 20:39I said so in whatever you have done in
  471. 20:41bar graph you can have the break here
  472. 20:44itself again let's say you have a
  473. 20:46variable X which goes from 0 to 100 and
  474. 20:50a variable Y which goes from .1 to
  475. 20:5510,000 right so here if you if you put a
  476. 20:59linear value so all so all values which
  477. 21:02are very small will look like this just
  478. 21:04look like a mess here but what you can
  479. 21:07do is you can either plot it in log
  480. 21:10scale so if you plot it in log scale
  481. 21:13then accordingly every point so this
  482. 21:15will be one this will be 10 100 so on
  483. 21:19and so forth okay so the points will be
  484. 21:22well separated out and you can see them
  485. 21:25so it is important to choose appropri
  486. 21:28range and or again as as before let's
  487. 21:31say this is from .1 to 100 what I can do
  488. 21:35is I can introduce a break so let's say
  489. 21:37I can have 0.1 to 1 and then 80 to 100
  490. 21:40if all the data is just here and then
  491. 21:43remaining is here okay so this is how I
  492. 21:46can really make use of the whole plot
  493. 21:48and still plot my Axis so that
  494. 21:50everything is clearly
  495. 21:52visible one more thing is let's just say
  496. 21:55that you have all your data is here and
  497. 21:57there is one one outlier which is here
  498. 22:00okay all your data is re is essentially
  499. 22:02concentrated in this portion of the
  500. 22:04curve but there is one point which is
  501. 22:06way out which is an outlier so would you
  502. 22:10bother to plot the entire range or would
  503. 22:13you just bother to point this plot this
  504. 22:14inside I think it is it makes sense to
  505. 22:17plot the center then and then bloat it
  506. 22:20up okay so you make it big so then you
  507. 22:24have all this scatter and as an inset
  508. 22:26you can have this higher value where all
  509. 22:29these points are looking the same so
  510. 22:31make this whole curve as the inset so
  511. 22:33this is called a
  512. 22:36inset okay to handle
  513. 22:39Outlets okay so now these are some
  514. 22:42single y plots again let's just say that
  515. 22:46I have three variables right let's say I
  516. 22:49have three variables
  517. 22:51time
  518. 22:53age and
  519. 22:55weight okay three variables
  520. 22:59okay and I want to understand and I want
  521. 23:03to make a single plot of putting all
  522. 23:05them together so this is where you can
  523. 23:07make use what is called as a Double Y
  524. 23:12plot okay so you can have two axis so
  525. 23:16this is you can label this as y1 axis
  526. 23:19this is as Y2 axis this is X and you can
  527. 23:21plot them let's say with you know weight
  528. 23:25with time might saturate an age with
  529. 23:28time has a you know linear relationship
  530. 23:31so this if x is my
  531. 23:34time this is my
  532. 23:37uh weight and this is my age then this
  533. 23:41guy will have a linearly increasing
  534. 23:44curve okay so this is just another
  535. 23:47example of a Double Y plot so in this
  536. 23:50case I have had a reverse fight in which
  537. 23:52variable y exhibits a decrease a linear
  538. 23:56decrease with X as a function of time
  539. 23:57time and variable X actually exhibits a
  540. 24:01saturation profile so beyond a certain
  541. 24:03value of x it reaches the
  542. 24:06saturation okay so now let us solve few
  543. 24:09examples so we have the following
  544. 24:12example where you have number of visits
  545. 24:14to a dental clinic in a typical week so
  546. 24:17as you can clearly see so these numbers
  547. 24:19are all discrete numbers you don't have
  548. 24:21a fraction because the number of visits
  549. 24:23is of course a discrete
  550. 24:24number but and you want to know what is
  551. 24:27the best of plotting it okay so first
  552. 24:30you see what is the range right so we
  553. 24:32have all the way from 1 to 8 and I think
  554. 24:35when you have this kind of data it is
  555. 24:37good to sort it so if I were to write
  556. 24:40the same data together in a sorted form
  557. 24:44I have
  558. 24:45one so the frequency of one I can make
  559. 24:48the frequency of one so I have one 2 3 4
  560. 24:555 6 7 8 right right so and this is my
  561. 24:59frequency axis we have the number of
  562. 25:05visits and the frequency axis so for
  563. 25:08number one the frequency is two the
  564. 25:11number
  565. 25:12two so the frequency of two is only one
  566. 25:17right frequency of three is 1 2
  567. 25:25three frequency of four is 1 2 3 4
  568. 25:315 frequency of five is 1 2 3 4 5 6
  569. 25:387 frequency of six is only one frequency
  570. 25:44of s
  571. 25:45is
  572. 25:473 8 is 1
  573. 25:512 okay so you have the number of visits
  574. 25:54because these numbers are small there is
  575. 25:57absolutely so you so of course this axis
  576. 26:00has to be one two like that
  577. 26:03three and because these numbers are
  578. 26:06small there is absolutely no necessity
  579. 26:08to make it into a relative score you can
  580. 26:11just have these values so for example
  581. 26:13for one it is two for two it is one for
  582. 26:16three it is three for four it is for
  583. 26:19four it is
  584. 26:20five
  585. 26:22okay six it is one 7 it is three eight
  586. 26:28it is two okay so you have if I if I
  587. 26:31connect that actually I should have them
  588. 26:33as
  589. 26:37bars okay so what you see is almost that
  590. 26:41the it is not a unimodal distribution
  591. 26:43there is a you know reasonable amount of
  592. 26:46variation in the data so if this was if
  593. 26:49this uh five was slightly higher then
  594. 26:53you have a nice histogram like shape but
  595. 26:56this is different okay okay so this is
  596. 26:58of course a discrete variable and then
  597. 27:00you can I think histogram would be the
  598. 27:02easiest way to plot it okay so let us
  599. 27:06and you know histogram is the way to
  600. 27:07plot it let us take another
  601. 27:10example so I have test course of you
  602. 27:14know 20 students right I have test sces
  603. 27:17of 20
  604. 27:20students and I want to know okay so I
  605. 27:23want to know that what is the average
  606. 27:26test score right as before and what is
  607. 27:28the way of plotting it as before I think
  608. 27:30the histogram is the best way of
  609. 27:32plotting it okay so we can again go
  610. 27:35through the same process we know what is
  611. 27:37our lowest number which is around 29
  612. 27:39which is our highest number which is
  613. 27:42around 93 and we can make it into a
  614. 27:45histogram okay so again where histogram
  615. 27:48is a good way of representing this the
  616. 27:50last
  617. 27:52one uh the last one is an example so
  618. 27:55imagine so the above dat data is not
  619. 27:58test of scores of 20 students but it is
  620. 28:01test scores of 10 students in two exams
  621. 28:03so 10 students exam one exam two so now
  622. 28:06we have to plot this you know so you can
  623. 28:09make them as two separate histograms but
  624. 28:11if you want to plot it in the same plot
  625. 28:13maybe it is best to put it for the for
  626. 28:15each student the X and the Y and that
  627. 28:18might give us some correlation between
  628. 28:21how they performed in each of the exams
  629. 28:23okay so I guess that brings us to the
  630. 28:26end of this just a brief recap we
  631. 28:28discussed uh you know the nature of
  632. 28:31variables either qualitative or
  633. 28:33quantitative we discussed some of the
  634. 28:35common ways of representation which is
  635. 28:37pie chart bar chart histograms line or
  636. 28:41scatter plot and then Double Y okay so
  637. 28:44depending on the nature of the data the
  638. 28:46range the size of the data you might
  639. 28:48choose to you know use the histogram or
  640. 28:51the scatter plot as the case may be when
  641. 28:54you're trying to look for some
  642. 28:55correlation you want to preferably use
  643. 28:57plots like scatter plot okay with that I
  644. 29:00thank you for today's lecture I and I
  645. 29:02hope that you attemp the questions which
  646. 29:04we upload for the multiple choice
  647. 29:06questions thank
  648. 29:16you
  649. 29:23and

About this transcript

This page contains the full transcript of Data representation and plotting by Introduction to Biostatistics, generated from the public captions YouTube serves with the video. The transcript has 4,744 words across 649 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.