Tweets

Follow @pietrosperoni (560 followers)

Categories

My first 2 talks available online: Tags & 21st Century Democracy

The two talks I gave at the: International Workshop on Challenges and Visions in the Social Sciences, this summer, are now available at videolectures.net.
Not the best talks of my career, and hopefully not the last either. But the guys at VL did a great job in recording them.

One of the talk was about Tags, and the second about Democracy of the 21st Century.

In the one about Continue reading My first 2 talks available online: Tags & 21st Century Democracy

Would you rather have sex or know about it?

This is quite interesting. According to this very unscientific statistics, with way too few data, but enough to start showing some trends, we discover that people who just completed elementary school has way more sex than everybody else.

Elementary school 24
Junior high / middle school 11
High school 10
College 11
College – post graduate 12

source

So, either those people are lying on the number of partners, or they are lying on the education they received. Or it is all true, and we need to assume that the less you study the more you fuck. But also who would have done only elementary school? I mean, in most countries by now middle school is compulsory. So if you only completed middle school chances are you are quite older. And so you had more sex just because you are older.

I am still looking for some real good statistics on the number of sex partners, breaking it down by age, education, wealth, sex, location, sexual preference, and anything else you can think off.

One think in positive is that they clarify very well what they intend with sex:
This includes vaginal or anal penetration. This does not include oral sex.
Is very common for women to agree only to do oral sex with one night stand partners, and then when you go and look at the statistics, the man claim thay have had sex, and the women deny it.

P.S. for some serious study please refer to this.

Where life is and money isn’t

Some of you might remember that I wrote a post about the long tail of the ruling class. The post was in Italian and got translated in English by blogger Phil Edward. I took the translation copied it in my blog (with a link), but said that I did not fully agree with Phil understanding of my post. I didn’t enter more into details. And then there was silence, and in the silence I decided it was easier to just ignore the whole discussion. But a few days ago Nicholas Carr from Rough Type wrote a post on how the long tail permits to the service the puts in touch people to make massive amount of money, but to the people who produce the actual content not much money. Absolutely true, and this is why you don’t see google advertisments in my blog. But this is a very different problem from what I was discussing when I was speaking about the long tail of the Ruling Class. Mainly because I was not speaking about the ruling class but about the ‘classe dirigente’. Which is not exactly the ruling class, although I still can’t find a better translation. Ruling class smells a bit too much of kings and queens and prime ministers. And I was actually speaking about ‘classe dirigente’ as people who have authority over a certain field.

So when Phil commented on Nick post:

I blogged on this last year, in response to Pietro Speroni:

I felt I had to answer. Because my post was all about a multidimensional space (all our interests), which gets mistreated as a unidimensional space (money). Poor chap! For a multidimensional space to be treated as a unidimensional one is fairly common, but never fair. And the general excuse is ‘to understand better’, or ‘to simplify a bit’. But I suspect that multidimensional spaces might take it personally, bacause if you treat them bad, they can become quite convoluted, if you know what I mean. Maybe I should write a long post on the importance of not making models (even mental ones) with too few dimensions. But I think I shall leave it for some time next year. And then I can say that it was long due.

In any case I decided to copy my comment to Nick post here. Continue reading Where life is and money isn’t

Observations while Clustering Mike’s bookmarks

The first person to use the tool (presented here) was Mike Harris, for his delicious entries. Note immediatly how the time needed to compute the map has little to do with the number of posts, and much to do with the number of tags.

  • WCityMike: 2029 Posts, 87 Tags and 81 Main Tags, calculated in 86.85 seconds.
  • p.s.blog: 21 Posts, 43 Tags and 17 Main Tags, calculated in 0.23 seconds.
  • pietrosperoni: 372 Posts, 400 Tags and 152 Main Tags, calculated in 377.40 seconds.

The Main Tags, are the tags that will appear as main branches. And we can also see a difference between Mike maps, and mine. In mine I tend to have about 0.4 of the tags as Main Tags, while Mike tends to have something more near 0.9. This is probably due to the fact that I tend to apply many tags to each post (four or five are common, but sometimes more), while Mike tends to use an average of one or two.

If we look at the map we can also see that there are less clusters than in my map. Note for example how in the small blog map nearly everything is clustered… and those are only 20 posts and 17 Main Tags.

If we look at the source code we can see that, on the 9th line some constants are set:

distances_constant= [0.333333,0.4,0.5,1]

Those constants define the minimum distance for entries to be in the same cluster.
The 1/3 means that if one third of the posts between two tags are in common then the tags should be in the same cluster. And so on. Tags that are farther apart, but have a path of tags between them such that you can go from one to the next without never going above that distance are in the same cluster, too. A process that in the log is referred to as making the distances tables transitive.

Those number have been specifically tweaked for my delicious posts (and generally my style of bookmarking). It seem obvious that for Mark the numbers should be different. Since it is more uncommon for him for posts to share a tag, probably the numbers should be lower. Something like:

distances_constant= [0.1,0.333333,0.25,0.4,1]

The last 1 is just to make sure that tags that are synonimes are shown together.

I think eventually I will modify the program so that it is possible to insert your own constants from outside. But for now I am just grateful to Mike for giving me the material to understand better how to enhance the program.

A house divided

