Saturday, December 5, 2009

The force of adaptation

Today, I felt like ice cream. I went to safeway and bought some ice cream. The Asian girl, Alice, servicing two check-out stations decided to not come and bag for me when I have completed my check-out. The cashier felt embarrassed, and said... Alice, come and help me bag..., and she ignored him.

Sometimes, I feel the same way. For some reason, something inside makes me want to be strict and mean to Chinese people. Especially the girls, when I see that spark in their eyes from seeing a cute white guy passing by, I feel some how it is up to me to let her follow that spark. In fact, this thing in me make me feel like I ought to encourage her to follow that dream, instead of completing the sentence she is in the middle of speaking to me.

The force of adaptation is at work. The Bagger at the Safeway, being Asian, decided to stay away from me because she felt that bagging for me would show me preferential treatment. Just as I felt I would be unfair to the girl if I forced her to complete her conversation with me before getting distracted by a white guy. Becuase that's what she wants to do, and because of that, she did not bag for me, as she should have under any normally acceptable circumstances.

The prevailing thought here in California is that genetic mixture is a superior form of life both in principle and in practice.

The principle is idealistic: People of all races, living without genetic or cultural borders. Intermarrying, happily, working, without racism.

The practice is one of reality: Many children of parents from mixed race are smart, rich, or very very exotically beautiful.

Maybe that is the only way out... Maybe that is the only way for me to get my grocery bagged... Maybe then, I won't have to deal with these huge tsunamis of annoyance when all she wants to do is to stare at that white guy's dick as he walks by...

Thursday, December 3, 2009

About smart bugs and debugging abilities

Smart Bugs
Well, we're back at this problem again. During the day, my browser and eclipse/terminal programs consistently crash just as I am about to complete something complex and time consuming.

Then, today, when this happened to me, I suddenly realized. Maybe the super-bug that was hypothesized several years ago is actually real. For all I can tell, there is a bug in either the operating system or browser that has evolved to a point where I am made to believe that it is smart enough to detect when I'm just about to complete a complicated task. I mean, it takes quite a bit of comprehension of java code, sql code, english language, email exchanges, and IM conversations to understand why at a crash at those exact moments would cause me the most annoyance.

Sometimes, I wonder if all these bug squishing tools, automatic bug detecting programs, firewalls, and human "safe-browsing" habits has given the bugs a special challenge. And in fact the efforts we put into squishing the bugs has incentivized and facilitated an accelerated the evolution of super smart bugs that has passed the Turing test?

Debugging Ability
I've found that I have relatively poor debugging skills compared to my co-workers. I wonder if it is because I never write buggy code. Because I'd stare at the stupidest bug in the world, and not recognize it has a bug. But of course, if I wrote the program, I would never have done something like that!

But this points to some of my weaknesses. For one thing, I have obviously not experienced working with bad programmers enough, or have been responsible for other people's bad programming enough. Certainly, the senior leadership in the engineering organization, who's been in engineering leadership roles for extended period of time, clearly is able to detect the bugs much quicker.

Sigh... so much for trying for management/lead positions...

Thursday, November 5, 2009

some day...

As a data miner and machine learning practitioner who do not work at Google, I often wonder when, if ever, I will be able to make this claim that Googlers often make:


We cannot sample when applying data mining and machine learning algorithms because we've discovered that using all the data makes a difference.


Some day...

Sunday, November 1, 2009

National Treasure

I just saw National Treasure again. Wow!!!! I really think there is a deeper allegory than 5 floors below some church...

The spirit embedded in the Declaration of Independence is our map to treasures beyond our wildest imagination!! That all men are created equal. This, when seen through glasses of blue and red glasses, give rise to a treacherous path down to the depth of the earth... But in the end, we will find a huge room filled with gold and culture collected from all of the world.

And the guy who wants to share the world's riches to the whole world gets the girl.


Hey!!! I want to share the riches of America with the world!

Now can I get the girl?

Tuesday, October 27, 2009

doh! and congrads!

Ivanka Trump is married. doh!

but congrads!!!

Though there wasn't much news on this before hand... one wonders about pregnancy...


But she is a pretty girl... progressively more beautiful... when she initially started her appearance on trump's show, she looked like spoiled bratty girl, who don't know what to do... But later, she grew more sure of her self, more mature than Donald junior...

but alas, she is not available any more.


sigh.

Monday, October 26, 2009

The right to not get high

