ラベル

AI Forecast 8306MUFG (287) Social (77) life (75) Financial (67) IT (60) Proposal (56) idea (50) Fund Management (49) AI (43) Trading (43) economics (43) Covid-19 (40) Hedge Fund (37) Risk (36) Culture (31) BOJ (29) Science (28) hobby (25) accounting (17) Apps (16) Travel (14) career (11) job (7) Hiking (5) emotion (5) music (3) Statarb (2) piano (2)

2020年8月2日日曜日

真夏の夜の悪夢 A Midsummer Nightmare

真夏の夜の悪夢

A Midsummer Nightmare


昨夜、私は悪い夢を見た。連日のコロナ報道で頭がおかしくなっているらしい。I suffered nightmare last night.  Looks my brain is getting nervous due to daily news on Covid-19.

コロナという共通の災厄に立ち向かう、地上で唯一の知的生命体である人類は、コロナに対峙する代わりに、お互いの争いに時間を費やしているなんてありえないだろう。It is impossible that sole intelligent creature on earth, Human Kind, wastes time on internal fight facing the common enemy Covid-19, instead of confronting virus itself.

以下は私のただの妄想の悪夢の物語である。聞き流してほしい。Below is just my obsession, so pls just let it go.

ある既存薬が感染初期から適用外処方するとコロナに有効であろうことが、年初に各地で確認された。その後も、多くの医師がその薬の有効性に気が付き、多くの成功例が発表された。この薬を利用すれば、ワクチンを待たずして、コロナの深刻度は普通の風邪レベルになり、コロナ禍は実質的に終焉するはずだ。Early this year, one generic drug was found to be effective against Covid-19 on off-label basis. Later, many doctors realized its efficacy and many success stories were announced. If the medicine is used, without waiting for vaccine, Covid-19 will be just like normal flue, the current tragedy will disappear substantially.

医師たちは時の指導者にその効果を知らせた。指導者は、これがコロナ禍解決の切り札になると確信し、その利用を国民に薦めた。Doctors informed the leader the efficacy of the medicine. Leader was convinced and promoted the drug to people.

ところが、その指導者と対立する勢力及び、コロナが簡単に終息しては儲からない勢力は、様々な手段でこれを妨害した。あろうことか、その薬が無効であることを証明することで、その薬を薦める指導者を蹴落とそうと考えたのであった。実は、指導者は国を二分する大闘争の下で選ばれ、敗北した反対派は手段を問わず選挙で勝ちたいと思っていたのだ。However, those who has been confronting against the leader as well as pharmaceutical company that cannot make money if Covid-19 ends soon, got together and blocked the widespread of the cure in many ways. Forbidden approach was taken, i.e., they planned to disgrace the leader by "proving" that the medicine does not work.  As a matter of fact, the leader was chosen through fierce election process dividing country into two, hence lost-side desperately wanted to win the next election by taking any action possible. 

まず、偽の治験データを作成することで薬の無効研究結果を示し、驚いたことに世界・国家の健康機関もこれに倣った。多くの報道機関も薬の無効を喧伝した。ところが、治験データが1万人を超える大規模なものであったことから偽データであったことがすぐに露呈し、無効研究結果は撤回され、データを捏造した人々も姿をくらました。1st, they forged the trial data and proved non efficacy however, surprisingly world as well as national health organization followed the result. Many main-stream media broadcast-ed the non efficacy of the drug.  However, due to the over 10K massive number of trial data used, the forgery was soon revealed and research was retracted. Those who made up forged data were disappeared.

また、2つの治験では異常に過大な用量の処方で死亡率を上げることで、薬の無効を証明しようとした。しかし、用量が高死亡率の原因であることは直ぐに皆が知ることとなった。Also in another two clinical trials, they tried to prove the non efficacy by prescribing massive over-dose to increase death rate. However, soon all learned that the result of high death rate comes from massive overdose.

さらに、その薬は外来において、感染初期に投与することで重症化および入院を防ぐのが効能であるのに、重症化して入院してからの患者に処方し、無効であることを主張する研究も相次いだ。その薬は、基本外来ベースでの処方のため、管理された入院ベースの場合と異なり、RCTに乗りにくいことが弱点であった。Besides, lost of other clinical trials were done focusing on patients in last stage or in serious conditions to prove non efficacy, although the medicine is know to be effective only when taken from inception of infection to stop getting serious to be hospitalized. The medicine needs outpatient based treatment from infection inception unlike rather easy-to-control inpatient situation, making RCT more difficult to perform and it is a weak point of the medicine.

世界・国家の健康機関は、薬は有効でなく、危険でさえあるという立場を変えることはなかった。悲しいことに、汚染と腐敗はそこまで及んでいたのだった。World and national health organization kept saying that the drug is not effective, even dangerous. Sadly, contamination and/or corruption have been spread to that level.

指導者には専属の医療アドバイザーがいた。しかし、その医療アドバイザーは製薬会社の利権の中枢であり、その薬が有効であると分かってしまうと収益機会を失ってしまうため、その薬にRCTでの有効結果が無いことを理由に、その薬の有効性を頑なに否定した。一方、自らの利権がある製薬会社の薬は手早くRCT治験を済ませ承認させた。価格はある薬の150倍の高額となったが、政府は思い通り在庫をすべて購入した。ただ、その製薬会社の薬の有効性には他の治験では疑問符がついている。The Leader has a medical adviser. However the medical adviser is actually the core of conflict of interest of pharmaceutical company that lose profit taking opportunity if the efficacy of the drug is known. Hence the adviser stubbornly turned down the efficacy of the drug using the non existence of RCT as a reason. Meanwhile the advisor made another drug approved by rush RCT with which he has strong conflict of interest. The price of another drug was 150 times higher but government purchased all inventory as he planned. Now the efficacy of the another drug is in question by further clinical trial.

しかし国民は黙っていなかった。特に、自分の患者がその薬で殆ど全て回復しているのに、その利用を妨げられた医師たちは、団結し、その薬の開放を主張した。その決起集会の様子はインターネットに流され、指導者もそれを支持した。ところが、2千万人近くの人たちがこの様子を見た直後に、インターネット上から、映像は消失した。インターネットの管理者は映像検閲の結果、その薬が実は、世界・国家の健康機関や指導者のアドバイザーによると有害であるとして、アクセスをブロックしたのだ。But citizens could not keep being quiet.  Especially the doctors, whose patients were almost completely recovered by the medicine, got together and stressed the need to open up the use of the drug. The rally they organized was broadcast-ed through internet and the national leader supported it through internet. However, right after 20mn people viewed it, the internet information were deleted. Internet managers censored them based on the view from world and national health organization concluding that it is a false information not to be spread over to public since it is harmful, hence blocked the information.

指導者は直ちにインターネットの検閲を違法とする命令を出した。ある地域では、朝にその薬の利用を禁止したものの、指導者の検閲違法命令が出た同日に、利用を再度許可するというドタバタ劇までついた。The leader immediately ordered to stop internet censorship. One region showed slapstick drama by issuing ban order of the medicine in the morning but took back the order in the evening right after the national leader banned censorship.

さあ、国民は最終的にその薬を手にして、普通の生活を取り戻すことができるのだろうか?Now the question is, if people can get back their normal life by having the medicine in hand.

というところで、目が覚めた。悪夢はまだまだ続きそうだ。Then I woke up from nightmare all of a sudden. But I am afraid that it may continue over and over...

2020年8月1日土曜日

コロナ治療Utility理論 Covid-19 Therapeutics Utility Theory

コロナ治療Utility理論 

Covid-19 Therapeutics Utility Theory 


コロナ治療薬の適用外処方選定に、重大な副作用がない場合は、RCT(Randomized Clinical Trial)のみに頼るのでなく、救済される人の予想数をUtilityとした選定を行うべきだ。これにより、ワクチンが開発されるまでの死者を激減させる可能性が高まる。For the choice of off-label-use Covid-19 cure medicine, unless there is any fatal side effects, Utility based approach should be used but not just depending on RCT( Randomized Clinical Trial) setting utility as number of reduction of death. By this approach, we can reduce death toll drastic until vaccine is developed.

