Saturday, November 22, 2014

Karaoke competition in Kathmandu

The Japanese Language Teacher’s Association Nepal (JALTAN), in association with the Embassy of Japan, is organising The Japanese Karaoke Competition 2014 at the National Theatre, Jamal, on November 29.
Karaoke is a form of entertainment that involves an amateur singer who sings to the track of a popular song. The lyrics of the song, in most of the cases, is displayed on a screen for the singer to see. Though disputes exist regarding the invention of karaoke, Japanese drummer Daisuke Inoue is often credited with having developed this form of entertainment. And although karaoke is extremely popular among people of all age groups in Japan as well as in countries around the world, the karaoke trend is yet to become huge in Nepal.
The Japanese Embassy’s competition, which will feature a variety of popular traditional as well as contemporary Japanese songs, is aimed at Nepali students and enthusiasts of the Japanese language.
The organisers hope that the competition will not just entertain the audience, but also introduce them to popular Japanese tunes, something that is difficult to come by in Nepal. Further, they also hope that occasions like this will help to promote cultural ties and strengthen the ever-growing cooperation and amity between the people of Japan and Nepal.
His Excellency Mr Masashi Ogawa, Ambassador of Japan, will attend the event, which has been jointly supported by JICA Nepal Office, JICA Alumni Association of Nepal (JAAN), Japanese Universities Alumni Association Nepal (JUAAN), Japanese Association in Nepal, and Nepal AOTS Alumni Society (NAAS).
Entrance is free for all on a first-come-first-served basis.

Good Health

