??,
Monday, March 27th, 2006 -- By Jade????. ???lg????.??,????, paper?????. ??????????????,???????????. ???????, lg???????, ????????. ??, ??????.
??, ?????????, ??????:?????lg???, ?????, ???. ??,??????,???????. ?????????????. ????,????.
????. ???lg????.??,????, paper?????. ??????????????,???????????. ???????, lg???????, ????????. ??, ??????.
??, ?????????, ??????:?????lg???, ?????, ???. ??,??????,???????. ?????????????. ????,????.
??,??(????????)?????????. ?????3??. ???????????????????.
????? ????????. ??????????. ?????????,???: ????,???????.????????: ?,???????,3oz???. ??????????. ???,??????peaceful; ????,?????,???????????, ?????????????.???????????, ??????????, ??, ???, ?????, ????blog. ???????, ???. ??,?????.
??, ??????????DVD,???????.?????????.???,??????:??,????????????. ???: ??,???????????.
???????.????????????.??,???????. ??,??????????????? ??????.??????????,?????????.????????????????. ????,????, ?????. ??????????, ???:"???????, ?????????." ??,????,??????????,?????,???lg???????????. ???:"???, ????????????,??????." ??,??????, ???. ??????"?". ??,?????,?????????????.

After spending 6 years at MIT. I decided to commit a major change in my life, I took the offer from HKUST (Hong Kong University of Science and Technology). That means, we are moving back to Asia, and it will be in the near future.
The job market was funny, I may write a longer piece later since I can’t really describe how much I experienced here. The IT market has not been any better than the previous years after the Internet bubble burst, as a consequence, there are only less than 10 openings in the so-called research institutions, which are generally considered to be better than "teaching institutions" since professors in research institutions have less burden of teaching and can do more creative things in research. The number of job candidates goes beyond 200 people. That means a lot of potentially creative people who might be great researchers will end up in teaching institutions and be burdened with 6 courses to teach a week. Some may just go to the industry and never will be able to use some of what they have learned to be a researcher.
I guess some people need to thank me since I gave up a few nice offers here in the US. I like these schools very much (again, this warrants a longer blog entry, I made some really good friends from these campus visits), but I can only take one offer and my optimization problem is a constrained one with factors about my wife, children, our parents, our friends, our career plans, etc… HKUST turned out to be the best option for me.
I’m eager to write about the great things about HKUST now, I may write a longer piece later with more details
research support
strong faculty profile
amazing history
gorgeous campus
Since I’m working on my thesis now and have to defend my thesis on May 1st, I really don’t have time to notify all my friends about this decision. Hope this entry can serve as an announcement to let you know about my future whereabouts. If you are in Asia, we are much more closer, and if you are in the US, don’t worry, I’ll be back at least twice a year, plenty of chances to hang out together!
??????????.??????????.??????????. ?????????.????????????. 8??.??????,???????????.
??????????????????????????????????????????(????,?????). ?????,??ing.???????????.????????,????. ??????????????????,????????. ????, ???????????easy come,easy go. ????????????,??????.
???,????? ????. ???????. ??Chang LV??????????????,????????.???.?????Lixia????, ????????.Lixia?:??????.???,?????,???????????????? ????, ?????????????.??…….?????.?????,??,?????????.???????????,???????????. ????.???????????,?????????,???.??????.
The Gini coefficient is a measure of inequality. It is usually used to measure income inequality, but can be used to measure any form of uneven distribution. It is closely related to Lorenz Curve
(figure courtesy to WikiPedia)
I usually use perl to manipulate my datasets, and I could not find a procedure to calculate gini coefficient in perl. So I wrote one.
The definition of Gini coefficient is:
but,The Gini coefficient is often calculated with the more practical Brown Formula shown below:

G: Gini coefficient
Xk: cumulated proportion of the population variable, for k = 0,…,n, with X0 = 0, Xn = 1
Yk: cumulated proportion of the income variable, for k = 0,…,n, with Y0 = 0, Yn = 1
In the following program, I use yet another formula, which is even concise and straightforward:
(see Dixon et al. 1988, Damgaard and Weiner 2000)
Okey, the program itself:
#!/usr/bin/perl
my @origx=(20, 23, 18, 25, 28, 18);
my $gini=calc_gini(@origx);
print "$gini\n";
exit;sub calc_gini{
my @origx=@_;
my @x = sort { $a <=> $b } @origx;my $ginisum=0;
my $sum=0;
my $count=@x;for (my $i=1;$i<=$count;$i++) {
$ginisum=$ginisum+(2*$i-$count-1)*$x[$i-1];
$sum=$sum+$x[$i-1];
}
my $gini=$ginisum/($count-1)/$sum;
return $gini;
}
References:
Damgaard, C. and Weiner, J. "Describing Inequality in Plant Size or Fecundity." Ecology 81, 1139-1142, 2000.
Dixon, P. M.; Weiner, J.; Mitchell-Olds, T.; and Woodley, R. "Erratum to ‘Bootstrapping the Gini Coefficient of Inequality.’ " Ecology 69, 1307, 1988.
?????????????????????????
??????????????????????????????????????Costco?????????????????????????
?????????????????
????Taka????????????Taka ??????????Misuko???Joe ??Keiko?????????
Joe ????3??????????????Joe?????????????????????????????????????????????????? ????????????????Joe???????????????????????Joe????????????Keiko?????????? ????????????????????Joe?????????????????????????????Stasha?????????????? ????????Joe?????????????????????????Misuko????????????????????????????? ?????????????????Baby net ? baby sitting exchange????????socialized?????????Joe???????Joe?????????Joe????????? Taka?????????????????????????Taka?????????????????????Keiko??,?????????? ? Joe??????????????? Joe?????Joe??????????Joe?????????
???? Jennifer???????Jennifer ?Scott????????Oliva?????Olivia?????????????Jennifer????????????????????? ???2????????????????,?????????????????????????????
?????????????????????2?????????
‘??’, ????????,???winnie the pooh?.
????????????????:"?????????????????" .
???????, ??jade???, ???????, ?????? ????, so far so good.

Copyright Xiaoquan (Michael) Zhang, 2004-2010. All rights reserved.
All trademarks property of their owners.