コロナに対し、現在、ロックダウン、マスクなどの対応によりワクチンができるまでの時間稼ぎ戦略がとられている。ただ、その間も死者は増大し、様々な既存薬の適用外処方が試みられている。Currently time-earning-strategy is taken for Covid-19 such as rock-down or mask ware until vaccine become ready. But meanwhile, death toll piles up and many off-label-use of existing medicines have been tried.

通常、治療薬として認定するには、自然治癒効果、プラセボ効果などを取り除くため、RCTという治験を経て効果確認を行うが、コストと時間が掛かる。Normally, to approve as cure-medicine, to eliminate natural-cure effect as well as placebo effect, trail called RCT is done however, it is time consuming and high cost.

ここでは、RCTを行うことなく、相当数の現場の医師が数多くの自らの患者の事例をこなすことで効果を確信した適用外利用の治療薬について、これを有効として水平展開するべきか、RCTを待つべきかを検討する。ただし、重大な副作用は存在しないと仮定する。Here, I wish to show one way to judge, whether to expand for public or wait for RCT, the use of off-label-use medicine that substantial number of doctors, actually seeing Covid-19 patients, are convinced its efficacy. I assume that there is no fatal side effect exits.

判定の基準には、Utilityを用いる。治療薬を導入したことにより救済された人の数をUtilityとする。Utilityとは効用であり、どれだけ役に立ったかを示す概念である。The base of the judgement is Utility. We define the Utility as the number of people saved by the introduction of the cure medicine. Utility is a concept to present how people benefit from it.

答えは簡単で、数式で表すまでもない。「ダメ元」という言葉の通り、その薬による副作用による死亡率より状況が改善すれば、Utilityは必ずプラスとなる。下の例は、今回のコロナの2020/7/31の状況に当てはめた場合である。The answer is easy enough to explain without any equation.  As somebody said 'you have nothing to lose', the Utility will go always plus if the mortality due to the side effect of the medicine is below the benefit of taking the medicine. Example below is for Covid-19 as of July 31, 2020.

効果が全くない場合、副作用による死亡率だけUtilityは悪化するが、もし、死亡率を半分にする効果があるならば、Utilityは309,833人となる。これだけの人が救われていた結果となる。If there is no efficacy, the Utility will go down for the mortality due to side effect however, if the medicine can reduce mortality down to half, Utility will be 309,833 people. Means this much people's life could have been saved.


感染初期から服用し、重症化による入院を防ぐ薬の場合、病院という環境下では、RCTはやりやすいが、対象となる感染初期患者はいない。一方、町医者の外来ベースでのRCTは人道的側面もあり困難だ。このため、そのような薬の外来ベースの感染初期から服用した場合のRCTは行われてこなかった。RCT is easy in hospital setup while there is no patients for a type of medicine that patients take from very early stage then works to prevent getting serious enough to be hospitalized. Hence RCT has not been done for those medicine that is dosed on outpatient basis from inception of infection.

町医者の成功例を信じていいのかという批判もある。薬効は人間を対象としているので、地域によって健康状態、年齢分布、免疫特性は異なるだろうから、一人の医師の成功例では何とも言えないだろう。ところが、世界中で数百人から数千人単位の成功例が報告されると、単なる偶然とは言い難いだろう。 There is a criticism that if we can believe in success claim by local clinic doctors.  Efficacy is human dependent, hence health, age, immune profile may differ from region to region, hence success story of one doctor may not mean that much. However, if we see hundreds of thousands of success cases coming from all over the world like Tsunami, no one can say that it happened by accident.

2020年7月31日金曜日

ディスククローンを始めてやってみた Tried Disk Clone for the 1st time

ディスククローンを始めてやってみた

 Tried Disk Clone for the 1st time




クラッシュしたノートブックのディスクをdiskpartでcleanした後、完全フォーマットして再生して使っていたが、原因不明のハードウエアクラッシュが間欠的に発生するため、仕方なく新たな中古2.5インチHDDを購入した。I have been using restored HDD after it crushed in my notebook PC by doing diskpart&clean, then complete format however, I have been experiencing sporadic hardware crush once in a while. So I decided to give up finally and purchased another 2nd hand 2.5inch HDD.

いつも新規HDDを利用するときは、Win10をインストールして、更新して、ソフトを入れ直して、と、膨大な時間を要するが、今回初めてディスククローンを利用してみた。Normally it takes forever to restore new PC from scratch starting from Win10 installation, update application and reinstallation of software however, this time I tried disk-clone for the 1st time.

ターゲットディスクはGrovy HDD --> USB SATAを利用してラップトップにUSB接続。New disk was connected to laptop PC through Grovy HDD --> USB SATA.

まず、Google検索して、無料版のAOMEI Backupper Standardを選択。インストール後、クローン - ディスククローン を 選択し、元ディスクと、ターゲットディスクを指定すると、1時間ぐらいかかってクローンは完了。1st, did google search to find free tool AOMEI Backupper Standard. After installation, chose clone - disk-clone and specified original disk and target disk. Took 1 hour to complete.

ディスクを入れ替えて、再起動。いつもより起動時間が掛かり、あーこれはダメかも、と思ったが、ちゃんと起動!sfc /scannowもOKで、ソフトのライセンス等、まったく問題なく動作した。ありがとう!Replaced HDD and rebooted PC.  Reboot took longer than usual and I felt that it might not work. However finally it worked fine. Done sfc/scannow and no problem Software license and others also had no issue. Thank you!






2020年7月26日日曜日

AI 株価予測 20200722 の状況8306MUFG Stock Price AI Forecast - 20200722 Status 8306MUFG

AI 株価予測 20200722 の状況8306MUFG

 Stock Price AI Forecast - 20200722

 Status 8306MUFG


[前回予測20200717Previous forecast


注)この投稿はあくまで個人メモです。記事に基づく実際の投資は一切行わないでください。
Caution) This is only for my memo.  Never make any actual investment based on this post.

週末4連休のため、今週の週足は3営業日分だ。新値の更新はなく、結果、新値予測に変化はない。きれいなレンジに入っているが、400を下抜けする可能性も大きいだろう。Due to 4 day long weekend, weekly chart is only for three days. There is no change on three line break, hence no change on forecast. Chart looks getting into beautiful range trading but can break 400 sometime.


市場全体は、上方ウエッジを形成しているが、ここから上に突き抜けるには、なにか大きな材料が必要だろう。Whole market is creating upper wedge but may need big news to break through upward.


一方、コロナ禍への対応は未だ決め手を欠いている。Meanwhile, there is no clear cut solution for Covid-19 yet.

一時ゲームチェンジャーと言われたヒドロキシクロロキンについてTrumpは口にすることもなくなった。ヒドロキシクロロキン推進派だったPeter Navarroは反対派Fauciを糾弾したが、驚いたことにTrumpに梯子を外される結果となった。Hydroxychloroquine that was called as game changer one time is not coming from Trump anymore. Hydroxychloroquine supporter Peter Navarro challenged Fauci however, amazingly, now lost support from Trump.

相当数購入してしまったレムデシビルの活用と、ワクチンの早期完成を期待し出したと想像されるが、具体的な死者数激減に結びついてこないと、11月の選挙効果は期待できないだろう。国内の大量のヒドロキシクロロキンを開放するだけの話だが、Fauciとの関係を考えて実行できないのだろう。反トランプ派にとっては朗報だろうが、処方されれば助かっていた感染者のことを考えると無念としか言いようがない。Probably this is due to the calculation to make use of Remdesivir already purchased as well as expectation to the early completion of vaccine development however, unless we see drastic reduction of death toll, positive impact to Nov election cannot be expected for Trump. It is a good news for anti-Trump but feel very sad if think of patients  passed away without getting proper dosing of cure medicines.

