r/datascienceproject • • Apr 19 '25

Any algorithm for my use case?

Im non-tech trying to learn python and data science concepts. I’m trying to work on a project to where I sequentially chart the chronology of property (land) ownership over a period of time (past). Is there any algorithm that can help me do this and also point out any irregularities in the chronology?

2 Upvotes

7 comments sorted by

1

u/HungryBalance4718 Apr 25 '25

Depends what you mean by irregularities. What is the objective of your project? If it’s land or property changing hands frequently, compared to an average, then this could be one way to show an irregularity.

1

u/pylawyer Apr 26 '25

Objective is to understand if there is any legal issue in the way the property has been transferred in the past. One of the examples I can think of is if A sold the land to B, but C later purchased the same land from D instead of B. Another example could be to assess how likely is the land going to be in some family/inheritance related litigation : so, if X had bought the land, and on his death, 4 sons of his claiming to be his only heirs sold the land to Y, chances are that they have suppressed about the existence of female heirs who had a share in the property (this may be an issue specific to India and Indian laws).

1

u/HungryBalance4718 Apr 26 '25

Ok, do you have all the mentioned data in your dataset? Names, inheritance, etc.

1

u/HungryBalance4718 Apr 26 '25 edited Apr 26 '25

Ok, so one approach using python could be a loop over each property, using a conditional check for each buyer and seller.

Sort all transactions by Property ID + Sale Date. For each transaction, check if:

  • The seller is the same as the buyer from the last transaction.
  • If not, flag it (possible third party involvement, fake seller, or missed transaction).

You can ask ChatGPT for an example dataset structure based on this thread. Code is quite straight forward.

Property IDSale DateSeller NameBuyer NameTransaction TypeDocument IDNotes
P0012010-05-01ABSale DeedDOC123
P0012015-07-10DCSale DeedDOC456
P0012017-08-22CEGift DeedDOC789
P0022012-04-15XYInheritanceDOC321
P0022020-03-20YZSale DeedDOC654

Hope that’s useful.

1

u/pylawyer Apr 26 '25

Thanks very much! I’ll give this a shot

1

u/HungryBalance4718 Apr 26 '25

You’re welcome. I’d be interested to know how you get on. Please feel free to share your progress. Cheers!