It happened for the third time. This time, however, it broke Dhanmaya’s heart and her hope—the hope that she would conceive a child from her own womb. The earlier times when the misfortune had occurred, she had somehow managed to keep the hope alive. But the miscarriage this time around shattered her completely. The joy she had felt on knowing that she might be a mother had not lasted long as the misfortune came just after a month of conception. The repeated failure of the embryo to last even for months, now made her believe that the problem lay somewhere inside her, inside her womb, or perhaps with her wretched fate. Harkaman, her husband, too, was not spared the misery as he watched his wife weeping, her fingers covering her face as the tears rolled down her eyes—swollen and red from all the sobbing. Harkaman knew that any words of solace would only pile agony on her, and so he kept silent and let her cry. The silence settled there for the rest of the night as Dhanmaya slipped into bed without even bothering to go to the kitchen, her eyes red and her voice still breaking. Though Harkaman was tired from the day’s work and wanted to eat something, he followed suit and slipped beside his wife, his back touching hers, their faces staring at opposite walls.
The next morning, when Harkaman woke up, he did not find her beside the bed. A moment later, the sounds of utensils coming from the kitchen assured him that his wife was in the kitchen, and that she had not done anything silly. After a while, she came with the morning tea, placed it on the table near his bed and went back to her chores without uttering a word. Harkaman sipped the tea while looking outside the window, beyond the trees and the hills. During lunch, she kept mum and appeared to be lost within herself, and Harkaman had to tug at her a few times when she stopped chewing the meal and kept staring at the plate. He did not know what to say to her and so he left for work after eating the meal.
Things went from bad to worse as Dhanmaya resorted to silence after that day. She only spoke when spoken to, and that too very little. A forlorn expression made a permanent fixture on her face and it was not too difficult for Harkaman to figure out that she was punishing herself for something over which she had no control. Once, Harkaman had tried to speak to her about the matter.
“What will happen by behaving this way? It is only going to hurt you more.” As always, Dhanmaya did not even look at him when he was talking to her. An occasional nod of the head followed by something she muttered under her breath became her only response.
A couple of months passed by and things did not change much for Dhanmaya. She had stopped weeping by now, but she was yet to come to terms with the misfortune that had left her shattered months ago. She was finding it even more difficult to reconcile with the fact that her desire to give birth to a baby would end up being just a desire and not reality.
One day, Harkaman was returning home from work. He worked as a potter in a nearby town. It was a twenty-minute walk away, and he always returned home once dusk had settled in. The sun had already turned crimson and it was only moments before that it had slipped behind the hill. It was almost dark and as he walked, he wiped the sweat off his face with the edge of his shirt’s sleeve, his shirt unbuttoned so as to let in the air. It was then that he heard a faint voice coming from one of the bushes on the side of the road; the sound resembled that of a newly born baby’s wail. Harkaman looked around to see if somebody was there, but there was nothing around except for the cry of the child and the spreading darkness. With a bit of hesitation, he moved closer to the source of the sound. The next moment he saw a beautiful child throwing up its legs and hands, and letting out a persistent low cry. The child must be around one month old, he assumed. A wave of fear gripped Harkaman as he looked around to see if there was anybody there who could perhaps make a more legitimate claim over the abandoned baby.
“Who must have abandoned such a beautiful baby in this dark,” he muttered as he smiled at the baby and took it up in his arms. The child stopped crying completely and closed its eyes once Harkaman allowed the child to suckle his little finger. Harkaman observed the child’s face, his small eyes, now closed, and the little nose with the tiny nostrils. The child looked at peace in his arms. But the evening was getting darker with every passing second and Harkaman couldn’t figure out what he should do next. When he tried to remove his finger from the child’s mouth, it let out an instant cry, louder than before. He quickly allowed the child to suck his little finger, and the cry disappeared.
There was one thing Harkaman was sure about—that he couldn’t leave the child abandoned for the second time. He cursed the real parents of the child for deserting the little creature barely a month after birth. But soon a feeling of guilt started rising up from his stomach as he flirted with the thought of leaving the child there and heading home.
Harkaman soon became sure that if he, too, abandoned the child, like the child’s biological parents had, he would be as reprehensible as the child’s real parents. He then remembered Dhanmaya’s gloomy face and her dejected condition. Then he looked at the innocent face of the chid which now lay on his hands, safe and sound. Even before he realised, he found his feet moving swiftly towards home. Now, Harkaman knew what he was doing and he couldn’t imagine the response that would emanate from his wife upon seeing a new-born child in his arms. He smiled and walked carefully so as not to trip over some rock, for now he held a prized possession.
-------
Dhanmaya first cringed when she saw the baby. She felt embarrassed to see in her husband’s arms a nearly one-month-old baby that she had not delivered.
“Whose baby have you brought?” she asked with suspicion even as she threw furtive glances at the baby.
“Isn’t the little creature beautiful?” Harkaman could not hold back the excitement he felt when looking at the baby.
“That is not what I asked,” Dhanmaya stiffened a little.
“I found it near a bush while I was coming home,” he said,” The baby was abandoned. What else could I do?”
“So you brought the child along?”
“Yes.”
“What if his real parents come searching for the baby,” Dhanmaya quizzed her husband.
“I don’t know. If they were to come searching for the baby, they wouldn’t have abandoned the child in the first place.”
Dhanmaya nodded in agreement.
“But how do you know if the baby is a boy?” Harkaman was a little surprised that his wife had correctly guessed the baby’s sex just by seeing the baby, barely a month old. Harkaman himself had struggled to figure out the baby’s sex until he had removed the napkin wrapped tightly around the baby’s pelvis.
“Just because I have not been able to give birth to a baby does not mean that I can’t figure out a baby’s sex,” his wife said,” Just the face, or even the wail is enough.”
“What should we do about the child now that you have brought the baby home?” Dhanmaya asked. Suddenly, she felt comfortable about the fact that her husband had brought home a child who was not theirs. A child who must have been forsaken by his biological parents was now lying safe inside a humble hut, one that now seemed like a perfect refuge for the newborn baby.
“Maybe we should adopt the baby,” her husband suggested.
“What will others say?” she asked apprehensively even as she struggled to hide her excitement about adopting a baby.
“People will keep saying things. Who cares?” her husband looked nonchalant as he fiddled with a cigarette lying inside his waistcoat. 
“Have you gone mad?” Dhanmaya admonished her husband as he tried to light the cigarette with a damp-looking matchstick.”Lighting a cigarette in front of a baby this small?”
Harkaman reacted as if he remembered something and hurried outside. He lit the cigarette and inhaled a long puff. Dhanmaya got confused and wondered what she should do next as she found just herself and the baby in the room. She then walked closer to the baby.
For almost a minute, she observed the baby’s face: the tiny nose, the sensitive eyes and the forehead, which looked too broad for a one-month-old. As she ran her fingers over the baby’s face, a touch of longing appeared on her face. The brightness in her face upon holding the baby in her arms just about validated how much had wanted a baby. The origin of the child—whether it emerged from her own womb or from somebody else’s— just did not matter anymore. A baby was all she wanted, Biological or not, she didn’t care.