ヒドロキシクロロキンはコロナ病状の進行度に拘わらず有効な特効薬ではなく、非常に初期に服用することで重症化を防ぐ機能を持つため、外来ベースでの利用が主となる。このため、感染初期の患者の、外来ベースでのランダム化治験(RCT)が困難で、今まで行われていない。RCTは、有効な治療法として認知されるために必要な標準手法だ。Hydroxychloroquine is not a miracle medicine that works irrespective of the stage and condition of patients but works well if taken from early stage to stop getting into serious condition. Hence outpatient treatment is the main stream. Due to this nature, randomized clinical trial(RCT) is difficult for outpatients in early stage, hence not done yet. RCT is an important standard methodology to judge the cure to be effective.

ただ、外来ベースでの成功事例は積み上がり続け、現在世界中で多くの患者、医師、研究者、政治家の支持が高まっている。今後、コロナ対応の主流となれば、経済全面再開も可能であり、コロナ禍は早急に終息するはずだ。Nevertheless the success story for outpatients have been piling up and currently many patients, doctors, researchers and politicians are supporting it. From now, if it becomes the major treatment for Covid-19, we can open the economy just like before and Covid-19 damage will be recovered soon.

現在、ワクチンが急ピッチで開発されているが、変異の早いウイルスへの有効性を保つのは困難だろう。重症化してからの死亡率がデキサメタゾンなどのステロイド系薬剤で激減しているが、コロナの後遺症は激しいようで、そもそも重症化させずに治療する方法が最も良いと考えられる。Currently vaccines are developed quickly but will be difficult to keep efficacy against virus that keeps mutating constant. Death toll for patients in serious conditions are drastically improving due to steroid medicine such as dexamethasone but due to sevier sequelae of Covid-19 in general, the best way is not to let the patient go into serious condition in a 1st place. 

2020年7月20日月曜日

AI 株価予測 20200717 の状況8306MUFG Stock Price AI Forecast - 20200717 Status 8306MUFG

AI 株価予測 20200717 の状況8306MUFG

 Stock Price AI Forecast - 20200717

 Status 8306MUFG


[前回予測20200710Previous forecast


注)この投稿はあくまで個人メモです。記事に基づく実際の投資は一切行わないでください。
Caution) This is only for my memo.  Never make any actual investment based on this post.

新値の更新はなく、結果、新値予測に変化はない。一気に下値を抜ける感じではなく、下降トレンドの下値抵抗線で反発している。There is no update of breaks, hence there is no change on forecasts. It does not look like going down all at once but bounced at the bottom resistance of downward trend.


市場全体は緩やかな上昇トレンドにあり、上方ウエッジを形成している。Market is on gradual up-trend creating upper wedge.


米国はさらに300兆円相当のコロナ経済支援を行うようだ。都合、500兆円規模となり、これは米国GDPの25%となる。この日本のGDPと同等な米国財務省証券(UST)の発行はFEDのバランスシートの膨張につながり、いよいよMMTの様相を呈してきた。QEのテクニックで凌げるであろうが、さらに未知のゾーンに入ってきた感は否めない。US is going to have another government financial aid up to JPY300tr equivalent. Total government aid will be around JPY500tr level, that is almost 25% of US GDP. This UST issuance almost equivalent to Japanese GDP is financed by FED's balance sheet, hence started look more like MMT now. This can be handled by QE technique but cannot deny that we are getting into another "twilight zone".

一方、コロナ治療薬の世界展開は未だ果たされていない。ただ、世界が理解すれば、今回のコロナ騒動は一気に終息に向かうと考えられる。Meanwhile, no global perception of Covid-19 cure medicine is yet recognized by world. However, once whole world recognize it, current Covid-19 will go extinct all at once.

2020年7月14日火曜日

人類を救う、僅かばかりのお手伝い A Little Assistance To Save Human Kind

人類を救う、僅かばかりのお手伝い A Little Assistance To Save Human Kind


日本は蚊帳の外だが、今世界で吹き荒れているコロナ治療薬についての人類の内輪もめについては既に述べた。今、多くの医師、研究者、ジャーナリスト、政治家が、安価でコロナに効果のある薬剤を何とか世界、国レベルで認証させられないかと努力している。その中に、早期からNYでその処方の有効性について気づき、全米展開するべく大統領にも進言してきた医師がいる。Although Japan is totally out of it, as touched on it earlier, currently medical treatment conflict storm is blowing globally among human being. Lots of doctors, researchers, journalists and politicians are working hard to make that medicine approved on national and global level that is cheap and effective against Covid-19. Among those, there is one doctor who recognized the efficacy of that treatment in NY and proposed US President to make it nation-wide treatment protocol.

その医師が月初に自らの論文を発表した。その薬は重症化してからでは無効だが、外来の. 初期から処方すると、ほぼ、重症化して入院することを防ぐことができる。今日の朝、Twitterを見ると、その論文のプレスリリースの日本語版の翻訳を募集していたので、さっそく翻訳して送ったところ、そのまま日本語版として本人からリリースされた。The doctor released his own study early this month. The medicine is not effective after getting serious however, if taken from inception, can avoid getting serious enough to be sent to hospital. This morning, it Twitter, I saw his request asking translation of press-release into Japanese, so I translated and sent, then it was released almost immediate from himself as Japanese version.

いつも、その薬の動向をウオッチしているだけで、事態の展開の遅さにじれったく思っているだけだったが、僅かばかりでも手伝いができたことは良かった。 I have always been watching how things are going around the medicine and feeling tantalizing for slow transition of the situation, hence it was good that I could help even a little bit to promote things going ahead.

ただ、その薬は日本では過去に悲惨な薬害があり、すんなり日本国内で承認されるとは考えられない。However, as far as Japan concern, due to sad Phytotoxicity in the past, it will be unlikely that the medicine will be approved straight forward.

インターネットの時代、ボトムアップのエネルギーが、臨界点を超えるのを期待したい。真実は一つだ。押さえつけ続けることは不可能だ。ただ、遅れることによって、この瞬間にも死者数が積みあがっていく。死んだ命は戻らない。This is an internet era. The bottom up energy is expected to go over the critical mass soon. There is only one truth in the world. It is impossible to keep hiding it. However, even at this moment, death toll is piling up due to the delay of the deployment of such effective treatment. Dead people will not come back. 

2020年7月13日月曜日

AI 株価予測 20200710 の状況8306MUFG Stock Price AI Forecast - 20200710 Status 8306MUFG

AI 株価予測 20200710 の状況8306MUFG

 Stock Price AI Forecast - 20200710

 Status 8306MUFG


[前回予測20200703Previous forecast


注)この投稿はあくまで個人メモです。記事に基づく実際の投資は一切行わないでください。
Caution) This is only for my memo.  Never make any actual investment based on this post.

新値の更新はなく、結果、新値予測に変化はない。下降トレンドが継続中であり、380円を割れて新値の更新もあるだろう。銀行業は緩和の継続が収益の足かせになる。加えてMUFGについてはインドネシアなどの銀行買収の値洗いによる減損もきつい。今期以降の減配の可能性もあるだろう。There is no revision of three line break. As a result, there is no change on forecast. Down trend is still on going, making JPY380 level break as realistic. Banking industry's profit is dragging monetary easing. Plus MUFG is suffering from MTM loss from acquisition of Indonesian bank. There is a possibility of dividend cut from this term.  


マーケット全体はまだ高値持ち合い状態だ。Market as a whole is still holding high level. 


企業業績は落ち込むことは必至だが、経済対策との綱引きが続く。Industry performance will go down for sure supported by economic aids by government.

コロナは、ブラジル、テキサス、フロリダで感染者・死者とも増加している。残念ながら現状では、ヒドロキシクロロキンによる感染初期からの治療法は行きわたっていないようだ。現在の社会のねじれ現象が早期に復旧することを願うばかりだ。Both number of infections as well as death toll is increasing in Brazil, Texas, Florida. Unfortunately, Hydroxychloroquine remedy from early stage of infedction looks not well spread. I wish current distortion of society will go back to normal soon. 

