Pages

Saturday, 9 May 2015

Bio statistics Exercises and Solutions

Dear Students in this section, you can find solutions to few problems discussed in theory class

Statistical Table: Standard Normal Distribution $P(Z \leq z)$
z0.000.010.020.030.040.050.060.070.080.09
0.00.50000.50400.50800.51200.51600.51990.52390.52790.53190.5359
0.10.53980.54380.54780.55170.55570.55960.56360.56750.57140.5753
0.20.57930.58320.58710.59100.59480.59870.60260.60640.61030.6141
0.30.61790.62170.62550.62930.63310.63680.64060.64430.64800.6517
0.40.65540.65910.66280.66640.67000.67360.67720.68080.68440.6879
0.50.69150.69500.69850.70190.70540.70880.71230.71570.71900.7224
0.60.72570.72910.73240.73570.73890.74220.74540.74860.75170.7549
0.70.75800.76110.76420.76730.77040.77340.77640.77940.78230.7852
0.80.78810.79100.79390.79670.79950.80230.80510.80780.81060.8133
0.90.81590.81860.82120.82380.82640.82890.83150.83400.83650.8389
1.00.84130.84380.84610.84850.85080.85310.85540.85770.85990.8621
1.10.86430.86650.86860.87080.87290.87490.87700.87900.88100.8830
1.20.88490.88690.88880.89070.89250.89440.89620.89800.89970.9015
1.30.90320.90490.90660.90820.90990.91150.91310.91470.91620.9177
1.40.91920.92070.92220.92360.92510.92650.92790.92920.93060.9319
1.50.93320.93450.93570.93700.93820.93940.94060.94180.94290.9441
1.60.94520.94630.94740.94840.94950.95050.95150.95250.95350.9545
1.70.95540.95640.95730.95820.95910.95990.96080.96160.96250.9633
1.80.96410.96490.96560.96640.96710.96780.96860.96930.96990.9706
1.90.97130.97190.97260.97320.97380.97440.97500.97560.97610.9767
2.00.97720.97780.97830.97880.97930.97980.98030.98080.98120.9817
2.10.98210.98260.98300.98340.98380.98420.98460.98500.98540.9857
2.20.98610.98640.98680.98710.98750.98780.98810.98840.98870.9890
2.30.98930.98960.98980.99010.99040.99060.99090.99110.99130.9916
2.40.99180.99200.99220.99250.99270.99290.99310.99320.99340.9936
2.50.99380.99400.99410.99430.99450.99460.99480.99490.99510.9952
2.60.99530.99550.99560.99570.99590.99600.99610.99620.99630.9964
2.70.99650.99660.99670.99680.99690.99700.99710.99720.99730.9974
2.80.99740.99750.99760.99770.99770.99780.99790.99790.99800.9981
2.90.99810.99820.99820.99830.99840.99840.99850.99850.99860.9986
3.00.99870.99870.99870.99880.99880.99890.99890.99890.99900.9990
3.10.99900.99910.99910.99910.99920.99920.99920.99920.99930.9993
3.20.99930.99930.99940.99940.99940.99940.99940.99950.99950.9995
3.30.99950.99950.99950.99960.99960.99960.99960.99960.99960.9997
3.40.99970.99970.99970.99970.99970.99970.99970.99970.99970.9998
3.50.99980.99980.99980.99980.99980.99980.99980.99980.99980.9998
3.60.99980.99980.99990.99990.99990.99990.99990.99990.99990.9999
3.70.99990.99990.99990.99990.99990.99990.99990.99990.99990.9999
3.80.99990.99990.99990.99990.99990.99990.99990.99990.99990.9999

Example 1:
The display below shows some information for each of 12 tablets taken from a batch of a drug product, and for each of 10 human subjects administered tablets from the same batch.  The "in vitro" figures are the percentages of drug dissolved half an hour after the tablet was introduced into a dissolution medium.
   
5.94 6.22 5.09 6.22 5.37
5.51 4.1 5.51 4.52 4.52
     
Compute arithmetic mean and standard deviation of vitro figures.
Ans:  Let $x$ be the variable takes values on measurement of percentage of drug dissolved half an    hour after the tablet was introduced. The mean of $x$ is $\bar{x}=\dfrac{\sum\limits_{i=1}^{10}{x_{i}}}{10}=\dfrac{53}{10}=5.3 \%$
The standard deviation of $x$ is
 $S_{x}=\sqrt{\dfrac{\sum\limits_{i=1}^{10}{{x_{i}}^2}-\dfrac{({\sum\limits_{i=1}^{10}{x_{i}}})^2}{10}}{9}}$

$ =\sqrt{\dfrac{285.7964 - \dfrac{53^{2}}{10}}{9}}$

$= \sqrt{\dfrac{285.7964-280.9}{9}}$

$ = \sqrt{0.544044444}=0.737593685 \%$

