Simple ##\chi^2## Tests for Weighted Averages and Linear Regression

Click For Summary
SUMMARY

This discussion focuses on the application of the chi-squared (##\chi^2##) test for weighted averages and linear regression. Participants confirm that for a set of measurements with uncertainties, the chi-squared statistic can be calculated using the formula ##\sum \frac{(O-E)^2}{E}##, where ##E## is the weighted average. Additionally, the correct formulation for testing the linear relationship ##y=ax+b## involves the chi-squared calculation as ##\chi^2 = \sum_i \frac{(x_i - \bar x)^2}{\sigma_i^2}##, emphasizing the importance of incorporating uncertainties in the analysis.

PREREQUISITES
  • Understanding of weighted averages in statistical analysis
  • Familiarity with the chi-squared test and its applications
  • Basic knowledge of linear regression concepts
  • Proficiency in handling uncertainties in measurements
NEXT STEPS
  • Study the derivation and applications of the chi-squared test in statistical modeling
  • Learn about the calculation of weighted averages in datasets with uncertainties
  • Explore linear regression techniques and their statistical validation methods
  • Investigate software tools for performing chi-squared tests, such as R or Python's SciPy library
USEFUL FOR

Statisticians, data analysts, researchers in scientific fields, and anyone involved in statistical modeling and hypothesis testing will benefit from this discussion.

schniefen
Messages
177
Reaction score
4
Homework Statement
Making a ##\chi^2## test on arbitrary measurements.
Relevant Equations
##\chi^2## testing.
1. Suppose one has the measurements [1.20, 1.15 ,2.0 ,1.17] with uncertainties [0.2,0.1,0.8,0.07]. Then, if ##E## is the weighted average, is it correct that ##\chi^2## is simply given by

##\sum \frac{(O-E)^2}{E} \ ?##​

2. If one has

| x | y |
| -- | -- |
| 0 | 0 ##\pm## 1 |
| 1 | 1 ##\pm## 1 |
| 2 | 4 ##\pm## 1|
| 3 | 9 ##\pm## 1 |

and one would like to test if ##y=ax+b##, then what is ##\chi^2##?
 
Physics news on Phys.org
1) yes What am I saying. No ! For weighted averaging

$$\chi^2 = \sum_i \;{(x_i - \bar x)^2\over \sigma_i^2}$$2) evaluate
1608511528959.png

(picture borrowed from Edinburgh University)

(perhaps an old post has some references)
 
Last edited:
  • Like
Likes   Reactions: schniefen

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
1
Views
4K
  • · Replies 7 ·
Replies
7
Views
7K
  • · Replies 0 ·
Replies
0
Views
2K