Rank: 1228 based on 53 downloads (last 30 days) and 8 files submitted
photo

Taesam Lee

E-mail
Company/University
INRS-ETE, Quebec

Personal Profile:
Professional Interests:
Hydrology, Climate Change, Stochastic, Statistics

 

Watch this Author's files

 

Files Posted by Taesam View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
28 Nov 2011 Screenshot Unit Hydrograph Estimate Unit Hydrograph with Nakayasu, Clark and S-hydrograph Author: Taesam Lee hydrology 6 0
15 Oct 2010 Mutual Information -2 variablle Estimate Mutual Information with kernel density function Author: Taesam Lee simulation, optimization, signal processing, statistics 13 1
18 Aug 2010 Screenshot High-Low plot or percentile (5 and 95) plot This plot is the surrogate of boxplot. Author: Taesam Lee boxplot, statistics 2 0
03 Dec 2009 Screenshot Standardized Precipitation Index gamfit,gamcdf,norminv is used. Author: Taesam Lee statistics, hydrology, climatology 10 1
  • 4.0
4.0 | 2 ratings
02 Dec 2009 Screenshot Empirical Bivariate CDF Estimating Empirical Bivariate Cumulative Density Function Author: Taesam Lee mathematics, statistics, simulation 6 2
Comments and Ratings by Taesam View all
Updated File Comments Rating
15 Oct 2010 Mutual Information -2 variablle Estimate Mutual Information with kernel density function Author: Taesam Lee

If you have an idea to increase the estimation speed, please let me know.
Thanks

03 Apr 2009 Conditional Nonparametric Kernel Density Condtional Kernel Density Estimate with normal kernel and LSCV bandwidth selection Author: Taesam Lee

function [fcond,Pcond,lambda,yi]=NPcond(y,X,Xc,yi)
%
% Code written by Taesam Lee and Dominique Fasbender 04/03/2009 : INRS-ETE Quebec
% Nonparametric Condtional Distribution
% X : data of condtion variable (numvar*length), y : current variable(length)
% Xc: condtion values
% yi: estimated set for fcond
% example
% t=mvnrnd([0,0],[.9 .4; .4 .3],100);
% X=t(:,1)';y=t(:,2)';yi=-2:0.01:2;Xc=[1];
% [fcond,Pcond,yi]=NPcond(y,X,Xc,yi);
% plot(yi,fcond);plot(yi,Pcond);

Xall=[y;X];
sz=size(Xall);d=sz(1);n=sz(2);

% Estimate the bandwidth ratio
lambda_ref = (4/(d+2))^(1/(d+4))*n^(-1/(d+4));
%min_lambda = 0.25*lambda_ref;max_lambda = 1.1*lambda_ref;
%lambda = fminbnd(@(lambda)LSCV(lambda,Xall',n,d),min_lambda,max_lambda);
lambda=lambda_ref;

% Covariance
Sall=cov(Xall');
Syy=Sall(1,1);Sxy=Sall(2:d,1);Sxx=Sall(2:d,2:d);
Sd=Syy-Sxy'*inv(Sxx)*Sxy;

% Conditional Distribution
difX=repmat(Xc,1,n)-X;% need to be changed
s1=inv(Sxx)
%for in=1:n
% dmat1(in)=(difX(:,in))'*s1*(difX(:,in));
%end
%es=exp(-1/2*lambda_ref^2*dmat1);

 es2 = 0;
 for i=size(s1,1)
     for j=size(s1,2)
         es2 = es2 + exp(-1/2*lambda_ref^2*difX(i,:).*difX(i,:)*s1(i,j));
     end
 end
 
wi=es2./sum(es2);
bi=Sxy'*inv(Sxx)*difX;

for it=1:length(yi)
    fcond(it)=sum(1/sqrt(2*pi*lambda^2*Sd)*wi.*exp(-(yi(it)-bi).^2./(2*lambda^2*Sd)));
    Pcond(it)=sum(wi.*normcdf(yi(it),bi,sqrt(lambda^2*Sd)));
end

Comments and Ratings on Taesam's Files View all
Updated File Comment by Comments Rating
14 Aug 2011 Standardized Precipitation Index gamfit,gamcdf,norminv is used. Author: Taesam Lee Yan, Yue
15 Oct 2010 Mutual Information -2 variablle Estimate Mutual Information with kernel density function Author: Taesam Lee Lee, Taesam

If you have an idea to increase the estimation speed, please let me know.
Thanks

02 Sep 2010 Standardized Precipitation Index gamfit,gamcdf,norminv is used. Author: Taesam Lee ??, iap

it is very helpful!
but I can't understand the 'nseas' well?
can you give some in-depth instruction?

thanks!

19 Aug 2010 Empirical Bivariate CDF Estimating Empirical Bivariate Cumulative Density Function Author: Taesam Lee Fripp, Matthias

I found this page while looking for a hint on how to calculate an empirical 2-D CDF (cumulative density) from an empirical bivariate PDF (density) in Matlab. I found a nested loop in your code that does this, but subsequently found a much faster way. You may want to try this instead of the i1 and i2 loops in your code: biv_CDF=cumsum(cumsum(N,1),2)/nL

03 Dec 2009 Empirical Bivariate CDF Estimating Empirical Bivariate Cumulative Density Function Author: Taesam Lee Faith

Very nice!

Top Tags Applied by Taesam
statistics, hydrology, mathematics, simulation, bivariate kamma kernel density
Files Tagged by Taesam View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
28 Nov 2011 Screenshot Unit Hydrograph Estimate Unit Hydrograph with Nakayasu, Clark and S-hydrograph Author: Taesam Lee hydrology 6 0
15 Oct 2010 Mutual Information -2 variablle Estimate Mutual Information with kernel density function Author: Taesam Lee simulation, optimization, signal processing, statistics 13 1
18 Aug 2010 Screenshot High-Low plot or percentile (5 and 95) plot This plot is the surrogate of boxplot. Author: Taesam Lee boxplot, statistics 2 0
03 Dec 2009 Screenshot Standardized Precipitation Index gamfit,gamcdf,norminv is used. Author: Taesam Lee statistics, hydrology, climatology 10 1
  • 4.0
4.0 | 2 ratings
02 Dec 2009 Screenshot Empirical Bivariate CDF Estimating Empirical Bivariate Cumulative Density Function Author: Taesam Lee mathematics, statistics, simulation 6 2

Contact us at files@mathworks.com