OR

$x_{i}$   $x_{i}-\bar{x}$  $(x_{i}- \bar{x})^{2}$

5.94
0.64
0.4096
6.22
0.92
0.8464
5.09
-0.21
0.0441
6.22
0.92
0.8464
5.37
0.07
0.0049
5.51
0.21
0.0441
4.1
-1.2
1.4400
5.51
0.21
0.0441
4.52
-0.78
0.6084
4.52
-0.78
0.6084

Total
0
4.8964
Therefore
$S_{x}= \sqrt{\dfrac{\sum\limits_{i=1}^{10}{(x_{i}-\overline{x})}^2}{9}}$ =$\sqrt{\dfrac{4.8964}{9}}$ =$\sqrt{0.544044444}=0.737593685\% $

Example 2
In a series of experiments on the determination of tin in foodstuffs, samples were boiled with hydrochloric acid under reflux for different times. Some of the results are shown below:
30 55 57 59 56
Compute $1^{st}$ and $3^{rd}$ quartiles of tin value.
Let $x$ be the variable takes values on measurement of tin $mg kg^{-1}$ for reflux time 30 min.
Arranging the observations in ascending order we obtain

$X_{(1)}=55,X_{(2)}=56,X_{(3)}=56,X_{(4)}=57,X_{(5)}=59,X_{(6)}=59$
Position for First Quartile = $\dfrac{6+1}{4}=1.75$

Quartile 1 = $X_{(1)}+0.75\times (X_{(2)}-X_{(1)}) = 55+0.75\times(56-55)=55.75 mg kg^{-1}$
Position for Third Quartile = $\dfrac{3\times(6+1)}{4}=5.25$

Quartile 3 = $X_{(5)}+0.25\times (X_{(6)}-X_{(5)}) = 59+0.25\times(59-59)=59 mg kg^{-1}$

Example 3
Suppose a random variable X has Normal distribution with mean $\mu = 3$ and standard deviation $\sigma = 2$, compute the following probabilities

  1. $P(X < 4)$
  2. $P(X > 2)$
  3. $P(1 < X < 4)$
Ans:
To Compute $P(X < 4)$
Consider the transformation $z = \dfrac{x-\mu}{\sigma}$. Replacing $x$ by 4 in $z$ we can write
$P(X < 4)=P\left(Z < \dfrac{4-3}{2}\right)$

$=P(Z < 0.5)$
This problem is represented graphically as

Fig 1. Area representing $P(Z < 0.5)$
The area can be read from Statistical Table
we can write
$P(X < 4) = P(Z < 0.5) = 0.6915$










To Compute $P(X > 2)$
Consider the transformation $z = \dfrac{x-\mu}{\sigma}$. Replacing $x$ by 2 in $z$ we can write
$P(X > 2)=P\left(Z > \dfrac{2-3}{2}\right)$

$=P(Z > -0.5)$
This problem is represented graphically as
Fig 2. Area representing $P(Z > -0.5)$

This is not the same Area represented by Statistical Table
Due to symmetric nature of graph we can represent mirror image of the Area as (Fig 3.) This is the same Area represented by Statistical Table. We write

$P(X >2) = P(Z > -0.5) = P(Z  < 0.5) = 0.6915$




Fig 3.Showing Mirror Area representing $P(Z < 0.5)$












To Compute $P(1 < X < 4)$
Consider the transformation $z = \dfrac{x-\mu}{\sigma}$. Replacing $x$ by 1 , 4 in $z$ we can write

$P(1 < X < 4) = P\left( \dfrac{1-3}{2} < Z < \dfrac{4-3}{2} \right)$

$=P(-1 < Z < 0.5)$
This problem is represented graphically as
Fig 4. Area representing $P(-1 < Z < 0.5)$
This is not the same Area represented by Statistical Table







This Area can be divided in to different areas as follows
Fig 5. Area $P(Z  < 0.5)$
Fig 6. Area $P(Z \leq  -1)$

That is we write $P(-1 < Z < 0.5)=P(Z < 0.5) - P( Z \leq -1)$
Using Symmetric property of graph we represent mirror image of graph $P( Z \leq -1)$ as (Fig 7)

Fig 7. Area $P(Z \geq 1)$








Because the total area below the curve is 1, this gives computation of $P(Z \geq 1)$ by following area
Fig 8. $P(Z < 1)$

We can write $P(Z \geq 1)=1 - P(Z < 1)$ (Fig 8)






Therefore
$P(Z \leq -1) = P(Z \geq 1) $

$=1 - P(Z < 1) $

$= 1 - 0.8413 $

$= 0.1587 $

and hence

$P(-1 < Z < 0.5) = P(Z < 0.5)-P( Z \leq -1) $

$=0.6915 - 0.1587 $

$=0.5328 $

We get  $P(1 < X < 4)=0.5328$

