User:Timothee Flutre/Notebook/Postdoc/2011/06/28
From OpenWetWare
< User:Timothee Flutre  Notebook  Postdoc  2011  06
Project name  Main project page Next entry 
Calculate OLS estimates with summary statistics for simple linear regressionWe obtained data from n individuals. Let be the (quantitative) phenotypes (eg. expression level at a given gene), and the genotypes at a given SNP. We want to assess the linear relationship between phenotype and genotype. For this with use a simple linear regression: y_{i} = μ + βx_{i} + ε_{i} with and for In vectormatrix notation: y = Xθ + ε with and θ^{T} = (μ,β) Here is the ordinaryleastsquare (OLS) estimator of θ:
Let's now define 4 summary statistics:
