fitting weibull distribution to âwind speedâ data
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
I am trying to fit a weibull distribution to my wind speed data with the following code:
fitdistr(av_ws, densfun = "weibull") #av_ws is the wind speed data
The error appears, that the data also contains some zero's...
does the function fitdistr()
not working with zero's in the data? As the lowest values from a weibull distribution can be 0 I don't understand why the function is not working...
r weibull
New contributor
add a comment |Â
up vote
1
down vote
favorite
I am trying to fit a weibull distribution to my wind speed data with the following code:
fitdistr(av_ws, densfun = "weibull") #av_ws is the wind speed data
The error appears, that the data also contains some zero's...
does the function fitdistr()
not working with zero's in the data? As the lowest values from a weibull distribution can be 0 I don't understand why the function is not working...
r weibull
New contributor
Welcome to CV! Please include a minimal working example, or a summary of your data and the exact error message. Also note that questions strictly about programming are off-topic here, so depending on what exactly you want to know, your question might be better suited on stackoverflow.
â Frans Rodenburg
2 hours ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am trying to fit a weibull distribution to my wind speed data with the following code:
fitdistr(av_ws, densfun = "weibull") #av_ws is the wind speed data
The error appears, that the data also contains some zero's...
does the function fitdistr()
not working with zero's in the data? As the lowest values from a weibull distribution can be 0 I don't understand why the function is not working...
r weibull
New contributor
I am trying to fit a weibull distribution to my wind speed data with the following code:
fitdistr(av_ws, densfun = "weibull") #av_ws is the wind speed data
The error appears, that the data also contains some zero's...
does the function fitdistr()
not working with zero's in the data? As the lowest values from a weibull distribution can be 0 I don't understand why the function is not working...
r weibull
r weibull
New contributor
New contributor
edited 3 hours ago
Sven Hohenstein
4,74762333
4,74762333
New contributor
asked 3 hours ago
Cedric Kaeslin
61
61
New contributor
New contributor
Welcome to CV! Please include a minimal working example, or a summary of your data and the exact error message. Also note that questions strictly about programming are off-topic here, so depending on what exactly you want to know, your question might be better suited on stackoverflow.
â Frans Rodenburg
2 hours ago
add a comment |Â
Welcome to CV! Please include a minimal working example, or a summary of your data and the exact error message. Also note that questions strictly about programming are off-topic here, so depending on what exactly you want to know, your question might be better suited on stackoverflow.
â Frans Rodenburg
2 hours ago
Welcome to CV! Please include a minimal working example, or a summary of your data and the exact error message. Also note that questions strictly about programming are off-topic here, so depending on what exactly you want to know, your question might be better suited on stackoverflow.
â Frans Rodenburg
2 hours ago
Welcome to CV! Please include a minimal working example, or a summary of your data and the exact error message. Also note that questions strictly about programming are off-topic here, so depending on what exactly you want to know, your question might be better suited on stackoverflow.
â Frans Rodenburg
2 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
If you look at the likelihood you'll see that a value of 0 results in a log- likelihood term involving $log 0$, which is obviously problematic. In fact, i don't think that exact values of zero should occur under a Weibull distribution.
One way out would be, if your wind speed measurement device cannot measure wind speeds below some very low minimum. The your 0s are really left censored observations (i.e. you know the speed is some number below this minimum). R, SAS, python et al. all have function for censored data (survival analysis).
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
If you look at the likelihood you'll see that a value of 0 results in a log- likelihood term involving $log 0$, which is obviously problematic. In fact, i don't think that exact values of zero should occur under a Weibull distribution.
One way out would be, if your wind speed measurement device cannot measure wind speeds below some very low minimum. The your 0s are really left censored observations (i.e. you know the speed is some number below this minimum). R, SAS, python et al. all have function for censored data (survival analysis).
add a comment |Â
up vote
2
down vote
If you look at the likelihood you'll see that a value of 0 results in a log- likelihood term involving $log 0$, which is obviously problematic. In fact, i don't think that exact values of zero should occur under a Weibull distribution.
One way out would be, if your wind speed measurement device cannot measure wind speeds below some very low minimum. The your 0s are really left censored observations (i.e. you know the speed is some number below this minimum). R, SAS, python et al. all have function for censored data (survival analysis).
add a comment |Â
up vote
2
down vote
up vote
2
down vote
If you look at the likelihood you'll see that a value of 0 results in a log- likelihood term involving $log 0$, which is obviously problematic. In fact, i don't think that exact values of zero should occur under a Weibull distribution.
One way out would be, if your wind speed measurement device cannot measure wind speeds below some very low minimum. The your 0s are really left censored observations (i.e. you know the speed is some number below this minimum). R, SAS, python et al. all have function for censored data (survival analysis).
If you look at the likelihood you'll see that a value of 0 results in a log- likelihood term involving $log 0$, which is obviously problematic. In fact, i don't think that exact values of zero should occur under a Weibull distribution.
One way out would be, if your wind speed measurement device cannot measure wind speeds below some very low minimum. The your 0s are really left censored observations (i.e. you know the speed is some number below this minimum). R, SAS, python et al. all have function for censored data (survival analysis).
answered 1 hour ago
Björn
8,0451833
8,0451833
add a comment |Â
add a comment |Â
Cedric Kaeslin is a new contributor. Be nice, and check out our Code of Conduct.
Cedric Kaeslin is a new contributor. Be nice, and check out our Code of Conduct.
Cedric Kaeslin is a new contributor. Be nice, and check out our Code of Conduct.
Cedric Kaeslin is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f369321%2ffitting-weibull-distribution-to-wind-speed-data%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Welcome to CV! Please include a minimal working example, or a summary of your data and the exact error message. Also note that questions strictly about programming are off-topic here, so depending on what exactly you want to know, your question might be better suited on stackoverflow.
â Frans Rodenburg
2 hours ago