Example 4
It is suspected that an acid–base titrimetric method has a significant indicator error and thus tends to give results with a positive systematic error (i.e. positive bias). To test this an exactly 0.1 M solution of acid is used to titrate 25.00 ml of an exactly 0.1 M solution of alkali, with the following results (ml)
Volume of Acid: 25.06 25.18 24.87 25.51 25.34 25.41

  1. Determine Mean and Standard deviation of the result obtained.
  2. Test Hypothesis of no bias  $H_{0}:\mu = 25ml$ against there is bias  $H_{1}:\mu > 25 ml$ for this experiment at 5$\%$ level of significance.You are given $t_{5,0.05}=2.015,t_{5,0.025}=2.571$

Ans


Let $x$ denotes volume (ml) of test result and $n$ number  of test results.Therefore $x_{1}=25.06,x_{2}=25.18,x_{3}=24.87,x_{4}=25.51,x_{5}=25.34,x_{6}=25.41$ , Therefore
$\bar{x} = \dfrac{\sum\limits_{i=1}^{6}x_{i}}{6}$

$=\dfrac{151.37}{6}$

$=25.22833$

$s^{2} = \dfrac{\sum\limits_{i=1}^{6}x_{i}^{2}-\dfrac{\left( \sum\limits_{i=1}^{6}x_{i}\right)}{6}}{5}$

$=\dfrac{3819.0967-3818.8130}{5}$

$=0.05677 $

$s = \sqrt{0.05677}$

$=0.2383$

Using computations of sample mean and sample standard deviation, the computation of test statistic to test $H_{0}$ is

$t  = \dfrac{\bar{x}-\mu}{s/\sqrt{n}}$

$=\dfrac{25.22833-25}{0.2383/\sqrt{6}}$

$=2.347$

As Computed test statistic $t = 2.347$ exceeds $t_{5,0.05}=2.015$,we reject hypothesis $H_{0}$ in favor  of $H_{1}$ at 5$\%$ level of significance.

Example 5
Two types of chemical solution A and B were tested for their pH (degree of acidity of the solution). Analysis of 6 samples of A showed a mean pH of 7.52 with a standard deviation of 0.024. Analysis of 5 samples of B showed a mean pH of 7.49 with a standard deviation of 0.032. Using a 5$\%$ significance level, Test the hypothesis $H_0:\mu_1 = \mu_2$ against $H_1: \mu_1 \neq \mu_2$. Where $\mu_1$ and $\mu_2$ are true mean pH values of two solutions A and B. You are given 
$t_{9,0.05}=1.833,t_{9,0.025}=2.262$

Ans:
Let $X$ denotes measurement of pH of chemical solution  obtained by Analyst A and $Y$ denotes measurement of pH of chemical solution  obtained by Analyst B.

Also $m  = 6$  and $n = 5$ number of samples used by Analysts A and B respectively. We are given
Analyst A:
Sample Mean $\bar{X} = 7.52$
Sample Standard deviation $S_{1} = 0.024$
Analyst B
Sample Mean $\bar{Y} = 7.49$
Sample Standard deviation $S_{2} = 0.032$

To test the Hypothesis 
$H_0:\mu_1 = \mu_2$ against $H_1: \mu_1 \neq \mu_2$ 
We assume
  1. The sample of observations on $X$ and sample of observations on $Y$ are varying according to Normal distribution with means $\mu_1$ , $\mu_2$  and variances $\sigma_{1}^{2}$ ,$\sigma_{2}^{2}$ respectively.
  2. Here $\sigma_{1}^{2}$ ,$\sigma_{2}^{2}$ are unknown and $\sigma_{1} = \sigma_{2}$ 
Then
$S_{p}^{2} = \dfrac{(m-1)S_{1}^{2}+(n-1)S_{2}^{2}}{m+n-2}$

$ = \dfrac{(5)0.024^{2}+(4)0.032^{2}}{6+5-2}$

$=\dfrac{0.006976}{9}$

$=0.000775$

$S_{p} = \sqrt{0.000775} =0.027841 $

$S_{p}\sqrt{\dfrac{1}{m}+\dfrac{1}{n}} = 0.027841 \times \sqrt{\dfrac{1}{6}+\dfrac{1}{5}} $

$ =0.027841 \times \sqrt{0.366667}$

$  = 0.016858$

We use $t_{9,0.025}=2.262$,

Therefore $t_{9,0.025} \times 0.016858 =0.038134 $

Criteria For Rejection of $H_0$:
Reject $H_{0}$ if $|\bar{X}-\bar{Y}| > 0.038134$

Here $|\bar{X}-\bar{Y}| = | 7.52 - 7.49| = 0.03$

As $|\bar{X}-\bar{Y}|  \ngtr 0.038134$  Do not Reject $H_{0}$ at 5$\%$ level of significance.


No comments:

Post a Comment