Cholesterol Drug Treatments I

  1. α = 0.05.
  2. HA: μbf - μlp ≠ 0 and H0: μbf - μlp = 0, where μ is the mean reduction in LDL, bf is befizal, and lp is lipanthyl.
  • The hypotheses can also be written as – HA: μbf ≠ μlp and H0: μbf = μlp – because if two values are thought to be equal then the difference between those values would be equal to 0 and if they are thought to differ than the difference between the two would be different from zero.
  • I like the subscripts to be meaningful; hence, I used bf and lp here rather than 1 and 2, for example.
  • It is best to order the parameters alphabetically; thus, I had the bf group before the lp group. This is not a huge deal mathematically but it will be important when using R to perform a two-sample t-test.
  • Remember to define the parameter and, here, also the subscripts on the parameters.
  1. A 2-sample t-test will be used because
    1. two groups/populations are considered (befizal and lipanthyl drugs),
    2. a quantitative variable (reduction in LDL) was recorded, and
    3. individuals in the groups are independent (there is no known connection between individuals in the befizal and individuals in the lipanthyl groups; e.g., it is not the same or related individuals in the two groups).
  • These are the three characteristics that separate a 2-sample t-test from other tests we will see this semester.
  • Please include some sort of description that shows that the characteristics are met and that you are not just listing the characteristics – in other words, include the parts in parentheses.
  • The independence characteristic is the most difficult to write in my opinion. Basically what you have to describe is that there is no direct connection between individuals in one group and individuals in the other group. A lack of independence in this example could be that the same people were in both drug groups (think of a before-after study) or that siblings were split into the two groups (so one sibling was always “connected” genetically to their sibling in the other group).
  • If the two groups have different sample sizes (as is the case here) then you automatically know that there is independence because for individuals to be connected there would have to be the same number per group.
  1. This study is largely experimental because the experimenter decided which individuals received which drug treatment. The subjects were randomly allocated to treatments but were not randomly selected from a larger population.
  • You will start seeing more “experiments” in the 2-sample tests.
  • With experiments (as compared to observational studies) you need to address two levels of randomization. First, were the individuals randomly selected from a larger population. If they were then you CAN make inferences to the larger population; however, if they were not then you cannot. Second, were the individuals randomly allocated to treatments. If they were then you can make cause-and-effect conclusions; however, if not they you cannot. So, in this example the research may draw cause-and-effect conclusions (because of random allocation) but those conclusions may not generalize to the larger population of men (because there was no random selection).
  1. The assumptions are met because (i) the samples are independent (as described above), (ii) nbf+nlp = 13+12 = 25 ≥ 15 and the two sample distributions (histograms shown on the handout) are not obviously strongly skewed, and (iii) the variances appear to be equal (Levene’s p-value = 0.8315 > α).
  • If the combined sample size is less than 40 then you need to assess the skewness of the histograms (as done here). As with the 1-sample t-test, this assumption no longer refers to the population distributions.
  • The “equal variances” assumption is assessed with a Levene’s Test. The hypotheses for the Levene’s test are H0: σ2bf = σ2lp (i.e., variances are equal) and HA: σ2bf ≠ σ2lp (i.e., variances are unequal). Thus, if the p-value from the Levene’s test is greater than α the variances are considered equal, the assumption is met, and you can continue with the 2-sample t-test.
  • In “hand-calculation” questions like this one, you will always be given the Levene’s test p-value (as was done here). You will compute the p-value using R when you have the raw data available (this will be discussed later).
  1. bf-x̄lp = 0.278-0.356 = -0.078.
  • The values for each mean are from the summary table given in the background.
  • The “statistic” in a 2-sample t-test will always be the difference in the sample means, calculated in the same way that the difference in population means is shown in the hypotheses (i.e., alphabetically if you used that).
  • This statistic will be negative about half the time. That just means that the mean of the first group is less than the mean of the second group.


The next step requires two intermediate calculations with the following values given in the background.

  • nbf = 13; nlp = 12
  • sbf = 0.134; slp = 0.128.

The intermediate calculations are computed below.

  • The pooled sample variance is 0.0172 as computed below.
  • \[s_{p}^{2}=\frac{(n_{bf}-1)s_{bf}^{2}+(n_{lp}-1)s_{lp}^{2}}{n_{bf}+n_{lp}-2} \]

    \[s_{p}^{2}=\frac{(13-1)0.134^{2}+(12-1)0.128^{2}}{13+12-2} \]

  • The standard error of the statistic is 0.053 as computed below.
  • \[ SE_{\bar{x}_{bf}-\bar{x}_{lp}}=\sqrt{s_{p}^{2}\left(\frac{1}{n_{bf}}+\frac{1}{n_{lp}} \right)} \]

    \[ SE_{\bar{x}_{bf}-\bar{x}_{lp}}=\sqrt{0.0172\left(\frac{1}{13}+\frac{1}{12} \right)} \]
  1. With the intermediate calculations from above t = \(\frac{(\bar{x}_{bf} - \bar{x}_{lp})-0}{SE_{\bar{x}_{bf}-\bar{x}_{lp}}}\) = \(\frac{-0.078 - 0}{0.053}\) = -1.485 with nbf+nlp-2 = 13+12-2 = 23 df.
  2. p-value=0.1511 as computed with 2*distrib(-1.485,distrib="t",df=23).
  3. Do not reject H0 because the p-value > α.
  4. It appears that the mean reduction in LDL does NOT differ between subjects given Befizal and those given Lipanthyl. Thus, neither drug should be preferred with respect to reducing the LDL in patients.
  • For the sake of learning for other examples, if we had rejected the null hypothesis (because the p-value<α) then the initial conclusion would be that the mean LDL did differ between the two drugs. However, we would be able to say more than that because the lipanthyl drug had a greater mean reduction than the befizal in the sample. Thus, we would conclude that lipanthyl works better because it reduced the mean LDL more. Again, this was not the case with this sample, I just put this here to think about might happen in a different example.


I performed the following steps or calculations in preparation for the next step.

  • 95% confidence (because α=0.05).
  • Confidence interval because HA was “not equals.”
  • t*=±2.069 as computed with distrib(0.025,distrib="t",df=23,type="q").
  • -0.078±2.069*0.053 (where -0.078 is from Step 6 and 0.053 is the SE computed for Step 7).
  1. I am 95% confident that the DIFFERENCE in the mean reduction in LDL from those given befizal to those given lipanthyl is between -0.187 and 0.031. Thus, the mean reduction in LDL for befizal patients could be between 0.031 greater and 0.187 lower than the mean reduction in LDL for lipanthyl patients.
  • This step requires the most care in the 2-sample t-test because the confidence region is for the DIFFERENCE in means. This confidence region is NOT about either mean. So please take note of the wording above.
  • Note that if confidence region contains zero then that means you will not have rejected H0 as this suggests that it is possible that the DIFFERENCE in means is zero, which suggests no difference. This will lead to awkward statements like that above where you say that one group be more or it could be less than the other group.
  • Make sure you are careful about how the DIFFERENCE was calculated. In this case it was befizal-lipanthyl (alphabetically). Thus, negative values mean that befizal was smaller/lower (or, equivalently, lipanthyl was larger/greater) and positive values mean that befizal was larger/greater (or equivalently, lipanthyl was smaller/lower).