The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Question about Skewed normal distribution

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
neurochick Posted - 05/27/2014 : 9:55:34 PM
I've got a problem with skewed normal distribution. I was trying to fit a small data set (24 points) with skewed normal distribution. I tried the lognormal function and it replied me with error -1000 and -206 and the R-square of the fitting is negative. I also tried to write up a new function for a "real" skewed normal distribution, but dont know how to put an integral function in the formula, could you help me with it?
4   L A T E S T    R E P L I E S    (Newest First)
SeanMao Posted - 06/12/2014 : 06:04:28 AM
Hi,

Sorry for replying so late! It is hard to judge what actually happened on your side, can you post your 24 points dataset in the reply post so that I can try to fit it with the "Skewed normal distribution" defined?

Thanks!

Regards!

Sean

OriginLab Tech. Service
neurochick Posted - 05/30/2014 : 8:32:00 PM
Thanks Sean,
Actually I defined the function in the same way as you did, the way I wrote it is just for writing down the original function, I can't type it in on bbs... intergrand in my reply means the expression of the integral . And the result is still the error 207. But thank you for your help anyway.
SeanMao Posted - 05/27/2014 : 11:34:21 PM
Hi,

I tried to define the skew normal distribution function as you have suggested. I found the way you define the function is not appropriate, so I tried myself and rewrote the function y as following:

y=1/(w*PI)*exp(-(x-u)^2/2/w^2)*integral(myintegrand, -inf ,a*(x-u)/w ,a ,u ,w)

where you should have the following script as your definition for integrand “myintegrand”:

return exp(-t^2/2);

There is no “*dt” after the expression but should have “return” in front.

Can you try these steps and see whether the problem gets solved? If it persists, please do not hesitate to ask questions.

Thanks!

Sean

OriginLab Tech. Service

neurochick Posted - 05/27/2014 : 10:35:42 PM
So I tried the instructions here to generate a new function
http://www.originlab.com/doc/Tutorials/Fitting-Integral-LabTalk
the function of the skewed distribution is like this
y = 1/(w*PI)*exp(-(x-u)^2/2/w^2)*integral(-inf, a*(x-u)/w, intergrand),
the intergrand function is exp(-t^2/2)*dt
The function was generated but I cant get any results from this function fitting. Can anyone help me with this? Thank you.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000