BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jacksonan123
Lapis Lazuli | Level 10

I have non-transformed data  whose histograms show two distributions.

 

Therefore, would it be okay to apply the Box Cox analysis seperately to the distributions above and below CLud > 250000 and Clud<250000 in this case?  I ask because when I do seperate analyses, the resulting tests for normality and the QQ plots are vastly improved.

 

A follow-up question would be should one analyze as two distributions if the transformed data show two distinct distributions?

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

Linear regression does not require that the variables be normal. Neither the response variable nor the explanatory variable(s) have to be normally distributed. 

 

The assumptions for linear regression is presented in the SAS/STAT documentation. The important assumption for estimating the parameters is that the  errors are identical and are independently distrivbuted.   For some inferential statistics (standard errors, confidence intervals,...), the errors are assumed to be normally distributed. Thus for these statistics to be valid a plot of the RESIDUALS should look approximately normal. This is much different than saying that the response is normal.

 

View solution in original post

5 REPLIES 5
Rick_SAS
SAS Super FREQ

What is your goal? Why do you want to transform the data to normality? For example, the data could be distributed like an exponential or gamma.

Try a smaller bin size (maybe 50,000) and see if a decreasing decaying distribution appears.

 

Are there subpopulations involved? For example, if you plot the heights of students in a classroom, you might get a distribution that is a MIXTURE of the heights of men and women. In that case, you should model the distribution as a finite mixture model. PROC FMM can  do that.  See "Modeling finite mixtures with the FMM procedure."

 

 

jacksonan123
Lapis Lazuli | Level 10

My goal is to do a linear regression with the data which if not normal would violate the assumptions for the regression.

 

I chose that bin size because it appeared to coincide with the observed histogram.  There may be subpopulations involved but at this point we are not sure but we are investigating.

 

I was not aware of Proc FMM.   Are there any normality requirements for using Proc FMM?

Rick_SAS
SAS Super FREQ

Linear regression does not require that the variables be normal. Neither the response variable nor the explanatory variable(s) have to be normally distributed. 

 

The assumptions for linear regression is presented in the SAS/STAT documentation. The important assumption for estimating the parameters is that the  errors are identical and are independently distrivbuted.   For some inferential statistics (standard errors, confidence intervals,...), the errors are assumed to be normally distributed. Thus for these statistics to be valid a plot of the RESIDUALS should look approximately normal. This is much different than saying that the response is normal.

 

Ksharp
Super User

Or you could try non-parameter regression PROC LOESS .

jacksonan123
Lapis Lazuli | Level 10

Not sure if that would help but I may try it later.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1704 views
  • 0 likes
  • 3 in conversation