We have developed a free online tool for analyzing Chinese document. The URL of the tool is located at here. A user fills in the textbox with the content and click Submit button. The tool identifies words, calculates frequencies for those words and display a word cloud picture.
. Enjoy!Popular Topics
Popular Topics
Monday, November 30, 2020
Monday, April 20, 2020
Real COVID-19 Death Rate
In my last post, we did research on COVID-19 death rate based on the ratio between the number of deaths and the number of confirmed cases. However, this method is inherently flawed. Some infected people did not show up at a hospital or a testing station to get tested. As a result, the death rate is exaggerated. Blood antibody tests on randomly sampled residents in Santa Clara, California in early April shows that the number of people infected is 55 to 85 times more than confirmed cases (https://www.cnn.com/2020/04/17/health/santa-clara-coronavirus-infections-study/index.html). Thus, the real death rate for people who infected with coronavirus is between 0.1% and 0.17% which are similar to that of flu. We use the following charts to illustrate two ways of calculating death rates. COVID-19 Death Rate (Flawed) = Number of Deaths/ Number of Confirmed Cases
COVID-19 Death Rate (Real) = Number of Deaths/Number of Infected As we can see, the chance of COVID-19 bullet hitting the bullseye, i.e., causing death, is much slimmer that appears based on confirmed cases alone.Thursday, April 02, 2020
Study on COVID-19 Annualized Death Rate
Probably this is the first time you see a chart like this. When people hear COVID-19 death rate for older people is high, they panic. We did research and published a paper on COVID-19 death rate( Study on COVID-19 Annualized Death Rate). Please notice the death rates for COVID-19 are "annualized". But we have to look at things in context. When COVID-19 death rate is annualized, it can be compared with other statistical data that are on annual basis. This is the key contribution of our research.
Monday, March 02, 2020
Querying Database Using Command Line Client and Powershell
mysql_config_editor set --login-path=local --host=localhost
--user=root --port=3306 --password
When we run the above command at a shell, it will prompt us to input password. It will create a file .mylogin.cnf that is not humanly readable under home directory (I am using Mac. For Windows, the file is under %APPDATA%\MySQL). The reason of doing this is to avoid an annoying security warning message if we supply the password in mysql command. If you don't mind the warning message, you can skip the step.
Then I write a Powershell function to query MySQL database. I save the scripts as mysql_f.ps1 on my Mac.
function runsql {
param($s)
mysql --login-path=local -D dataexp -B -e "$s" | convertfrom-csv -delimiter `t
}
I issue the following command from the shell
prompt>. "./mysql_f.ps1"Now the function is defined. I test the function.
prompt>runsql "select 1 as val" val --- 1It worked. The following query displays the table in the current database.
prompt>runsql "select TABLE_SCHEMA, table_name, create_time
from information_schema.tables where table_schema=database()"
TABLE_SCHEMA TABLE_NAME CREATE_TIME
------------ ---------- -----------
dataexp flyway_schema_history 2019-11-21 11:56:31
dataexp mdl_sampled 2020-01-14 10:40:06
dataexp mdl_set 2020-01-14 09:46:59
dataexp sample_user_id 2020-01-14 09:58:34
dataexp t_all_pk1 2019-12-05 11:53:43
dataexp t_all_pk1_int 2019-12-05 22:14:54
dataexp t_all_tab_cols 2019-11-21 15:39:00
From the Powershell output, we select only table_name an create_time by piping the output to "select" command of Powershell.
prompt>runsql "select TABLE_SCHEMA, table_name, create_time
from information_schema.tables
where table_schema=database()" | select table_name, create_time
TABLE_NAME CREATE_TIME
---------- -----------
flyway_schema_history 2019-11-21 11:56:31
mdl_sampled 2020-01-14 10:40:06
mdl_set 2020-01-14 09:46:59
sample_user_id 2020-01-14 09:58:34
t_all_pk1 2019-12-05 11:53:43
t_all_pk1_int 2019-12-05 22:14:54
t_all_tab_cols 2019-11-21 15:39:00
The above operation is possible because in runsql function, we use convertfrom-csv to convert text output of mysql to Powershell object. Convertfrom-csv is really a magic function! Once we have an Powershell object, we can do all sorts of things.
Sunday, October 27, 2019
Optimizing Inventory Level: Reduce the Inventory Value and Increase Customer Satisfaction Simultaneously
For a large part manufacture company in the transportation industry, maintaining the optimal inventory level in their warehouses is crucial to its bottom line. When too many parts are produced and stored, it costs the company excessive financial investment and previous warehouse spaces. On the other hand, if not enough parts in the warehouses, customers will become dissatisfied when orders may not get fulfilled in time. Thus, there are two conflicting goals to balance when planning the inventory: reducing inventory value and increasing customer satisfaction. The optimal strategy is to find the sweet spot of inventory level for each individual part that is most economical and maintaining high level of customer satisfaction at the same time. In a recent project that Dr. Jay Zhou has preformed, he is able to reduce the inventory level for his client company by $16 million and still maintain the same level of customer satisfaction. This work is highly received by the client. In this project, Dr.Zhou takes advantage of machine learning models and reduces huge number of parts to a much smaller number of homogeneous groups. The "Demand Satisfaction" are calculated for these groups.
Wednesday, April 24, 2019
Onsite Interactive Training Session for Data Analysts/Data Scientists
The following are testimonials about my previous talks and training activities.
"Jay is more than just a coder, he is a great trainer, and a good presenter of theoretical data mining concepts so that they can be understood by most. "-James Lukenbill, Director of IT Project Management, Optum
Thursday, March 07, 2019
From Hype to Reality – Powering the AI-Driven Future of Insurance at Insurance AI and Analytics USA - by Ira Sopic
- Thomas Sheffield, SVP and Head
of Specialty Claims, QBE
- Glenn Fung, Chief Research
Scientist, AI and Machine Learning Research Director, American Family Insurance
- Laurie Pierman, Vice President,
Claim Operations, Amerisure Insurance
- Michiko Kurahashi, Chief
Marketing Officer, AXIS Capital
Tuesday, January 15, 2019
About Dr. Zhou's Oracle SQL for Data Science Course
On January 31, 2017, I was invited by Prof. Wei Ding at the Department of Computer Science, University of Massachusetts Boston, and gave 3 talks about my data science projects across different industries. These talks are extremely well received. The following is what Prof. Ding says about my talks.
"It was a fortune to have Jay come to our computer science department to share his experience in solving business problems with predictive analytics on February 28, 2017. What Jay had presented in his 3 talks, each lasting for 1 hour in different topics of data mining, was totally impressive and beyond our wildest expectation. Having built competition-winning predictive models for some of the biggest companies and produced hundreds of millions of dollars’ savings, Jay shared the secret of his success with students and faculty without reservation. His strong presentations were such an inspiration for our computer science students and faculty and his methodology was innovative and powerful, even for very seasoned data scientists among the audience. Jay, thank you so much for your hard work preparing and delivering these presentations!" -Prof. Ding Wei, Department of Computer Science, University of Massachusetts Boston
The audience are particularly amazed by how I come up with solutions using Oracle SQL environment. To share my expertise, I create the online course Oracle SQL for Data Science to show how to perform common data science tasks using Oracle SQL and the benefits for doing that.
I let Charlie Berger,Senior Director of Product Management, Machine Learning, AI and Cognitive Analytics at Oracle know about my course and he told me "Your course is amazing."
Deep Learning World
DeepLearning World is the premier conference
covering the commercial deployment of deep learning. The event’s mission is to
foster breakthroughs in the value-driven operationalization of established deep
learning methods. DLW runs parallel to the established PredictiveAnalytics World for Industry 4.0 at the same venue. Combo passes are available.
Predictive Analytics World for Industry 4.0
Putting Machine Intelligence into Production
- Predictive Maintenance &
Logistics
- Anomaly Detection & Root Cause
Analysis
- Fault Prediction & Failure
Detection
- Risk Management & Prevention
- Route & Stock Optimization
- Industry & Supply Chain Analytics
- Image & Video Recognition
- Internet of Things & Smart
Devices
- Stream Mining & Edge Analytics
- Machine ~, Ensemble ~ & Deep
Learning
- Process Mining & Network Analyses
- Mining Open & Earth Observation
Data
- Edge Analytics & Federated
Learning
Tuesday, January 08, 2019
Analytics & AI in Travel North America
Thursday, December 20, 2018
Could Not Connect to Amazon RDS Oracle Database From Car Dealer WiFi
Wednesday, December 19, 2018
Statistically Manufactured Personal Data
Female Male
Age Group # % # %
.Under 5 years 34603 6.81% 35656 7.25%
.5 to 9 years 34707 6.83% 34010 6.92%
.10 to 14 years 30192 5.94% 33013 6.72%
.15 to 19 years 34361 6.76% 32689 6.65%
.20 to 24 years 32512 6.39% 36647 7.45%
.25 to 29 years 35626 7.01% 37278 7.58%
.30 to 34 years 34344 6.76% 31977 6.50%
.35 to 39 years 33325 6.55% 31927 6.49%
.40 to 44 years 33332 6.56% 34456 7.01%
.45 to 49 years 35070 6.90% 35443 7.21%
.50 to 54 years 37321 7.34% 34876 7.09%
.55 to 59 years 31623 6.22% 31315 6.37%
.60 to 64 years 28801 5.67% 24218 4.93%
.65 to 69 years 20999 4.13% 19881 4.04%
.70 to 74 years 16617 3.27% 14065 2.86%
.75 to 79 years 13520 2.66% 10272 2.09%
.80 to 84 years 10693 2.10% 7983 1.62%
.85 years and over 10754 2.12% 5894 1.20%
You may download a small file with 100 records free here. Free Download. Files with 5k, 50K, 250K and 1 million records are available for purchase at https://www.datamanufacturer.com.
| File Name | Description | Price | Buy |
|---|---|---|---|
| dm_mock_person_100.csv | 100 mock personal data records. CSV format. | free | Free Download |
| dm_mock_person_5k.csv | 5K mock personal data records. About 0.7M bytes. CSV format. | $2.95 | |
| dm_mock_person_50k.csv | 50K mock personal data records. About 7M bytes. CSV format. | $7.95 | |
| dm_mock_person_250k.csv | 250K mock personal data records. About 35M bytes. CSV format. | $9.95 | |
| dm_mock_person_1m.csv | 1 million mock personal data records. About 140M bytes. CSV format. | $39.95 |
Tuesday, December 18, 2018
Generate Random String in Oracle
SQL> select dbms_random.string('l', 8)||'@'||dbms_random.string('l', 7)||'.com'
email from dual;
EMAIL
------------------------------------------------------------------------------------
irslsxrf@wltikyv.com
The first parameter 'l' means string will be created in lower cases.
Monday, December 17, 2018
Find the Most Frequent Values
SQL> select areacode from T_PHONE_AREA where state='Missouri' order by 1;
AREACODE
----------
314
314
314
314
314
314
314
314
314
314
314
314
417
417
573
573
573
636
636
636
636
636
636
660
816
816
816
816
816
816
816
816
816
816
34 rows selected.
In the following query, stats_mode(areacode) returns the areacode 314 that is the most frequent value.
SQL> select stats_mode(areacode) from T_PHONE_AREA where state='Missouri';
STATS_MODE(AREACODE)
--------------------
314
Remove the Last Word From a String Using Oracle SQL
with tbl as (select 'Boston city' as name from dual) select name, substr(name, 1, instr(name,' ',-1)-1 ) simple_name from tbl; NAME SIMPLE_NAME ----------- ----------- Boston city Boston
Find Out Table Columns That Are Indexed
select index_name, column_name from USER_IND_COLUMNS where table_name='MYTABLE'
Oracle Function Based Index is Handy
create index t_my_tablei on t_my_table(upper(name));That way, I don't to create another column or table that contains upper(name) and create index on it. When I join the two tables based on upper(a.name) = b.name, function based index upper(a.name) is used and it is fast.
select a.*, b.* from t_my_table a, my_another_table b where upper(a.name) = b.name;
Sunday, December 16, 2018
Amazon RDS Oracle Instance Running Out of Disc Space
Saturday, December 15, 2018
Roulette Wheel Selection Using SQL
create table tbl as select id, num, sum(num) over(order by id) as cum_count from t_mydata;The following is the roulette wheel selection scripts.
create table t_rw(sel number);
declare
mx number;
rnd number;
x number;
begin
select max(cum_count) into mx from tbl;
for i in 1..10000 loop
execute immediate 'select ora_hash(:1,:2) from dual '
into rnd using i, mx;
select min(cum_count) into x from tbl where cum_count >= rnd;
insert into t_rw(sel) values(x);
end loop;
end;
create view v_selected as select a.* from tbl a, t_rw b where a.cum_count=b.sel;
In the above scripts, ora_hash() generates a uniformly distributed random number between 0 and maximum cum_count. The selected cum_count is inserted into t_rw. The final result is the view v_selected which is based on the inner join of table tbl and t_rw.