California is reducing enforcement of marijuana use laws.

Some how, this is going to lead to more and more smoking and more and more people will smoke and some day, we won't be able to find a place where there isn't second hand marijuana smoking. (It's hard now. My neighbors always smoke out side of my window, and I can't have a peaceful night w/o getting second hand high :( )


I think if we move toward legalizing marijuana smoking, there should be designated smoking area where there are filters to remove smoke before recycling the air.

Also, the smokers should have a forced cleansing session, breath heavily into something until lungs are mostly clean, before exiting this area.

btw, three cheers for the governor for passing AB920! hooray! hooray!! hoorray!!!

Sunday, October 4, 2009

What of culture?

Recently I had the fortune to witness an exchange at a Chinese-American business event. One caucacian and three Chinese-Americans sat on the panel... Discussion circles around interaction between Chinese companies and American companies. (Most of the audience are Chinese American Business people)

Near the end, one audience stood up and asked a question:

"I've seen that when French companies invest in middle eastern countries, they will often ask their new employees to learn to speak French by providing mandatory French classes for all employees. I wonder what the panelist feel about the spread of Chinese culture and how that may influence the productivity of newly acquired companies?"

"What is there to teach? Just drink!!"

one of the Chinese American speaker bursted out on stage, and the room laughed politely.


The Engineer inside me reacted immediately. I said out loud: "Well, certainly not the engineering team. I wouldn't ask the engineering team to drink as part of the culture."

Not one other person reacted to this blatantly disrespectful remark... In a room full of people who claim to be Chinese or Chinese American, all laughed, politely, and some laughed in genuinely good humor!


The Mckinsey speaker finally reacted. She said, "when I spoke of corporate culture being different between American companies and Chinese companies, what I meant was corporate culture! I make sure every time that I speak of such things in public I speak of corporate culture. I'm not worried about national culture in the least. That's the last thing I'd worry about."

Other panelist chimed in, but saying little else, repeating the word national culture. The crowded hesitated. But it disbursed and the discussion came to a quick end... But there is something lingering...



After some thoughts, I suddenly realize. Waita minute! that was such a big insult!! And the only panelist who did react, she did not react by saying anything positive about the Chinese culture, nor did she say anything against the "just drink" comment. All she did was to cover her ass about her company. Witty and professional, sure, but certainly, disappointing that a room full of Chinese and Chinese Americans, not one person had the tiniest hint of intelligence nor wit to realize the insult being dished by a fellow Chinese or Chinese American, in public, in the face of every Chinese person in this Chinese organized Chinese business conference.

NOT a single response!

Even polite laughters.


WHAT!

THE!!

FUCK!!????!!



and besides. I think the term more fitting is ethnic culture versus corporate culture. National culture seem to point to national politics (and in the case of PRC, communism.) The person asking question was asking about the Chinese ethnic culture.


WHAT THE FUCK??

Just drink???

That's the only thing that any of the panelist can speak of when they think if Chinese culture?

And the whole roomful of self proclaimed Chinese- and self proclaimed business- people, not a single one has a slightest bit of pride? not a shred of comprehension? not the least ability in language or tactics to respond to such a blatant insult??

The meeting just ended there, with out really ending... just that people left... uncaring. The purportrator of such disgraceful remark, unscathed. The caucasian watching... smirking in his little beard... smirking!!!! laughing!!!!!

"You Chinese people are so fucking stupid!!!
You make light of such a serious question at such an important time."


"YOU ARE SO FUCKING STUPID!!!!"

FUCK!!!!!!!!!!!!!!!!!!!!!
FUCK!!!!!!!!!!!!!!!!!!!!!
FUCK!!!!!!!!!!!!!!!!!!!!!

Wednesday, September 30, 2009

The effect of California's proposed VAT/BNRT 3

Instead of talking about the stability of the BNRT in the long run, let's talk about the effect of sudden introduction of BNRT  

Same examples as previous post. Recall that farmer buys fruit seed at price S. Plants the seed (adds value to it) and sells the fruit at price G. A canned fruit company buys the fruits, cans them, and sells at price C to distribution, distributor sells to Retailer for price D, and retailer finally sells the product to consumer at price P. We have established last time that the BNRT will be set to be higher than the current corporate tax to cover the elimination of the sales tax. For simplicity sake, let's call bnrt = CT + o; The farmer's previous profit was (G-S) * (1-CT) but is now (G-S) * (1-bnrt) the income is now less, so to make up for the difference, he charges for a price G' such that (G' - S) * (1-bnrt) = (G-S)*(1-CT) solve for G'

