I solved following question, but I'm not sure whether I've taken the right approach Any help is highly appreciated!

Question:

An article in the Journal of Agricultural Science [“The Use of Residual Maximum Likelihood to Model Grain Quality Characteristics of Wheat with Variety, Climatic and Nitrogen Fertilizer Effects” (1997, Vol. 128, pp. 135–142)] investigated means of wheat grain crude protein content (CP) and Hagberg falling number (HFN) surveyed in the UK. The analysis used a variety of nitrogen fertilizer applications (kg N/ha), temperature (ºC), and total monthly rainfall (mm). The data shown below describe temperatures for wheat grown at Harper Adams Agricultural College between 1982 and 1993. The temperatures measured in June were obtained as follows: 15.2 14.2 14.0 12.2 14.4 12.5 14.3 14.2 13.5 11.8 15.2 Assume that the standard deviation is known to be σ = 0.5.

part (a) Suppose that we wanted to be 95% confident that the error in estimating the mean temperature is less than 2 degrees Celsius. What sample size should be used?

part (b) Suppose that we wanted the total width of the two-sided confidence interval on mean temperature to be 1.5 degrees Celsius at 95% confidence. What sample size should be used?

--------------------------------------------------------------

My attempt so far:

part (a) my attempt:

So we know, E = ( z(alpha/2) * standard deviation )/(sqrt(sample size)) and E < 2(given)

From here we get, ( z(alpha/2) * standard deviation )/(sqrt(sample size)) < 2

which gives, n > ( z(alpha/2) * standard deviation / E )^2

==> n > (1.96*0.5/2)^2

==> n > (1.96*/4)^2

==> n > (0.49)^2 = 0.2401

==> n > 0.2401 and by rounding up n, we get,
n > 1(approximately) for part (a)

IS THIS CORRECT????

---------------------------------------------

part (b) - my attempt

So, the width of interval = [ sample mean + ( z(alpha/2) * standard deviation )/(sqrt(sample size)) ] - [ sample mean - ( z(alpha/2) * standard deviation )/(sqrt(sample size)) ]

which gives, width of the interval = 2*( z(alpha/2) * standard deviation )/(sqrt(sample size))

But, it is given that the width of the interval = 1.5 which gives,

n = 4*[( z(alpha/2) * standard deviation )^2]/ (width of interval^2)

Simplifying, n = 4*[1.96*0.5/1.5]^2 = 4*(1/96/3)^2 = 1.7074

Again by rounding up n, we get,

n = 2(approximately) for part (b)

IS THIS CORRECT??

Your approach to both parts (a) and (b) is mostly correct, but there are a couple of errors in your calculations.

Part (a):
You correctly start with the formula for the margin of error: E = ( z(alpha/2) * standard deviation ) / sqrt(sample size). Then, you want to find the sample size needed such that the error is less than 2 degrees Celsius, so you have:
( z(alpha/2) * standard deviation ) / sqrt(sample size) < 2

To solve for the sample size, you need to rearrange the inequality:
sqrt(sample size) > ( z(alpha/2) * standard deviation ) / 2

Now, square both sides of the inequality:
sample size > ( z(alpha/2) * standard deviation / 2 )^2

Plug in the values:
sample size > (1.96 * 0.5 / 2)^2

Now, perform the calculations:
sample size > (0.98)^2 = 0.9604

Since the sample size must be an integer, you need to round up to the nearest whole number. Therefore, the correct answer for part (a) is n > 1 (approximately) or n = 2.

Part (b):
You correctly set up the formula for the width of the interval: width of the interval = 2 * ( z(alpha/2) * standard deviation ) / sqrt(sample size).
But you made an error when solving for the sample size. You should have:
width of the interval = 1.5 = 2 * ( z(alpha/2) * standard deviation ) / sqrt(sample size)

To solve for the sample size, rearrange the equation:
sqrt(sample size) = 2 * ( z(alpha/2) * standard deviation ) / 1.5

Now, square both sides of the equation:
sample size = [2 * ( z(alpha/2) * standard deviation ) / 1.5]^2

Plug in the values:
sample size = [2 * (1.96 * 0.5) / 1.5]^2

Perform the calculations:
sample size = [2 * 0.6533]^2 = (1.3067)^2 = 1.705

Again, since the sample size must be an integer, you need to round up to the nearest whole number. Therefore, the correct answer for part (b) is n > 1 (approximately) or n = 2.

So, your answer for part (a) is correct (n = 2), but your answer for part (b) is incorrect. The correct answer for both parts is n = 2.