This quiz is part of Algoritma Academy assessment process. Congratulations on completing the Programming for Data Science and Practical Statistics course! We will conduct an assessment quiz to test practical programming techniques you have learned on the course. The quiz is expected to be taken in the classroom, please contact our team of instructors if you missed the chance to take it in class.

# Instruction

In this quiz, we will be using a retail dataset. You can get the CSV file stored within the folder under the `retail.csv`

file. The data is about a record of a transactions of a retail store specifying several variables. Please take a look at the following glossary for your reference:

`Order.ID`

: Id of order.`Order.Date`

: Date of Order.`Ship.Date`

: Date of shipping.`Ship.Mode`

: type of shipment.`Customer.ID`

: Id of Customer.`Segment`

: Customers segment.`Product.ID`

: Id of Product.`Category`

: have 3 levels "Furniture","Office Supplies","Technology"`sub.category`

: more specific categories`Product.Name`

: Name of product that was sold.`Sales`

: How much earning from each sale.`Quantity`

: Quantity of item sold.`Discount`

: How much Discount was given for each sale.`Profit`

: How much can a company earn from each sale.

We will split this quiz into 2 main sections: programming for data science and practical statistics, each assessing the respective knowledge we have learned in the 2 courses.

## Programming For Data Science

Among the records, there are some transactions that were bought with the total item quantity of more than 5. Say we are interested to find out how many of the transactions that generate above-average profit but were sold for the quantity of lesser than 5. Use a conditional subsetting to find out the number of transactions with the given conditions!

- [ ] 1380
- [ ] 1793
- [ ] 2551
- [ ] 758

If you take a look at the

`Ship.Mode`

column, you will see there are several types of shipping mode. Among all customer segments, which segment made up most of the first-class shipment?- [ ] Consumer
- [ ] Corporate
- [ ] Home Office

If we were to analyze the subcategories within the Office Supplies category, which ones were the 3 most popular subcategories, taking into account the quantity of the item sold in each transaction?

- [ ] Binder, Paper, Storage
- [ ] Appliances, Art, Binder
- [ ] Supplies, Envelopes, Fasteners
- [ ] Paper, Binder, Art

## Practical Statistics

In descriptive statistics, there are two main measurements that are commonly used to describe data distribution: central tendency and measure of spread. Which statistical measure can be used to describe the latter one?

- [ ] Probability
- [ ] Mean
- [ ] Standard Deviation
- [ ] Correlation

Find out the correlation between Sales and Profit of each transaction using the

`cor()`

function. Based on the correlation between the 2, which of the following statements are true?- [ ] As the Sales increase, the Profit gained decreases
- [ ] As the Sales decreases, the Profit gained decreases
- [ ] As the Sales increase, the Profit is fixed

Consider this case: The retail company would like to apply for a promotion to increase the number of sales. Based on historical record, you know that the monthly Sales population has an average profit of 47,858.35 with a standard deviation of 25,195 and is distributed normally. After the promotion is applied for a month you then calculate the total of Sales to be 81,777. Using 95% confidence interval, perform a significance using the z-test to test on how the promotion affects the number of sales. How would you conclude the test using the given information?

- [ ] Fail to reject the null hypothesis, the promo does not have a statistically significant impact
- [ ] Fail to reject the null hypothesis, the promo has a statistically significant impact
- [ ] Reject the null hypothesis, the promo has a statistically significant impact
- [ ] Reject the null hypothesis, the promo does not have a statistically significant impact

### Users with passing score on P4DS-PS