As the price of houses rises, more and more people find that the best solution is to divide a house among friends. Usually each person gets a room. The problem then is: who gets what room and how much should he pay. Usually the total rent is fixed, and usually the rooms are not exactly all the same. Some might be bigger, some smaller. Some might have a better view, more privacy, closeness to the toilet, more silence, and so on. And what’s also important is that different people might value the various elements in different ways.

I present here two ways of splitting the rent and dividing a house. I personally favour (and has designed) the second, but while I was presenting this method to some friends to get some
feedback, I was told the other, it seemed simpler, yet interesting enough to add it. They both assume that:
a) the rent is fixed,
b) there are no favoritism among the will-be-housemate on
who gets to choose first.

The ‘find the objective value first’ method.

Before the rooms are assigned, get together and agree on what are the objective value of each room (i.e. 20% of the rent for this, 50% of the rent for this). The total value must of course be the whole rent. Then randomly select who gets what room (at the agreed price), and as a final action people are allowed to exchange rooms if they want to.
Positive element: it is simple and quite straightforward.
Negative element: it assumes that people can easily agree on the actual relative value of the rooms, and that such value does not change respectively to the persons.

The ‘each person gets the best room’ method.

As I said this is the method that I love most. First of all let each person inspect all the room. Then each person, writes, secretly, the relative value of each room in a piece of paper. The sum of the values must be equal to the requested rent. The idea is to divide the house so that each person gets a room, and pays for that room the value THEY wrote on the piece of paper, while the sum of the valued paid by each person totally covers the requested rent.

Obviously, very often, the collected money would then be higher than the rent. Let’s call the collected money minus the monthly rent, the ‘extra money’.

Often there is more than one solution, that permit to have a some extra money each month. When this happens, the solution that permits to maximize the extra money is chosen. The extra money is then used to pay for the light, any extra expenses, or whatever is needed for the house.

Sometimes there are more than one optimal solution, that is some solutions generate the same extra money, everybody is paying the requested cost for each room, and all other solutions are less optimal. In that case the adopted solution will be one of the optimal one, randomly chosen.

Examples, examples:
Let’s suppose we have a house with 3 rooms (a, b, and c) and 3 persons (A, B, and C). Let’s suppose the total rent being 100.

Person A might find the three rooms equivalent, so he might just write (a: 33.3, b: 33.3, c: 33.3). Person B might instead favour room B, because is more sunny, and she likes to paint, and then she thinks that room ‘a’ is slightly better than room ‘c’, infact she would prefer not to be in room c at all, so she would write: (a: 35, b: 40, c: 25). Person C instead does not care about the sun, but has noticed that room A has more privacy, plus is near the toilet, and since he likes to have his gf as a guest, thinks that having room A would be a better deal. So he votes (a: 40, b: 30, c: 30).

Then the papers are revealed.

Generally when a room has a person that values it more than all the others, and he values that room more than all other ooms, then that room gets taken by that person at the price he has choose.

In our example we have:
A: (a: 33.3, b: 33.3, c: 33.3)
B: (a: 35, b: 40, c: 25)
C: (a: 40, b: 30, c: 30)
which would give us that A would get room ‘c’ paying one third of the rent. B would get room ‘b’ paying 40% of the rent, and C would get room ‘a’ for 40% of the rent… and the collected money each month would be 33.3+40+40=113.3 . The extra money would be 113.3-100=13.3 and would be used to pay for the electricity, water, gas, or whatever.

It is also possible to rinormalise the prices, by lowering them so that the total sum becomes exactly the cost of the rent, while the relative ratio remains the same. In our example
A: (33.3/113.3)*100=29.4
B: (40/113.3)*100=35.3
C: (40/113.3)*100=35.3
and person A would pay 29.4 of the rent (since he took the room nobody wanted)
person B would pay 35.3 of the rent (and took the sunny room)
person C would pays 35.3 of the rent (and took the room with more privacy)

So, what if the situation is not that easy. There isn’t a person that prefers each room? For example you could be in a situation like:
A: (a: 45, b: 45, c: 10)
B: (a: 40, b: 40, c: 20)
C: (a: 40, b: 30, c: 30)
well in this case it is obvious that person A will get either room a or room b. But it is also obvious that room c will go to person C. So C get’s c at 30% of the rent. Both A and B value the room a and b equivalently. But once the room will be assigned person A will pay more than person B, so it seem fair to me that person A chooses a or b and pays 45, and person B gets the remaining room, but pays less (40).

But things can get even more complicated if some people
value some rooms exactly the same:
A: (a: 45, b: 45, c: 10)
B: (a: 45, b: 45, c: 10)
C: (a: 40, b: 40, c: 20)
in which case A and B have obviously to randomly choose who gets what.

Or if the situation is symmethric among the rooms:
A: (a: 40, b: 30, c: 40)
B: (a: 40, b: 40, c: 30)
C: (a: 30, b: 40, c: 40)
In which case you randomly choose if A gets a or c, and then the other follow obviously.

So here we have the first mehtod, where everybody chooses the value together, this is equivalent on the second method if everybody agrees on the relative value:
A: (a: 35, b: 40, c: 25)
B: (a: 35, b: 40, c: 25)
C: (a: 35, b: 40, c: 25)
After which, also in this method, you would randomly pick who gets which room.

Please, let me know if you have tried it and if it was succesful.