2020年7月9日木曜日

なぜ、日本のコロナの被害が少ないか? Why Covid-19 Mortality is Low in Japan?

なぜ、日本のコロナの被害が少ないか? Why Covid-19 Mortality is Low in Japan?


なぜ、日本などアジアの国はコロナの被害が少ないのか、世界中で不思議がられている。私もその一人だったが、今朝TV(羽鳥慎一モーニングショー 2020年7月9日)で児玉龍彦教授の学説を聞いて、多分これだろうなと思った。World wonders why damages from Covid-19 are significantly smaller in Asian countries including Japan. I was one of them but I just saw one probable reason on TV program(Shinichi Hatori Morning Show 2020Jul9) this morning where Prof. Tatsuhiko Kodama explained his finding as well as theory. 

児玉教授はIgGとIgMというコロナの抗体の感染後の血中濃度の推移を日本の感染者について調べた。通常、感染経験が無い場合、IgMが最初に、IgGが後から高くなるが、多くの日本人感染者はIgGが先に高くなり、過去の感染経験を示した。Prof. Kodama followed blood concentration transition of Covid-19 antibody IgG and IgM for Japanese patients after infection. Normally, if not infected before, IgM concentration comes first followed by IgG concentration. However, most of infected Japanese patients showed IgG hike before IgM, indicating the previous infection. 

IgMが先に高くなった人たちは重症化したが、IgGが先に高くなった人は重症化しなかった。Those who showed IgM hike earlier ended up with severe symptoms however those with higher IgG in the beginning did not get into serious condition. 

どうやら、日本人など、アジア諸国は、毎年の行事のようになったインフルエンザの攻撃により、多くの人が交差免疫を取得していたようだ。Looks like, Asian countries including Japan already got cross-immunity due to annual persistent attacks by influenza. 

ただ、現時点では、これは学説の様で、被害が大きかった欧米諸国の調査が行われないと確証は得られないだろう。また、今後を保証するものでは全くないことは言うまでもない。However at this point, this is still in the stage of one theory, since no study has been done for US and European countries that were most hard hit. Also need to note that, as TV program says, this will not guarantee anything going to happen in the future. 

2020年7月5日日曜日

AI 株価予測 20200703 の状況8306MUFG Stock Price AI Forecast - 20200703 Status 8306MUFG

AI 株価予測 20200703 の状況8306MUFG

 Stock Price AI Forecast - 20200703 Status 8306MUFG


[前回予測20200626]Previous forecast


注)この投稿はあくまで個人メモです。記事に基づく実際の投資は一切行わないでください。
Caution) This is only for my memo.  Never make any actual investment based on this post.

月末を経過したが、新値の更新はなく、結果、予測に変化はない。トレンドは、上昇レンジを割り下降に入った。当面400円が一つのめどになるだろう。配当の半減などの決定があれば、直近底値の380円を切ることもあるだろう。Passed month end but there is no change on three line break, hence there is no change on forecast. Now on down-trend breaking lower range of up-trend. For a mean time JPY400 is a milestone point. If there is announcement for dividend reduction, it may break latest bottom of JPY380 also. 


一方、市場全体はコイルを形成している。経済再開に伴い日次感染者は増えているが日次死亡者は増えていないこと、巨額の経済対策などをプラス材料に、広範な実体経済ダメージとの綱引きが続く。Meanwhile, market is creating coil form. Currently daily infection is increasing but not daily death. Together with huge economic aid, market will keep going back and forth seeing extensive damage to the real economy. 


ワクチンはいろいろ取りざたされているが第二波に利用できるかどうかは明確でない。一方、ヒドロキシクロロキンは多くの研究で支持を集め、各国の政府機関、国際機関による度重なる否定をはねのけ、早期治療の標準となる勢いで、今後の死者数激減と、経済完全復活が期待される。Lots of vaccine are now checked but it is not sure if it can be effective for 2nd wave. Meanwhile, hydroxychloroquine is supported by lots of studies and has momentum to become standard early treatment for Covid-19 breaking through the rejections by national as well as international organizations. From now on, I expect major reduction of death toll followed by total recovery of economy. 

2020年7月2日木曜日

今、世界で起きているコロナ治療薬ドラマの今後 Future of Covid-19 Cure-Medicine Drama Happening Right Now

今、世界で起きているコロナ治療薬ドラマの今後
Future of Covid-19 Cure-Medicine Drama Happening Right Now



コロナという人類共通の敵により50万人もの人が亡くなる状況を前にして、人類がかくも非生産的な内部抗争を繰り広げるとは、まったく想像もつかなかった。人類は一丸となってウイルスと闘うと信じていた。Facing global death toll of 500K by human-kind's common enemy Covid-19, I never imagined that such an unproductive internal battle can be extended among humans. I believed that human kind is smart enough to be united to fight against the virus.

しかし、私はあまりにもナイーブだった..But I was too naive.

現在、ワクチンの開発が急がれている。ただ、開発には時間がかかり、またウイルスも変異するため、即時性と効果に問題はありそうだが。Currently people are rushing to develop vaccines. However, it takes time and virus transforms also, hence its readiness and efficacy are in question though.

一方、既存の薬の適用外処方も行われている。いくつもの効きそうな薬の中で、過去何十年も利用されてきたある既存薬の有効性は早期から浮上していた。感染初期から利用した場合、重症化をほぼ防止できるようだ。Meanwhile, many study off-label use of generic drugs. One drug has been identified as promising from very early stage with history of usage over decades. If taken from inception, looks it can prevent patients to get worse to go hospitalized.

ところが、その適用外処方薬の全面的な採用は、政治闘争と、また、新薬を売らないと儲からない勢力により組織的に妨げられてしまった。However the off-label use of the medicine was blocked by organized sabotage by those who live on selling drugs, as well as by the political confrontation.

現在、その薬を推進しようとする勢力と阻止しようとする勢力の間で熾烈な戦いが進行中だ。相対する片方が薬を奨励すると、もう片方は阻止する。利害関係者はその薬が効かないとネガティブキャンペーンをしているが、そのやり方は、医療とはかけ離れた、信じがたい、口にするのも恐ろしい、目を覆うものだ。Currently fierce battle is going on between promoters and blockers. All stakeholders(blockers) have been extending negative campaign saying the drug is useless, even dangerous however, their way of campaign has been far from medicare, unbelievable eyes covering insanity, frightening and even too scary to talk about it.

言語の障壁もあり、この現在グローバルに展開されている戦いから、日本人は隔絶されている。過去の薬害の記憶も関係しているだろう。また、日本では有望とされた適用外処方薬が同様な流れで脇にそれてしまったことは記憶に新しい。Japan has been disassociated with this globally extending battle probably due to language barrier, or due to past memory of phytotoxicity. Besides, it is quite recent that Japan-version of off-label use Covid-19 medicine was set aside in the same manner.

ただ暗い話ばかりではない。But there is always a hope.

現在、米国、フランス、ブラジル、中国で、効果ありとする論文が世界中で増え続けており、いかに世界機関、国家機関を通して押さえつけても、その影響力は間もなく臨界点を超えると思われる。Currently, in US, France, Brazil and China and elsewhere, we are seeing number of studies telling the efficacy of the medicine, hence irrespective of sabotages by international organization or national organizations, the collective influences will reach up to a critical mass very soon.

今後の予測として、早々に、適用外処方薬の有効性が広く世界に認識、合意形成されるところとなり、結果、死者は激減、コロナは普通の風邪レベルになるだろう。また、これらの適用外処方薬は概ねRNA合成阻害タイプのため、ウイルスの型が変異すると効かなくなるワクチンより優位性があると考えられる。The forecast from now. Sooner or later, the efficacy of the off-label use of the medicine is going to be well known consensus world-wide, as a result, death toll will go down drastic, and Covid-19 will be like normal flue after all.  Also, most of off-label use of medicines are RNA synthesis inhibitor in nature, they have advantage over vaccine that will lose efficacy in general as virus keeps mutating.

