Which is the mean value of the sample?

  • MHB
  • Thread starter mathmari
  • Start date
  • Tags
    Mean Value
In summary, the p-value is equal to the probability, under the null hypothesis, of obtaining a result equal to or more extreme than what was actually observed. At the alternative hypothesis we have that what we've observed, so we have observes that $\mu<60$, or not?
  • #1
mathmari
Gold Member
MHB
5,049
7
Hey! :eek:

We have the following hypotheses: $$H_0: \mu\geq 60 \ \ \ , \ \ \ H_1:\mu<60$$

A test is executed with a sample of size $25$ and an estimated standard deviation $S'=8$.

From the test we get a p-value of 5%. I want to determine the value of the mean of the sample $\overline{X}$.
The p-value is equal to $P(T\leq t\mid H_0)$. So is this in this case equal to
$P(\mu\leq 60\mid H_0)$ ?

If yes, then we have the following: $$p=0.05\Rightarrow \Phi \left (\frac{\overline{X}-60}{\frac{S'}{\sqrt{n}}}\right )=0.05 \Rightarrow \Phi \left (\frac{\overline{X}-60}{\frac{8}{\sqrt{25}}}\right )=0.05\Rightarrow \frac{\overline{X}-60}{\frac{8}{\sqrt{25}}}=\Phi^{-1}(0.05)$$ Or am I thinking wrong?

Do we use here the table of t-distribution?
 
Physics news on Phys.org
  • #2
Hey mathmari,

I agree with your problem set up. Most people really fail to understand the concept of a p-value as a conditional probability and you very nicely stated how it is one.

There are different rules of thumb for when you can use a normal distribution to approximate a t-distribution, but the sample size seems to be $n > 30$ from what I read right now. Given that our sample is smaller than that, you might be better off using the inverse t function instead.

Overall though your understanding of the solution looks good to me. :)
 
  • #3
I thought about that again and now I got stuck.

We have the null hypothesis $H_0: \mu\geq 60$ and the alternative hypothesis $H_1:\mu<60$.

The p-value is defined as the probability, under the null hypothesis, of obtaining a result equal to or more extreme than what was actually observed.

At the alternative hypothesis we have that what we've observed, so we have observes that $\mu<60$, or not?

So, is the p-value defined as $$P(\mu< 60\mid H_0)=P(\mu< 60\mid \mu\geq 60)$$ ? Or am I thinking wrong? (Wondering)
 
  • #4
mathmari said:
I thought about that again and now I got stuck.

We have the null hypothesis $H_0: \mu\geq 60$ and the alternative hypothesis $H_1:\mu<60$.

The p-value is defined as the probability, under the null hypothesis, of obtaining a result equal to or more extreme than what was actually observed.

At the alternative hypothesis we have that what we've observed, so we have observes that $\mu<60$, or not?

So, is the p-value defined as $$P(\mu< 60\mid H_0)=P(\mu< 60\mid \mu\geq 60)$$ ? Or am I thinking wrong? (Wondering)

To reject $H_0$, we want to be really sure that the probability that we are wrong is less than $\alpha$.
The expected value $\mu$ could be greater than $60$, but we pick $\mu=60$ so that if we err, it will be on the safe side.Additionally we cannot observe $\mu$ directly. That is, not unless we measure the entire population.
After all, isn't $P(\mu< 60\mid \mu\geq 60)=0$? $\mu$ cannot both be greater and less than $60$ can it? (Wondering)

Instead we observe the mean $\overline x$ of a sample, which is an instance of the random variable $\overline X$ of sample means.
So we have:
$$p\text{-value} = P(\overline X < \overline x\mid \mu=60)$$
(Thinking)
 
  • #5
I like Serena said:
To reject $H_0$, we want to be really sure that the probability that we are wrong is less than $\alpha$.
The expected value $\mu$ could be greater than $60$, but we pick $\mu=60$ so that if we err, it will be on the safe side.Additionally we cannot observe $\mu$ directly. That is, not unless we measure the entire population.
After all, isn't $P(\mu< 60\mid \mu\geq 60)=0$? $\mu$ cannot both be greater and less than $60$ can it? (Wondering)

Instead we observe the mean $\overline x$ of a sample, which is an instance of the random variable $\overline X$ of sample means.
So we have:
$$p\text{-value} = P(\overline X < \overline x\mid \mu=60)$$
(Thinking)

Ah ok! So we have the following: $$p\text{-value} = P(\overline X < \overline x\mid \mu=60)=t_{25}\left (\frac{\overline{x}-\mu}{\frac{S'}{\sqrt{n}}}\right )=t_{25}\left (\frac{\overline{x}-60}{\frac{8}{\sqrt{25}}}\right )=t_{25}\left (\frac{\overline{x}-60}{\frac{8}{5}}\right )=t_{25}\left (\frac{5}{8}\left[\overline{x}-60\right ]\right )$$ or not? (Wondering)

So it must be $$t_{25}\left (\frac{5}{8}\left[\overline{x}-60\right ]\right )=0.05$$ I used the online R compiler and got this result. Is this correct, or do I have to write something else there? (Wondering)
 
Last edited by a moderator:
  • #6
mathmari said:
Ah ok! So we have the following: $$p\text{-value} = P(\overline X < \overline x\mid \mu=60)=t_{25}\left (\frac{\overline{x}-\mu}{\frac{S'}{\sqrt{n}}}\right )=t_{25}\left (\frac{\overline{x}-60}{\frac{8}{\sqrt{25}}}\right )=t_{25}\left (\frac{\overline{x}-60}{\frac{8}{5}}\right )=t_{25}\left (\frac{5}{8}\left[\overline{x}-60\right ]\right )$$ or not?

So it must be $$t_{25}\left (\frac{5}{8}\left[\overline{x}-60\right ]\right )=0.05$$

Since we have $n=25$ we have $df=n-1=25-1$ don't we? (Wondering)
I think we need:
$$t_{25-1}\left (\frac{5}{8}\left[\overline{x}-60\right ]\right )=0.05$$

mathmari said:
I used the online R compiler and got this result. Is this correct, or do I have to write something else there?

If I follow that link, I only see some default commands. (Worried)
What did you execute, and what was its result?
 
  • #7
I like Serena said:
Since we have $n=25$ we have $df=n-1=25-1$ don't we? (Wondering)
I think we need:
$$t_{25-1}\left (\frac{5}{8}\left[\overline{x}-60\right ]\right )=0.05$$

Ah ok!

I like Serena said:
If I follow that link, I only see some default commands. (Worried)
What did you execute, and what was its result?

Now I wrote [m]qt(0.05, 24)[/m]
Is this wrong? (Wondering)
 
  • #8
mathmari said:
Now I wrote [m]qt(0.05, 24)[/m]
Is this wrong? (Wondering)

That seems fine to me.
So now we can solve for $\overline x$. (Happy)
 
  • #9
I like Serena said:
That seems fine to me.
So now we can solve for $\overline x$. (Happy)

We have that \begin{align*}&t_{24}\left (\frac{5}{8}\left[\overline{x}-60\right ]\right )=0.05\Rightarrow \frac{5}{8}\left[\overline{x}-60\right ]=-1.710882 \Rightarrow \frac{5}{8}\overline{x}-37.5=-1.710882 \Rightarrow \frac{5}{8}\overline{x}=35.789118 \\ & \Rightarrow \overline{x}=57.2625888\end{align*}
mathmari said:
I want to determine the value of the mean of the sample $\overline{X}$.

Is $\overline{x}$ what we want to calculate or $\overline{X}$ ? (Wondering)
 
  • #10
It's the same thing.
The question asks for the mean of the observed sample. And that is what you found.
Usually we use lower case for observed measurements, and upper case for random variables. But it's not unusual either that this convention is ignored, or applied sloppily. (Nerd)
 
  • #11
I like Serena said:
It's the same thing.
The question asks for the mean of the observed sample. And that is what you found.
Usually we use lower case for observed measurements, and upper case for random variables. But it's not unusual either that this convention is ignored, or applied sloppily. (Nerd)

Ah ok! Thank you very much! (Sun)
 

FAQ: Which is the mean value of the sample?

What is a mean value of a sample?

A mean value of a sample is a statistical measure that represents the average value of a set of data. It is calculated by adding up all the values in the sample and dividing it by the total number of values in the sample.

How is the mean value of a sample different from the median and mode?

The mean value of a sample is different from the median and mode in that it takes into account all the values in the sample, while the median only considers the middle value and the mode only considers the most frequently occurring value.

Why is the mean value of a sample important in scientific research?

The mean value of a sample is important in scientific research because it provides a summary of the data, allowing researchers to make comparisons and draw conclusions. It also serves as a basis for more complex statistical analyses.

What factors can affect the mean value of a sample?

The mean value of a sample can be affected by extreme values or outliers, as well as the sample size. These factors can skew the results and make the mean value less representative of the entire data set.

What is the formula for calculating the mean value of a sample?

The formula for calculating the mean value of a sample is: mean = (sum of all values in the sample) / (total number of values in the sample).

Similar threads

Back
Top