Accounting for Number of Observations in a Regression when using Median data

dross

New Member
Joined
Dec 19, 2010
Messages
27
I'm evaluating a data set of Median product prices against a 100-point product rating scale.

The data I have to work with are below. The Correlation of Rating to Median Price is 0.922. Since all of the products rated so far have fallen into the rating range of 87 to 95 I want to predict the median price (dependent variable) for a broader range of ratings (independent variable). I have done so with a simple linear regression which yields an R-squared of 0.85 (ignoring the number of observations).

Question: Since I know the number of observations from which the Median data has been derived, should I take account of the number of observations in my analysis, and if so how?

DATA:

ObservationsRatingMedian Price
49592.5
69482.5
109349
299246
319145
279040
228945
68823
18713

<tbody>
</tbody>
<style>table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl63 { text-align: center; }.xl64 { vertical-align: middle; white-space: normal; }.xl65 { text-align: center; vertical-align: middle; white-space: normal; }.xl66 { text-align: center; vertical-align: middle; }</style>

<tbody>
</tbody>


<tbody>
</tbody>
<style>table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl63 { text-align: center; }.xl64 { vertical-align: middle; white-space: normal; }.xl65 { text-align: center; vertical-align: middle; white-space: normal; }.xl66 { text-align: center; vertical-align: middle; }</style>
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I would think you'd need the underlying observations rather than the medians of those observations.
 
Upvote 0
I do have the observations within the rating range of 87-95. However, I've been asked to estimate median prices within the broader rating range of 85-100 from the available data. So, is what I have done valid and is there something more I could do with the known number of observations, or something else?
 
Upvote 0
A​
B​
C​
D​
E​
1​
Observations
Rating
Median Price
2​
wi
xi
yi
Correl
3​
4​
95​
92.5​
0.775544​
4​
6​
94​
82.5​
5​
10​
93​
49.0​
6​
29​
92​
46.0​
7​
31​
91​
45.0​
8​
27​
90​
40.0​
9​
22​
89​
45.0​
10​
6​
88​
23.0​
11​
1​
87​
13.0​

The formula in E3 is

=SUMPRODUCT(wi * (xi - SUMPRODUCT(wi * xi) / SUM(wi)) * (yi - SUMPRODUCT(wi * yi) / SUM(wi))) /
SQRT((SUMPRODUCT(wi * (xi - SUMPRODUCT(wi * xi) / SUM(wi)) ^ 2) * SUMPRODUCT(wi * (yi - SUMPRODUCT(wi * yi) / SUM(wi)) ^ 2)))
 
Upvote 0
Thanks for your replies. I'm quit slow on stat work. How does this help me estimate yi values that correspond to xi values of 85, 86, and 96-100?
 
Upvote 0
You'd need to do a weighted regression to get the slope and offset.

I'm no statistician, but doing extrapolation (versus interpolation) seems very sketchy.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,217
Members
449,074
Latest member
cancansova

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top