このため、経済活動はすべて再開となり、また、第二波も心配することなく、経済ダメージも最小となるだろう。As a result, all economic activities will be resumed back to normal and also will be no worry for the 2nd wave together with the minimization of economic damage.

この悲惨な物語は、未来永劫に語り継がれることになるだろう。そして、人類にとって、その締めくくりは、医療に関するグローバルな制度改革であるべきだ。This sad story will be handed down generations forever. And conclusion of it should be the global reform of medicare system.

2020年6月28日日曜日

AI 株価予測 20200626 の状況8306MUFG Stock Price AI Forecast - 20200626 Status 8306MUFG

AI 株価予測 20200626 の状況8306MUFG

 Stock Price AI Forecast - 20200626 Status 8306MUFG


[前回予測20200619]Previous forecast


注)この投稿はあくまで個人メモです。記事に基づく実際の投資は一切行わないでください。
Caution) This is only for my memo.  Never make any actual investment based on this post.

新値の更新はなく、結果、予測に変化はない。レンジに入った感じもするが、NYの動向次第だろう。米国の金融株は、増配を規制されるようだ。MUFGは現状で配当利回りは5-6%だが、今後、貸倒引当増加などの情報も出てくるだろう。There is no change on three line break, hence there is no change on forecast. It looks chart has got into range trading but will be up to NY movement. US financial stocks are going to get restriction on dividend increase. Current MUFG's dividend yiled is 5-6% however, we may see write off increase going forward. 


日経平均は窓埋め後下降トレンド入りか。Nikkei looks on down-trend after filling chart break made earlier. 


世界のコロナ感染は経済再開後の第二波が再開しているようにも見え、NYの下落の要因にもなっている。World Covid-19 infection looks getting into 2nd wave after reopening of economy and is the reason for NY-Dow drop. 


今後も、第二波、大統領選、米中摩擦、などのマイナス要因と、無制限の経済支援バブルなどのプラス要因の綱引きが続きそうだ。From now on, market will go back and forth depending on minus factors such as 2nd wave, Nov election, China friction and plus factors such as bubble caused by unlimited financial support by government.

2020年6月25日木曜日

日銀の国債保有の内訳。 買い切り?それとも現先・レポ? Is JGB in BOJ's B/S, Outright Holding Or Repo? [2023/07/05 Amended ]

日銀の国債保有の内訳。
買い切り?それとも現先・レポ?
Is JGB in BOJ's B/S, 
Outright Holding Or Repo?

異次元金融緩和で600兆円になり、さらにコロナでさらに増加しようとしている日銀の貸借対照表(上表)の国債。The BOJ balance sheet(above table) is showing JPY600tr sizie due to QE(Quantitative Easing) and now it is further increasing in size by Covid-19.

このバランスシートを見ると、日銀は当座預金で得た資金400兆円と、日銀券発行分100兆円で、国債500兆円を購入したと読める。If you look at this balance sheet, you can read that BOJ purchased JGB JPY500tr funded by central bank note issuance JPY100tr and current account deposit JPY400tr.

ところが、この構造の意味に対して疑問を抱く人が多い。However, many people wonder or question on the real meaning of this structure.

この国債は一体日銀が買い切りで保有しているのか、それとも、現先・レポで、短期的に保有してロールしているだけなのか。また、その財源は当座預金だが、この資金は民間からの預け金なのかそれとも技術的に表示されているだけで実際は違うのか。会計的にはこう書かれているけれど、これはあくまで会計上のことであって、等々。Was this JGB bought on long term holding basis, or on short term basis through repo? Or funding was done from current account however, this fund is really from public sector or it is just shown technically as such but reality is different? Accounting description can be this way but this is only in the accounting world but reality is different, etc, etc.

疑問を抱く人たちは、現先・レポによる公開市場操作による国債の取得を考えているのかもしれないと私は考え、ここで、現先・レポの場合の貸借対照表の現れ方について触れたい。I imagined that those who have question may think of repo based open market operation to buy JGB, so here I wish to touch on the balance sheet presentation in the case of repo.

答えは非常に単純だ。The answer is quite simple.

日本の会計基準では、現先・レポは現金の貸借のみを表示し、国債は表示しないのだ。国債は現先・レポ取引が始まる前の所有者の貸借対照表上に留まるわけだ。In Japanese accounting standard, repo is presented as money lending/borrowing only but JGB will not be shown. JGB will stay on the owner's balance sheet as it resides before the repo transaction.

よって、タイトルの質問、「この国債保有残高の内、買い切りはどのくらい?現先・レポはどのくらい?」への答えは、買い切り100%、現先・レポは0%である。Then, for the answer to the question in the title, 'Is JGB in BOJ's B/S, Outright Holding Or Repo?', the answer is 100% outright holding, 0% Repo(precisely, should say reverse repo).

リーマンショック以来、日銀は本当に民間資金を元手に国債を買っているのだ(**)。貸借対照表は日締め(一日の終わりに締めた状態)を表し、日中で完結する取引は表示されない。貸借対照表に表示されているということは、民間資金の当座預金は確実に日銀に貸し出した状態で夜を越していることを意味する。After Lehman shock, BOJ has been really purchasing JGB funded by private sector money(**). Balance sheet shows end of day status, but not intra-day transactions. If presented in the balance sheet, it means that private sector's money really stayed overnight at BOJ.

[2023/07/05 Start of Amendment ]
(**)正確には、民間資金を調達して買っている訳ではなく、信用創造が行われている。(**)Precisely speaking, BOJ is not getting money from private banks but new money is generated by BOJ to fund for purchase of JGB.
[2023/07/05 End of Amendment ]

貸借対照表は当座預金の資金で国債を買っている状態(ON)で夜を越したことを明示しており、「でも、実際はこれと違う」ということはない。Balance sheet shows that JGBs are bought funded by the current account money on overnight basis(ON), hence no one can say that 'reality is not like this'.

2020年6月24日水曜日

コロナ経済支援ー中央銀行の自信と限界 Covid-19 Financial Aid - Central Bank Confidence and Limitation

コロナ経済支援ー中央銀行の自信と限界 Covid-19 Financial Aid - Central Bank Confidence and Limitation


コロナにより止まる経済。The economy stopped by Covid-19.

これを救うために世界の出した解は単純明瞭。失われた消費Cを政府支出Gで補うというものだ。Global answer to save, was simple. That was to support missing consumption C by government spending G.

そしてその原資は国債発行だ。ただ、昔と違うのは、国債を引き受ける中央銀行は、原資には銀行預け金を用い、紙幣を絶対に印刷しないことは以前に触れた。And the funding is done by issuing government bonds. As I touched before, one thing different from ancient time is that funding to purchase government bond is done by bank deposits but not by printing central bank notes.

政府支援に加え、中央銀行は格付けの低い社債まで無制限に購入して企業をサポートする。倒産した場合の損失は、政府支出となり、国債発行で穴埋めされることになる。On top of government support, central banks extend unlimited purchase of even the lower credit corporate debts to support firms.  Once going bankrupt, the loss will be charged to government expenditure funded by new government issuance.

この、MMT的な枠組みはしかし、無制限に行うことはできない。This MMT like framework however, cannot be done forever.

ここで、破綻シナリオを考える。Here we think of catastrophic scenarios.
  • 何らかの理由で政府への信認がなくなり、政府の格付けが落ち、銀行預け金が中央銀行から逃避した場合、次の2つの場合が考えられる。If for some reason,  government lost credibility, followed by downgrade and bank deposit run away from central banks, there are two cases, 
    1. 保有国債を売却するが、国債暴落が金利高騰を招き悪循環となる。Government bond holding will be sold but this triggers interesting rate hike followed by vicious cycle. 
    2. 売却をせず、かわりに紙幣を発行すると、今度はインフレを招く。Do not sell the holding bond but issue central bank notes and invites inflation
  • 国債残高が際限なく増え続けた場合も、どこかの段階で破綻が訪れると思われる。現状、国債残高はGDPの2倍、税収の20倍、プライマリーバランスは未だマイナス、公債依存度3割だ。When government bond balance increase infinite, at some point we will fall into catastrophe. Currently government bond balance is twice as big as GDP, 20 times tax revenue, and primary balance is still negative and national budget depends on government bond issuance for 30%. 