- AltruiMetavasi
- wulanandriyani
- ysitta
- tiaradwiputri
- isaacedwin
- blankAD
- HengkyNg
- deomareza
- valencialie11
- rogate16
- katashtrophes
- putrantolucky
- irfani
- tauf1kr0
- Octoriano
- wiwiekwinarta
- maddew820
- utomoreza
- aynuddin87
- rizkialf1
- asdrinne
- dniarastuti
- Julianti89
- Mekatronivan
- BBG197
- yevonnaelandrew
- christyonathan
- vlyoir
- alfadodhusi
- RPD1204
- ajiputera
- Wawanp2020
- aderahman001
- indraa6
- nsigitsutanto
- alfandash
- yufiyufi
- enggal21
- satrioadarmawan
- BLN42
- dwinandahtm
- princewolf
- hutanhijau
- justedgar
- RajaPangaribuan
- gabrielerichson2019
- reksiandari
- ezrasote
- denifajarsidiq
- uthemma
- drafitrandi24
- ekamuliawan
- leimk
- endtrisk
- rinaldoeri
- elthone
- aguscuk
- meinari
- YollandaTan
- imansubarkah09
- dikdik7
- tubagus86
- koraji
- anditajasmeen
- safakucing
- kucing-item
- septu-kor
- taufik-arfani
- kittyziwei113
- tomytjandra
- westwq
- Litaa
- tomy-algo
- ferry-tan
- rendi27
- rjputra
- algoritmalover
- barsyagallery
- ysetiadji
- staciagun
- apadityo
- sianadewi
- yulialanita
- Briantino
- randylawrentius
- lianamutz
- u051227
- a13nma
- cindytanjung
- eligunawan
- okinawarikenata
- pengpeng702
- rulianto26
- AntoniusAndre
- marcelladjuhana
- waituck
- TerenceChoo
- thinkIO-KT
- dinnah88
- asandar
- tomy-algo9f7a9ca6f5d34cda
- yoannaevelina
- farishisyam
- bitra
- alfins1804
- aerlaut
- justarya
- muhrisman
- rdmrcjnt
- ariefiandimas
- atikadewisuryani
- Qisthina-H
- damarbrian
- rhidayats
- dchglang
- dpermanads
- rissing28
- novanrz
- termoskopi
- 090209
- nhrs
- riarizki
- muslimalfatih
- arvinbudhi
- onlyyouandme
- verawaty77
- SharifElvian
- johannaritonang
- taryonb
- wennykezia
- adi-christian
- Jodialanshari13
- albertleonardoid
- cockaigne
- ronniegoei
- AlfaAbbas
- Stefen-Li
- suryosputro
- ddtambunan
- minichieff
- NabiilahArdini
- hartonomochtar
- sholehhudin
- sarasdew
- wicaksonoak
- vemiliam
- grendcoy
- rudidamrianto
- sndypvtra
- SatriaSyah
- christopherpramana
- arifyunan360
- IbnuDessetiadi
- crisna34
- enggarsasongko
- kalfinmuchtar
- hansfajrur
- vanyadwi
- Hansuq
- hermy-santoso-halim
- mavreakx
- regidestyoko
- adamhafid
- rauldatascience
- petrusardi
- ignatiuskevinnn
- franscaharris
- rezalutfi40
- nurfitryah
- aldobritano2812
- jansgerald
- Adityawicaks
- PratamaAgung
- Bonnie-Alexandra
- Vraha
- Lbthn
- mhasyim
- nadyapribadi
- sabrinapribadi
- 93kryptonian
- estisr
- wahyuindrasukma
- teukuaidilfikri
- achmadanr
- fika95
- imanuel-code
- wulaidazuhriana
- rizkyfarlyan
- rahertra
- EndiWicaksono
- armangetter
- paulpanggabean
- hendrarahul
- ttheresa2
- esambouw
- eoktavianus
- rossi09
- fathonirisman27
- Gibrastr
- irsad123
- dwisyanto
- nuryatinuryati
- vccalvin33
- AnthonyJaya
- geraldbryan
- AurelliaChristie
- glenjosh11
- friandhiazaki
- aurelwidjaja
- ratnaati
- alvianojs
- alfa-dharmawijaya
- Jengkol117
- aditya-purwanto
- anuz86
- Devanew
- poctaviana
- agnesianelys
- Gevinferdinand
- fchriselly
- jessicanathania95
- graceshela-wirawaty
- fransiskahuang
- fairuzalief
- leotanzali
- rizkameutia
- kurniawanbdiono
- evelinalarisa
- krisnadw
- reyshabigael
- thomaslimanjaya
- abadeus
- laksmini
- cath601
- erikatrisliana
- FinCendikia
- teddynilam
- Sellayenti
- lytjs
- PetBI
- exozkvn
- haphapy
- StellaLie30
- ameliaclara
- bismillah06
- metamahyarani
- DevinJevian
- vsebas7
- JanssenWongkalanujaya
- aldien03
- haridinatafelix
- rickyliejaya
- AnnisaAuliaRahma
- dwiuzila
- isew25
- jimihendrik808
- doddyabe
- sinduttv
- ichlasulamal12
- feruzta
- ianrahardian
- iqbal1201
- chuun17
- niamzaki
- lugita
- wildanfirdaus26
- Ichakristy
- gissellanadya
- wardahbudi
- ekapranadanian
- Khairani-rani
- yanawicaksana
- ilham-himawan
- winlywilliamdy
- djogie23
- PatricioKresnatama
- DebrinaSugiharto
- rickisubagya
- margarethdevina
- bdpriyambodo
- hsnHdyt
- klaudiuswp
- maltreba
- sumankwan
- rivkih
- FadhlanRahim
- andikap24
- fajardwinugroho
- amaliaputrieka
- muhammadrmaulana
- prestasicode
- bagasmw
- Madeleeine
- alvinwillio
- adisaksonoo
- RayAdisurya
- fadtau
- Astrowests
- hotsince99
- jeremiahutagodang
- andrewmlpt
- edwinandreash
- abhinowo
- nisa-basalamah
- harudini
- bayurespatiyulianto
- luthfriandi
- galtaufiq
- Penny1919
- DavidSamuel295
- Pamboedi
- delyismail
- selvykuswanto
- ekonugroho99
- jtsimanjuntak
- RachelSinondang
- monica-aw
- Dnx220
- inytss
- Pozwa
- terkoizmy
- Vae2002
- AngginiDina
- anggasbs
- shadowmirza
- thekarlharyo
- prilliasyfr
- viptiana
- aprealz10
- julius987
- MARYANTO1803
- fauzanalamsyah
- erlywind
- Aprilioan
- Fadhilo11
- Thediamondarta
- reyvb24
- VitoSS10
- difapratama