G' = (G-S) * (1-CT) / (1 - bnrt) + S  

G' = (G - S) * (1-CT)/(1-CT-o) + S G'
   = (G * (1-CT) - S*(1-CT) + S(1-CT - o))/(1 - CT - o) G'
   = (G * (1-CT) - S*(1-CT-o-1+CT))/(1-CT-o) G'
   = (G * (1-CT) - S*(-o))/(1-CT-o) G'

   = (G * (1-CT) + S*o)/(1-CT-o)

shoot! so, now the can company received not only an increase in cost but also an increase in taxes.

Previous earning is: (C-G) * ( 1-CT)
now the earnings is:

(C'-G') * (1-bnrt) = (C'-(G * (1-CT) + S*o)/(1-CT-o)) *(1-CT -o) = (C'*(1-CT-o) - G*(1-CT) - S*o)

solve for C' 


(C'*(1-CT-o) - G*(1-CT) - S*o) = (C-G) * ( 1-CT) C'*(1-CT-o) - G*(1-CT) - S*o
    =(C-G) * ( 1-CT) C'=((C-G) * ( 1-CT) + G*(1-CT) + S*o) / (1-CT-o) C'
    =(C-G -C*CT + G*CT + G-G*CT + S*o) / (1-CT-o) C'
    =(C - C*CT + S*o)/(1-CT-o) C'
    =(C*(1-CT) + S*o)/(1-CT-o)

...ad nauseum...

to arrive at P' = (P*(1-CT) - S*o)/(1-CT-o) as the price that the final retailer's price to arrive at the same profit as before.

P' = P * (1-CT)/(1-CT-o) - S * o / (1-CT-o)

ugh! let's plug in some numbers.

Example 1
original seed S=1 final original price P=10 Corporate Tax CT = 10% tax increase o= 1%

P' = 10 * (1-10%) / (1-10%-1%) - 1 *1% /(1-10%-1%) P' = 10.1012

price increase of 1.01% results from an bnrt over ct by 1%


Example 2
original seed S=1
final original price P=50
Corporate Tax CT = 20%
tax increase o= 5% P' = 50 * (1-20%) / (1-20%-5%) - 1 *5% /(1-20%-5%) P' = 53.27

This corresponds to a 6.53% sales tax.


Example 3
original seed S=1
final original price P=100
Corporate Tax CT = 20%
tax increase o= 5%
P' = 106.6

equivalent of 6.6% tax. The doubling of profit from example 2 to example 3 with all else being equal illustrates how the implicit sales tax increase when the Value Added increases with out changing any explicit tax rates.


Example 4
original seed S=1
final original price P=50
Corporate Tax CT = 20%
tax increase o= 6%
P' = 53.97

The equivalent sales tax rate is 7.945%. An increase of 1 percent in bnrt tax(as compared to example 2 results an equivalent of 1.416% increase in sales tax in this situation.



Example 5
original seed S=1
final original price P=50
Corporate Tax CT = 20%
tax increase o= 7%
P' = 54.70

Equivalent sales tax is 9.40% which is an increase of 2.87% in equivalent sales tax due to an increase of 2% BNRT as compared to example 2.

So an increasing the BNRT automatically increases in price equivalent to sales tax by a %-age larger than the raw BNRT increase.




The effect of California's proposed VAT/BNRT 2

We're still not necessarily convinced that things will remain great. Let's use a more concrete example: Farmer buys fruit seed at price S. Plants the seed (adds value to it) and sells the fruit at price G. A canned fruit company buys the fruits, cans them, and sells at price C to distribution, distributor sells to Retailer for price D, and retailer finally sells the product to consumer at price P

we should also define some taxes: bnrt is the rate of BNRT, CT is the corporate income tax, ST is sales tax.

current case:
Farmer: pay S, get G, pays tax (G-S)*CT
Canner: pay G, get C, pays tax (C-G)*CT
Distributor: pays C, gets D, pays tax(D-C)*CT
Retailer: pays D, gets P, pays (P-D)*CT
Consumer: pay P, pays tax: (P)*ST

total tax received: (P-S)*CT + P*ST


BNRT case:
Farmer: pay S, get G, pays tax (G-S)*bnrt
Canner: pay G, get C, pays tax (C-G)*bnrt
Distributor: pays C, gets D, pays tax(D-C)*bnrt
Retailer: pays D, gets P, pays (P-D)*bnrt
Consumer: pay P, pays tax: 0
total tax paid: (P-S)*bnrt

if the government wants to keep income the same how much should he set the bnrt?

(P-S)*bnrt = (P-S)*CT + P*ST
bnrt = CT + ST * P / (P-S)
bnrt = CT + ST / ((P-S) / P)

bnrt is to be set as approximately the current corporate tax plus sales tax divided by the gross profit margin of all business processes in the state.

Next time, we should analyse the claimed stability of BNRT resistant to fluctuations in business cycles.

The effect of California's proposed VAT/BNRT

What is the effect of eliminating sales tax, lowering income tax and establishing BNRT?


The sales tax is lowered to 1/5 of previous, sales tax of nearly 9% or 10% is completely gone, but a tax is added to transactions. The only deductions are house, charitable, and...

For a business, the Business Net Receipt Tax is a percentage of

OUT=$ listed on receipts I receive while doing business (after paying $)
IN=$ listed on receipts I issue while receiving $ in the process of doing business.

So BNRT a business has to pay is Tax_Percentage * (IN - OUT)


Cool, eh?

Not having income tax and lower sales tax means the money made in California will tend to stay in California (because tax is lower, so it's not worth it to take the high income and spend it out of state where tax is higher)


One reaction people will have is this: Wouldn't businesses tend to become more vertically integrated. If the making of a product requires either two companies or three companies, which one would I prefer?

bnrt = bnrt tax rate
r=original raw cost
p=market price for the final product

2 company case:
p1 is the price the intermediate product sells for
p2=p is the price of the final product.
total tax paid is: (p1-r)*bnrt + (p-p1)*bnrt + 0 sales tax
do the math, and the total tax paid is (p-r)*bnrt


3 company case:
p1 is the price the intermediate product sells for
p2 is the price of the intermediate product between p1 and final result
p3=p is the final sales price
the total tax paid is: (p1-r)*bnrt + (p2-p1)*bnrt + (p-p2)*bnrt + 0 sales tax
do the math, and the total tax paid is (p-r)*bnrt

same!! they're the same!! (to the government, if the sales price remain the same as a result) Since the original costs are the same, and the the cost of final product are the same, the total money made by private sector is

p-r-(p-r)*bnrt = (p-r) * (1-bnrt) is the same for both case. So the tax doesn't fundamentally affect the cost of doing business, more or less, the money made is the same.


tomorrow, we will check if the final price will remain the same...

equality

A part of our American Dream is to achieve it's political ideals...

We hold these truths to be self-evident, that all men are created equal,...

equal treatment, equal protection, equal rights and liberties...

so this reminds me of a heuristic in collaborative filtering (originally text classification for me) When receive rating from users, some users will respond with ratings for more things than other... This tend to create the ability for diligent users to influence the system systematically.

If I only vote for movies with Clint Eastwood, then certainly I could influence a recommendation system that makes recommendations based on lead actor/director.

In fact, if I vote for 100 movies with Cient eastwood in them in one boring afternoon at work. And 100 other people, over the course of a year, come to the system and vote for Sean Connery (born same year, btw).

The influence I have on the system in one pathetic afternoon is going to be same as the collective influence of 100 people over a long period of time (aka all time favorite).

There is of course an easy fix for this. Even most beginners in the field will quickly discover what is commonly known as normalization. My vote for each actor/director is "normalized" by dividing it by the number of votes I made. This means if those 100 people voting for Sean Connery (if they were dedicated fan who would not even consider voting for another actor) would give Sean Connery a total of 100 votes. Where as my 100 votes for Clint Eastwood, would have only given Clint Eastwood 1 additional point.

This is fair!

The first time I ever talked to somebody about this, it wasn't immediately obvious that a user like me, who spends the afternoon poisoning a recommendation system, should be reweighed. The argument there is, well, if you were such a big fan, and you spend your afternoon boosting your favorite actor's scores, your dedication means you deserve more voting power.

Hmmmm, well, this is a contrived exmaple, but in other situations this may actually make sense...

Hmm... well, so, this is America, and everybody get's one vote, and that's just that. I argued.... yeah, but actually no. We have the electoral college who are aggregated votors that counts for more than you or me.

Hmmm... well, so, here, let's use (my favorite) naivete. If I am presented with a bunch of scores from two people. Suppose that I have a choice of how much each voting power each of the two people have relative to each other... What should I decide?

well, you can look at the two people and see what race they are, age, gender, etc. all probably will have a major roll in this decision...

well, in theory yes, but in practice, if the two users are visiting from their web browser, you really don't have that kind of interaction.... and actually, scientifically speaking, the best assumption you can make is the naive assumption. That indeed all men are created equal. In your eyes, you cannot treat them as non-equal and expect, in the large, to have a better result than if you assume they are equal. (hehee... snicker... operative statement here is "better... than..." heeheee)

In reality, the system often have very static biases that make naive assumption more attractive than the theoretic situation in both the average case and worst case. (hmm, say that bad people are always like me and vote 100 or more times. A system that always value people like me more than people who vote less will have worse worst case than the naive-assumption system. (even if it may have same average case performance); and you can further analyze the opposite where people like me are good, and people who vote less are bad, the worst case can equally be worse than naive system; and if we average over all possible worlds, then certainly naive is greatest of them all)


So... it seems there is a level of wisdom in the American political system, that upon careful inspection, has more to it than what it seems to say:

...that all men are create equal...

is not just a statement of belief that "the world is (made) this way", but more a directive to the government: "Treat them all equal"...

Because this is possibly the best political system we can ever implement.


sigh...

Monday, September 14, 2009

Yale student dead

Sigh... Very sorry to hear of the Yale student Annie Marrie Le's murder. Hope her killer will be caught and put to justice.

This killing stirs a muddy feeling in me. Motives:

Former/Parrallel Lover: So there's another guy that likes her, maybe she kissed him, or made out, or drove him crazy (surely she can, being both exceptionally in smarts and prettiness). And he can't stand the thought of never having her... confronts her, one thing leads to another, a struggle, accidental(or purposeful) murder, and then concealment... Probably a fellow student/researcher or a professor. In a moment of sexual heat, it is not beyond imagination that an intelligent person might commit this crime.

His former/paralell lover: Girl on girl action. MMmmm fun to think about, but unlikely. He's not that hot, and there hasn't been news to the opposite effect.

Her competitor in profession: Nah! if it's not a crime of passion, surely, the doctors and scientists cannot be that crazy. Even in this crazy economy where academic funding is low.

Hate groups: If you read my older blogs, you might suspect that the killer belongs to a hate group I founded. I didn't! And s/he doesn't.

When I first came to California, I found that I hated the girls here. They really raelly love those huge tall white Americans who are well off, better dressed, bigger dick than me.... I hated it sooo much!!! I feel my bones shrieking when I see the image of an Asian women (no, no, it's a very young asian women, still with youth and life, not the dead/unhappy/lifeless kind that we often see walking around) then turning around to kiss a tall handsome White dude. (dreamt of it in nightmares often)

I hate it!!
[0, 255, 0]
I jump up, and punch my desk... yell loud enough to wake my neighbors, and then feel worse, realizing that she's even less achievable now, now that she's in a dream and infatuated with a white dude who's obviously more "fit" for her needs...

But Annie Marrie Le has a curious name, not immediately recognizable to me. Probly does not belong to a family that would cause this kind of hatred (that is to say, she's not first generation, probly speaks English as first language, and consequently, at least for my type of jealousy, is not a target of it).

sigh..., there doesn't appear to be anything that can make up for it... except for some renewed alertness for the universities to take care of their investments' needs and protect them from physical harm...

sigh....

Thursday, September 10, 2009

idiocracy

Just saw this movie, and named this blog after one of the things that happened in 26 century:

Fart Museum!!! (*tadaaaaa*)


Wow, some times, ficshun is truerer than reality!!

I cannot believe how often I feel like the average person portrayed by Luke Wilson (well, minus the busty Maya Rudolf) walking amongst some of the world's most advanced most leaderish mostest bestest some such of things, and I look at it, and think: huh?

And then, other times I feel like the people of the 25 hundreds. It's like I don't talk right, I don't think right, and my life is designed for me like a kid's toy, and I still hesitate looking at large icons trying to figure out... duhhhh! butt pain? or baby pooping out of butt? duhhhh!!!! wah????


sigh........ Maya Rudolf seems like a pretty women, wonder why she doesn't do so well on SNL and on these block-non-bustin mooveeeeees...

blah!!!


oh! and I like money.

hahahahhaaaaa