今後も、薄氷を踏むような金利操作により銀行預金をバランスシートに留まらせつつ、国債消化を支援する体制が継続するだろう。コロナが早急に終息し、経済が復活し、各国の中央銀行がバランスシートの縮小に向かえることを願う。Even from now, delicate interest rate manipulation will keep bank deposit on balance sheet to support digestion of new government bond issuance. We all wish that Covid-19 will end and economy recovers. Then each central banks can go ahead for balance sheet shrinkage phase. 

2020年6月23日火曜日

マイナンバーカードで変わる社会 My Number Card Changes the Society

マイナンバーカードで変わる社会

My Number Card Changes the Society


 マイナンバーカードを受け取った。1年ほど前に電子申請したが、当時は申請受付番号の連絡メールも送られないシステムで、1か月後に問い合わせしても申請の事実はないと言われる始末だった。最近になってもう一度試してみたところ、今度は申請受付番号の連絡メールが来た。システムを改善したようだ。Just got My Number Card( Social Security Number). I requested one year ago electronically however, the request system was poor enough not to be able to issue request number to applicants. I waited one month and made confirmation to find out that there is no request made.  I tried recent and this time system was improved to return request number.

 現在のところ、実質的にはカードを配布しただけで、その実際の利用は限られているため利便性は殆ど無い。日本ではマイナンバーの全面活用には全方面からの抵抗が大きい。合理化は仕事を減らすし、情報が犯罪に利用された場合、その被害も大きくなる。戦争で赤紙を受け取った国民は拒否反応が遺伝子に刷り込まれているという話もある。At this point, there is no advantage to obtain the card since its use are limited except the fact that the card was distributed. There are big resistance from all aspects for the extensive use of My Number in Japan. That is because efficient system will reduce works, and if information is abused, the damage will go bigger. Someone also explains that citizens who got war warrant in history are inheriting genetically to go allergic to the national serial numbers.

 一方、国家統制が強い中国などは一気に展開できその恩恵をいち早く受けることでさらに競争力を増す。Meanwhile, a country with strong control such as China, can extend the use very quick hence can enjoy the benefit to increase its competitiveness.

 高度にデジタル化、国際化されてきた社会において、通し番号なしに社会システムを維持管理するのはあまりにも時代遅れで、相対的に非効率だ。既に下落の一途である日本の国際競争力の足を更に引っ張りかねない。In a highly digitized and global society, it is too outdated and relatively inefficient to manage society without serial number. Such avoidance will further accelerate already declining Japan's global competitiveness.

 今後、紆余曲折はあるものの、下に列記した分野を始め、あらゆる分野にマイナンバーは浸透していくべきだろう。その効果は弊害を補って余りあるものがあるはずだ。Going forward, with back and forth, My Number will go through whole area including below. And its benefit should surpass the downsides.

行政効率化Efficient Government:不動産登記Real Estate Perfection、税務Tax、健康保険Health Insurance、年金Pension、出入国Immigration
医療Medicare:医療履歴管理、共有Medicare history tracking&sharing
金融・資本市場Money&Capital Market:中央銀行デジタル通貨決済Settlement By Central Bank Digital Currency

2020年6月22日月曜日

コロナが問う巨大都市の存在意義 Covid-19 Questions Existence of Megalopolis

コロナが問う巨大都市の存在意義

Covid-19 Questions Existence of Megalopolis



コロナは「都市」の意義を問い直し、「都市」を再定義をする良い機会にもなってきている。テレワークが主流となると、もう人は都市に必ずしもしがみつく必要はない。Covid-19 gave us good opportunity to reconsider the reason for existence of CITY to redefine what that is. Once remote-work becomes popular, there is no need to stick to city anymore.

都市の魅力は高度な情報の集約性がもたらす効率性だ。すべての経済主体が揃い、直接相手と会っての交渉が可能だ。同時に都市には、インフラが整い、繁華街、商店、文化施設が集中し、人間の交流の場ともなっている。そして、都市の周辺には居住地区が広がる。The attraction of CITY is the efficiency from high concentration of information. All economic entities are there, and can make direct face to face negotiation. At the same time, CITY is well equipped with infrastructures, busy downtown, shops and cultural spots where we can also enjoy socialization and interactions.

これが、太古の昔から続く、大なり小なり同様な、都市の形だ。未来を予想するはずの、空想科学小説にも、ただ広大で複雑な都市が広がる未来が描かれ、読者も皆納得している。未来の都市はこうなるのだ、と。This is the typical picture of CITY more or less since very ancient times. Even in the science fiction, that is supposed to forecast future, just vast and complex cities are described and readers are well satisfied.

ところが、コロナはそんな平板な未来観を消し去ってしまうかもしれない。テレワークが究極まで進んだ果てには、都市の形はどうなるのだろうか?仕事が世界中どこでも可能だと分かった人たちは、一体どこで生活しようと思うのだろうか?However, Covid-19 may wipe away such plane-vanilla futuristic view. How then, the future CITY will look like after remote-work goes ultimate point. If people aware that his/her work can be done where-ever in the world. where those people wish to have living?

大雑把に考えて、東京のオフィスはどうしても人対人の接触が必要な業務を残して1/10ぐらいに減少するだろう。通勤が不要になった9割の人は、より自然の多い場所へ引っ越すかもしれないし、都市が好きで居続けるかもしれない。Very roughly, the office in Tokyo are will reduce to 1/10 leaving staff who really needs physical human interactions.  There rest 90% of employee who no more need to commute, may move to more country side with nature, or may love to stay in the CITY.

コロナは災厄だが、それが通り過ぎた後には、多くの良い変化も起こりそうな気がしてならない。Covid-19 is a calamity however, after it passed away, many good things may happen, I feel.



首都機能バックアップとコロナ Backup Capital and Covid-19

首都機能バックアップとコロナ

Backup Capital and Covid-19



災害危機時の代替都市の必要性は懸案事項だった。Backup city at the time of disaster crisis has been always a concern.

地震、津波、自然災害はいつどのようにして来るかわからない。このため、会社でも、災害時の代替拠点を作り、定期的に予行演習を行うことで、災害時の業務継続計画を立てた。You never know when and how natural disaster will come such as earthquake or Tunami. Hence disaster time business continuity plan was established and has been tested periodically through fire-drills.

ところが、コロナはこの考え方を一変させた。コロナによるテレワークで業務遂行が可能になった時点で、会社の業務には物理的なオフィスはサイバースペースに取って代わられたと言って良いだろう。インターネットなどのIT技術がサイバースペースですべてを完了することができるレベルに到達した結果だ。However Covid-19 changed these whole setup all of a sudden.  At the time when remote-work was found out to be feasible as tested through Covid-19, we all aware that, the physical office space for cooperate process was almost taken over by cyber-space. This is the result of IT technology, such as internet, that was developed to the level to make whole office process complete in cyber-space. 

サイバースペースのバックアップは通常、全世界的に行われる。長野のデータセンターのバックアップは米アリゾナ、豪メルボルンという具合だ。さらに社員が各地に散らばることで危機時の全滅を防ぐことができる。The backup of cyber-space is done globally normally. This is just like, Nagano data center's backup is done in Arizona, USA, or Melbourne, Australia. Furthermore, by scattering the residential location of employees, we can avoid to lose the whole team members at the same time during crisis time.

日本の弱点は、地震などの天災が多いのに、すべてが東京に一極集中していることだった。ところが、コロナによる業務のバーチャル化は、図らずして、この日本の弱点を消し去ってくれる。The weakness of Japan was Tokyo concentration although Japan has lots of natural disasters such as earthquakes. However, Covid-19 oriented virtual transformation of business process looks unintentionally wiping out these weak points. 