Nepal meet HK in 50-over clash

After the three-match Twenty20 Series against Hong Kong got washed out due to incessant rain in Dambulla, Nepal will expect to be in action in the one off 50-over game against the same side at the Army grounds in Colombo, Sri Lanka on Sunday.
As no action was possible at the water-logged Rangiri Dambulla International Stadium, organizers Asian Cricket Council and Sri Lanka Cricket have opted for a rescheduled programme for both the teams beginning with the one-day game on Sunday followed by a Twenty20 International at the P Sara Stadium in Colombo on Monday.
Since the match has been categorised as List A cricket by the International Cricket Council, it will give Nepal some consolation with another Twenty20 International in the waiting line. With the tournament cut-short, Nepal will now pray for clear skies to be in action finally after six days. Coach Pubudu Dassanayake is desperate to have a game.
“After six days of no-cricket, we are hoping to get a game if weather permits. We have always wanted to play games at the international level but we cannot complain if weather washes away our games. The conditions here seem far better than that of Dambulla. We are hopeful that we will get a game tomorrow,” Dassanayake told The Kathmandu Post from Colombo.
Nepal left for their Sri Lanka tour with two new faces in Karan KC and Rajesh Pulami with both featuring in the two three-day matches that was held in Kurunegala from November 9-16. Both impressed in their debut with the national team and Dassanayake is likely to field them against Hong Kong. Pulami made 131 runs in three innings and KC picked up eight wickets in four.
“The match against Hong Kong will allow us to try out a few combinations,” said Dassanayake adding there is a high possibility of both the newcomers playing on Sunday. While Naresh Budhayer and Subash Khakurel will be primed to open the innings, Gyanendra Malla and skipper Paras Khadka will be performing the responsibility of holding the innings from the middle order.
With fast bowler Sompal Kami going with the best form, he will be a unanimous pick for Dassanayake along with spinner duo Shakti Gauchan and Basanta Regmi. Hard hitter Binod Bhandari and all rounder Sagar Pun can be assured of their spots.
Hong Kong have been running with a poor form having lost to Papua New Guinea 2-0 in a two-match ODI series held before their Sri Lanka tour in Australia.
They had also lost a three-day game against the same side after the one-day series. Nepal had defeated Hong Kong by seven wickets under Duckworth/Lewis Method in the ACC Premier League game held in Malaysia on May 5 this year.

Kathmandu awaits Delhi’s final word


The proposed visit of Indian Prime Minister Narendra Modi to Janakpur remained uncertain as of Saturday. Indian Amba-ssador to Nepal Ranjit Rae called on Prime Minister Sushil Koirala on the day to say that he had not received any official communication from New Delhi about Modi’s pilgrimage in Nepal.
Rae, however, said there were indications that the Indian PM’s visit to Sita’s birthplace would happen. The External Affairs Ministry of India was due to brief the media on the visit, but it would do that on Sunday, said a source.
“There is no formal announcement of the cancellation of the Janakpur visit. The plan will be confirmed by Sunday afternoon,” said Abhay Kumar, spokesman for the Indian Embassy in Kathmandu.
According to PM’s aides, after the meeting with the Indian envoy on Saturday morning, Koirala instructed Minister for Physical Infrastructure and Transport Management Bimalendra Nidhi to expedite preparations to host a civic reception for Modi at the Barha Bigha ground.
On Friday evening, Koirala telephoned Modi to request him to visit Janakpur, Lumbini and Muktinath, urging him not to call off the visit due to the miscommunication. “Modi told Koirala that he will convey any decision through the Indian ambassador,” said a Baluwatar source.
Apart from Nidhi, the PM also instructed Nepali Congress Constituent Assembly members from Dhanusha and the adjoining districts to help with the preparations.
“As per the PM”s instruction, we have relocated the venue of civic reception from Ram-Janaki temple to Barha Bigha,” Nidhi said from Janakpur.
PM’s foreign relations advisor Dinesh Bhattarai told some reporters on Saturday that all the logistical preparations were over in Janakpur. He added that an assessment made by the Home secretary, chiefs of the Nepal Police, Armed Police Force and National Intelligence Department showed Janakpur is ready to receive Modi as far as security and logistical preparations are concerned.