コロナ・テレワークと都市型CMBS(商業用不動産担保証券)の行方  Covid-19 Remote-Work and the Future of Metropolitan CMBS(Commercial Mortgage Back Securities)

コロナ・テレワークと都市型CMBS(商業用不動産担保証券)の行方 

Covid-19 Remote-Work and the Future of Metropolitan CMBS(Commercial Mortgage Back Securities)



コロナでは感染防止に多くの企業がテレワークを余儀なくされた。当初、多くの不都合が予想されたが、結果は、かなりのオフィス作業はテレワークで完了するというものであった。Covid-19 forced many firms to exercise remote work. Initially, many expected lots of troubles but the result was different, showing that significant part of office jobs can be completed by remote-work. 

共有ドライブ Shared Drive
テレビ会議 TV conference
メール Mail
オンライン文字会話ツール On Line Text Conversation Tool

実際、オフィスで仕事をしていると、一日中、メール、電話、データは共有ドライブにセーブして終了。会議はたまにあるが、これは実際、電話、またはビデオ会議で事足りる。As a matter of fact, while you are in the office, during days, you do mail, phone and save data onto shared drive. You have meeting once in a while but most of them are done on call conference or video conference basis. 

今回のコロナを機にオフィススペースを縮小、返上する企業も出てきた。この世界的現象はIT・金融に留まらず、さらに拡大しつつある。Some companies reduced or totally returned office space taking this Covid-19 opportunity. This global trend is not just limited to IT and Finance but expanding further. 

こうなってくると、都市の中心に高額の賃料を払ってオフィスを構える必要は減退し、ひいては都市型オフィスの不動産価値の下落に、ついては都市型オフィスを多く組み入れるタイプのCMBSの下落につながる可能性も出てきた。Facing this, there will be the lesser needs to have office at the center of the city paying high rent, with consequence of price down of metropolitan office real-estate price, then eventually, the lower price of CMBS that holds metropolitan area offices.




2020年6月19日金曜日

AI 株価予測 20200619 の状況8306MUFG Stock Price AI Forecast - 20200619 Status 8306MUFG

AI 株価予測 20200619 の状況8306MUFG

 Stock Price AI Forecast - 20200619 Status 8306MUFG


[前回予測20200612]Previous forecast


注)この投稿はあくまで個人メモです。記事に基づく実際の投資は一切行わないでください。
Caution) This is only for my memo.  Never make any actual investment based on this post.

 先週の相場急落が若干戻った。新値チャートに変化はないため、新値AI予測には変化はない。日、週、月とも下落を予測だ。日足が再度400円を下回り下値の新値を更新すれば日、週、月すべての予測が的中する方向となるが、それは、日経平均の2番底を示唆する。The market went up a bit partially filling up the drop of last week. There is no change on 3LB(Three Line Break), hence there is no change on AI forecast.  All forecast another drop for daily, weekly and monthly.  If daily breaks resistance level JPY400 once more to revise 3LB downward, day/week/month forecast will all be realized but it implies 2nd bottom of Nikkei225.


 NYも日経平均も先週までの勢いは無く、ここから先の上昇は新たな展開が見えてくることが条件となろう。チャート的には上昇トレンドは概ね維持されている。Both Nikkei and NY Dow have no strong momentum unlike previous weeks, hence new developments are required for further hike. Nevertheless upper trend is still kept from chart aspect. 


 コロナについては、ワクチン、治療薬開発が次々と話題になる一方、ブラジルの感染拡大が止まらない。今後、ヒドロキシクロロキンなどにより、死亡者数が実際に減少していくかどうかが注目される。For Covid-19, Vaccine and cure medicine developments are rushing while infection explosion in Brazil does not stop. Going forward, we need to watch if death toll will actually decrease in Brazil by medicines like  Hydroxychroloquine.
 
 

2020年6月16日火曜日

NodejsへのTensorflowセットアップ方法 How to setup Tensorflow onto Nodejs

NodejsへのTensorflowセットアップ方法

How to setup Tensorflow onto Nodejs


NodejsはJavascriptをサーバー側で走らせるための環境。Javascriptは基本、ブラウザ内で走るが、Nodejsとすると、C++モジュールを実行するため高速化される。Nodejs is a Javascript environment to run on server-side. Javascript normally runs in browser but in Nodejs, it can run faster due to C++ module called direct.

ここでは、新値三本株価予測AI(日足)をNodejs上で実行。Here, I run three line break forecast AI(daily) on Nodejs.

結果、C++モジュールによる高速化は最近のCPUでないと動作しないということが分かり手持ちのi5-650デスクトップではテストできなかったが、C++高速化なしで、かつ、古いCPUでも2倍程度(12分が6分に短縮)の高速化を達成。ただ、Chromeブラウザのハードウエアアクセラレーション(WebGL)をONにすると、Nodejsより若干早い4分で完了したため、新しいCPUでないと、Nodejsを用いる意味がないことが分かった。As a result, I found out that C++ module acceleration works only when recent CPU is used but not on my legacy CPU, i5-650 Desktop. Nevertheless, I achieved acceleration for 2 times(execution time reduced from 12 min down to 6 min). However, if I turn hardware acceleration of Chrome browser as ON(WebGL), program completed in 4 minutes that is faster than Nodejs. Hence, unless CPU is new, there is no point of using Nodejs if WebGL is available.

環境はwin10。ユーティリティーライブラリ管理などの環境維持のために、npmという環境がnodejs標準インストール時に自動的に設定される。Environment is Windows10. For the purpose of utility and library maintenance, environment called npm is also installed by default when nodejs is installed.

ブラウザーでJavascriptを実行する場合、ライブラリはSRCでスクリプトをインターネット上で参照。一方、NodejsではライブラリをPCにnpm経由でインストール。When run Javascript on browser, libraries are called through SRC from internet but in nodejs, library is installed onto PC explicit through npm.
  • Nodejs、npmインストール Nodejs, npm installation
    1. https://nodejs.org/en/download/から、LTS(安定板)をインストール。Install stable version LTS from link https://nodejs.org/en/download/.
    2. コマンドnode --versionでバージョン確認。Check version by command node --version.
    3. npm --versionでnpmの確認。Check npm version by command npm --version. 
  • ライブラリインストール Install libraries. 
    1. 自分のJavascriptソースコードファイルが置いてあるディレクトリに移動。ここで、nodejsがインストールされているディレクトリではなく、ソースコードが置いてあるディレクトリである事がとても重要。Nodejsではプロジェクトごとにライブラリを設定。Move to directory where your own Javascript source code is saved. It is very important to move not to the nodejs installation directory but to the directory where we have source code. It looks nodejs needs to setup library for each projects. 
    2. 個別インストール Individual installation
      • 統計処理ライブラリインストール Statistical library installation
        • コマンドnpm install simple-statisticsで統計処理パッケージのインストール。Use command 'npm install simple-statistics' to install.
        • var ss = require('simple-statistics')をプログラム中で宣言。In the program, define var ss = require('simple-statistics').
      • 日付ライブラリーインストール Date library installation
        • コマンドnpm install date-utilsでインストール。Run command 'npm install date-utils' to install.
        • require('date-utils')をプログラム中で宣言。Declare 'require('date-utils')' in the program.
      • Tensorflowインストール Tensorflow installation
        • コマンドnpm install @tensorflow/tfjs-nodeでTensorflow.jsの高速版nodejsをインストール(新しいCPUの場合)。CPUが古い場合、コマンドはnpm install @tensorflow/tfjs。Use comand 'npm install @tensorflow/tfjs-node' for fast Tensorflow.js on nodejs(Only for new CPU). When CPU is old, command is 'npm install @tensorflow/tfjs'.
        • var tf = require('@tensorflow/tfjs-node')をプログラム中で宣言(新しいCPUの場合)。CPUが古い場合、プログラムはvar tf = require('@tensorflow/tfjs')。In program, define var tf = require('@tensorflow/tfjs-node') when CPU is new.  If CPU is old, define 'var tf = require('@tensorflow/tfjs')'.
      • インストールディレクトリにディレクトリnode_modulesが生成され、その下にインストールしたsimple-statistics、date-utils、Tensorflowを確認。After installation, you can see directory node_modules created in the installation directory under which you can confirm simple-statistics、date-utils、Tensorflow.
    3. プログラムをWeb版からNodejs版に移植 Transplant program from Web version to Nodejs version
      • プログラムの最初の方でライブラリ読込。Load library at the beginning of the program. 
        • var ss = require('simple-statistics')
        • var tf = require('@tensorflow/tfjs-node')。低速CPUはFor slow CPU, var tf = require('@tensorflow/tfjs')
        • require('date-utils');
      • Web画面が無いため、GUI関連部分はすべて消去、書き換え。Since there is no Web screen, scratch out or rewrite for whole GUI part. 
なお、古いPCでそのままtfjsのまま走らせていると、次のメッセージがコンソールに表示されるのはかわいい。Furthermore, if you run on tfjs basis on old PC, below messages are shown up on console, that is cute. 
============================
Hi there �. Looks like you are running TensorFlow.js in Node.js. To speed things up dramatically, install our node backend, which binds to TensorFlow C++, by running npm i @tensorflow/tfjs-node, or npm i @tensorflow/tfjs-node-gpu if you have CUDA. Then call require('@tensorflow/tfjs-node'); (-gpu suffix for CUDA) at the start of your program. Visit https://github.com/tensorflow/tfjs-node for more details.
============================

2020年6月13日土曜日

AI 株価予測 20200612 の状況8306MUFG Stock Price AI Forecast - 20200612 Status 8306MUFG

AI 株価予測 20200612 の状況8306MUFG

 Stock Price AI Forecast - 20200612 Status 8306MUFG


[前回予測20200529]Previous forecast


注)この投稿はあくまで個人メモです。記事に基づく実際の投資は一切行わないでください。
Caution) This is only for my memo.  Never make any actual investment based on this post.


 相場は反落した。日足は月曜日に上昇、火曜にピークをつけてから調整した。先週末のAI予測は日足で上昇下降半々の推定結果だった。週足、月足の新値に変化はない。Market inverted. Daily picked up on Monday and hit peak on Tuesday, then entered into correction. Last week's AI forecast for daily is both up/down and is unstable. No change on 3LB(three line break) for weekly as well as for Monthly.

 しかし、月曜日の暴騰で新値が更新された後、火曜日以降の日足のAI予測は何度流しても大幅な下落だった。果たして、相場は大幅に下落した。本AI予測が出した、クリティカルな局面での初めてのタイムリーな当たりのケースであった。But, right after the up on Monday with 3LB advance, how many time I run, I got same result telling major drop. After all, market dropped rather big. This is the 1st time that this AI made timely forecast in such a critical moment.

 このような、何度流しても同じ結果が出る現象は、月足でも見られており、それによると、下落はさら続く予測が出ているのは前にも触れた。もしその予測が正しければ今後はレンジ相場となる。ただ、2000年からの月足のデータ数は日足の1/20と少なく、その精度には問題もあるだろう。Likewise, monthly AI is showing same result even if I run several times, telling that market will go down further. If that forecast is correct, the market will go in range trading. However, data from yr2000 for monthly is only 1/20 of daily, hence its precision may have limitation though.


日経平均、ダウとも、調整基調だ。ここまでの殆ど全値戻りがファンダメンタルズを反映しているのかは大勢が疑問視しており、この調整も全く自然なこととして受け取られている。もっとも、現状のファンダメンタルズは誰も正確に把握できていないのも事実だ。Both Nikkei and Dow is on down trend. All question whether rebound almost up to the original level represents fundamentals or not, hence this correction is rather taken as granted. Nevertheless, it is also true that no one really has precise understanding of fundamentals. 


今後、短期調整なのか、2番底へ向かうのかは次の要因によるだろう。Whether this immediate drop will be temporal short one or heading downward to 2nd bottom, will depend on below factors. 

プラス要因 Plus factors
  • 経済再開は始まっている Economy reopening has started
  • 政府支援は余りあるほど Government aids are more than sufficient
  • 治療薬はもうすぐかも(hydroxychloroquineは実際は有効なようだ)Remedy may come soon(Hydroxychloroquine looks effective)
  • 原油相場回復基調 Oil market is normalizing

マイナス要因 Minus factors
  • 第2波が来るかも 2nd wave may come
  • 米中対立 US/China confrontation
  • 11月中間選挙 Nov midterm election
  • 治療薬展開はさらに長引くかも May take longer for deployment of remedy
Hydroxychloroquineについては動向を追跡している。実際のところは治療効果はあるものの、政争と利権にまみれて、人命救助には広く展開されていない。今後これが世界的に認められれば、コロナ問題は殆ど解消すると思われ、相場は大きくプラスに展開する可能性がある。I am now following the development of Hydroxychloroquine. Although it looks working, due to politics and pharma competition, it is not used extensive to save lives. Going forward, if it is approved global, Covid-19 problem may disappear and have big impact on market as well. 


2020年6月7日日曜日

AI 株価予測 20200605 の状況8306MUFG Stock Price AI Forecast - 20200605 Status 8306MUFG

AI 株価予測 20200605 の状況8306MUFG

 Stock Price AI Forecast - 20200605 Status 8306MUFG


[前回予測20200529]Previous forecast


注)この投稿はあくまで個人メモです。記事に基づく実際の投資は一切行わないでください。
Caution) This is only for my memo.  Never make any actual investment based on this post.

 チャートは上放れした。新値チャートは448.7を超えた日足のみが変化した。AI予測は概ね上向きのまま。週足・月足新値が逆転するには各々531.9 609.4をクリアする必要がある。Chart left trend upward. Three Line Break changed for daily chart only due to break through of level 448.7. AI forecast remained the same upward. Level 531.9 and 609.4 need to be cleared respectively to invert three line breaks for weekly and monthly.



NYおよび、東京の株は上昇の一途だ。George Floyd事件にも関わらず、もうすぐコロナ前の水準に達する勢いだ。NY and Tokyo stock just keep going up. Irrespective of George Floyd incident, almost going to reach up to the pre-Covid-19 level. 


予想外の失業者の減少、NYの死亡者がゼロになるなど、鎮静化は進み、経済支援の効果も出てきていることを好感したのか。GNPの10%の政府支出はコロナ被害を補って余りあるのかもしれない。Unexpected reduction of unemployment and zero increase of death toll in NY indicates calming down of the situation together with economic aid showing positive impact.  Government economic aids of 10% GDP can be more than sufficient to cover damage from Covid-19.

ここまで来ると、単なる反発でなく、コロナバブルの様相も呈してきた。It started to look more like Covid-bubble but not just rebound. 

ただ、現在の戻りの主役はTechで金融は出遅れている。金融は、今後の貸し倒れ引当金増加、異次元緩和継続等がマイナス材料、中央銀行や政府の無制限の支援等がプラス材料となる。Rebound is lead by Tech but Finance sector is behind. Finance sector worries increase of defaults and continuation of QE but looking at positive end, can expect unlimited support from government and central banks.

今後、コロナ第二波とともに2番底もあるだろうが、コロナ第二波が高死亡率の強毒性でもない限り、1番底を下回る可能性は低いのではないだろうか。The 2nd wave of Covid-19 may induce another bottom but as long as 2nd wave has no higher toxicity with higher mortality( of course no guarantee ), the chance to go down lower than the 1st bottom will be small. 

今世界では多数のワクチン、治療薬の開発が始まっている。あと一か月もすれば、かなり状況は改善していると考える。In the world right now, many have been working on development of vaccines as well as cure medicines. After one month from now, I expect lots of positive changes in prospect to come out.