Wednesday, November 19, 2014

Mining for Proitiable Patterns in the Stock Market


Mining for Rules

 

 The rules we mine for are similar to these by Liu (1998), Siberschatz & Tuzhilin (1996) and Zaki, parthasatathy, Ogihare, & Li (1997). They have the following format:

Rule type (1): a 3-day K-Line pattern          the stock’s price rises 10% in 10days.

Rule types (2) : a 3-day K-Line pattern         the stock’s price falls 10% in 10 days

 

   The search algorithm for the finding 3-day K-Line pat-terns that lead to stock price rise or fall is as following:

 

1.     For every 3-day K-Line pattern in the database

2.     Encode it by using the RPM method to get every day’s bit representation, cl, c2, c3;

3.     Increase pattern_occurrence[c1][c2][c3] by 1;

4.     Base_price = the 3rd day’s closing price;

5.       If the stock’s price rises 10% or more, as compared to the base_price, in 10 days after the occurrence this pattern

 

Increase p  up[c1][c2][c3] by 1;

6.     If the stock’s price falls 10% cr more, as com-pared to the base_price, in 10 days after the occurrence of this pattern

 

Increase P  down[c1][c2][c3]  by 1;

 

   We used daily trading data form January 1, 1994, through December 31, 1998, of the 82 stocks, as shown in Table  as the base data set to mine for the price up and down patterns. After applying the above search algorithm on the base data set, the P up and P down arrays contained the counts of all the patterns that led price to rise or fall by 10% in 10days. In total, the up=patterns occurred 1,377 times, among which there were 870 different types of up-pat-terns; and the down-patterns occurred 1,001 times, among which there were 698 different types of down-patterns.

 

  A heuristic, stated below, was applied to all found

 

Table 1. 82 selected stocks

  

ADBE
BA
CDN
F
KO
MWY
S
WAG
ADSK
BAANF
CEA
FON
LGTO
NETG
SAPE
WCOM
ADVS
BEAS
CHKP
GATE
LU
NKE
SCOC
WMT
AGE
BEL
CLGY
GE
MACR
NOVL
SNPS
XOM
AIT
BTY
CNET
GM
MERQ
ORCL
SUNPS
YHOO
AMZN
BVEW
CSCO
HYSL
MO
PRGN
SUMW
 
AOL
CA
DD
IBM
MOB
PSDI
SYBS
 
ARDT
CAL
DELL
IDXC
MOT
PSFT
SYBN
 
AVNT
CBS
DIS
IFMX
MRK
RATL
T
 
AVTC
CBTSY
EIDSY
INTU
MSFT
RMDY
TSFW
 
AWRE
CCRD
ERTS
ITWO
MUSE
RNWK
TWX
 

 

Patterns to reduce the ambiguity of the patterns. Using the price-up pattern as an example, for a pattern to be labelled as a prise-up pattern, we think the time it appeared in P up should be at least twice as many as the time it appeared in the Pdown. Within all the patterns labelled as price-up patterns, they were sorted based on the ratio of the squared root of its told occurrence plus its occurrence as a price-up pattern over the occurrence as a price-down pattern.

       For price-up pattern:

Preference =    * Pup, if

* Pup,

 

For price-down pattern:

Preference =    * Pup, if

* Pup,

 

The find winning patterns with positive preference score are listed in Table 2.

Performance Evaluation

 

To evaluate the performance of the found winning pat-terns listed in Table 2, we applied them to the prices of the same 58 stocks for the period from January 1,199,

 

Table 2. Find winning patterns sorted by preference

Pattern Code
PO
Pup
Pdown
Preference
Up[00][20][91]
46
15
4
81.68
Up[01][28][68]
17
7
1
77.86
Up[07][08][88]
11
7
1
72.22
Up[00][24][88]
10
7
1
71.14
Up[00][30][8E]
9
7
1
70.00
Up[01][19][50]
28
12
3
69.17
Up[00][30][90]
39
21
9
63.57
Up[00][31][81]
26
8
2
52.40
Up[00][20][51]
18
8
2
48.97
Up[01][19][60]
24
9
3
41.70
Up[01][1D][71]
10
0
6
66.00
Up[00][11][71]
17
1
6
60.74.
Up[01][19][79]
35
3
10
53.05
Up[00][20][67]
18
2
5
23.11